Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions stable-patches/src/copy.c.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/src/copy.c b/src/copy.c
index b9fff03..554e433 100644
index 7ffb998..553f425 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -113,6 +113,10 @@
@@ -106,6 +106,10 @@
# define CAN_HARDLINK_SYMLINKS 0
#endif

Expand All @@ -13,7 +13,16 @@ index b9fff03..554e433 100644
struct dir_list
{
struct dir_list *parent;
@@ -1507,6 +1511,11 @@ copy_reg (char const *src_name, char const *dst_name,
@@ -1254,7 +1258,7 @@ copy_reg (char const *src_name, char const *dst_name,
return false;
}

- if (fstat (source_desc, &src_open_sb) != 0)
+ if (stat (src_name, &src_open_sb) != 0)
{
error (0, errno, _("cannot fstat %s"), quoteaf (src_name));
return_val = false;
@@ -1502,6 +1506,11 @@ copy_reg (char const *src_name, char const *dst_name,
goto close_src_desc;
}

Expand Down