diff --git a/stable-patches/src/copy.c.patch b/stable-patches/src/copy.c.patch index b78fcec71..a27ca725c 100644 --- a/stable-patches/src/copy.c.patch +++ b/stable-patches/src/copy.c.patch @@ -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 @@ -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; }