]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: update gnulib submodule to latest
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 28 Oct 2018 08:13:57 +0000 (01:13 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 28 Oct 2018 08:46:11 +0000 (01:46 -0700)
* src/copy.c (copy_internal):
* src/cp.c (do_copy):
* src/ln.c (do_link):
Adjust to Gnulib API change.

gnulib
src/copy.c
src/cp.c
src/ln.c

diff --git a/gnulib b/gnulib
index 1ff0e9684bb83a8277ffe22ac125ce7e90f6702b..ceeae5b03847392c7295e95637bacc60a6a905ee 160000 (submodule)
--- a/gnulib
+++ b/gnulib
@@ -1 +1 @@
-Subproject commit 1ff0e9684bb83a8277ffe22ac125ce7e90f6702b
+Subproject commit ceeae5b03847392c7295e95637bacc60a6a905ee
index 1f4d47737dc86670f353e20a5678e505a38a1f02..3221b9997eb30ea9b479735bde6ea40ebd48ffc7 100644 (file)
@@ -2151,7 +2151,8 @@ copy_internal (char const *src_name, char const *dst_name,
                   return false;
                 }
 
-              char *tmp_backup = backup_file_rename (dst_name, x->backup_type);
+              char *tmp_backup = backup_file_rename (AT_FDCWD, dst_name,
+                                                     x->backup_type);
 
               /* FIXME: use fts:
                  Using alloca for a file name that may be arbitrarily
index 21dd4441bb5625baa229df2c12ec46a655b93aca..31726a83638aad5b388ca30ebc1ab5a644d37a89 100644 (file)
--- a/src/cp.c
+++ b/src/cp.c
@@ -759,7 +759,7 @@ do_copy (int n_files, char **file, const char *target_directory,
         {
           static struct cp_options x_tmp;
 
-          new_dest = find_backup_file_name (dest, x->backup_type);
+          new_dest = find_backup_file_name (AT_FDCWD, dest, x->backup_type);
           /* Set x->backup_type to 'no_backups' so that the normal backup
              mechanism is not used when performing the actual copy.
              backup_type must be set to 'no_backups' only *after* the above
index 9f197a4b77685e3f9082c2a26dbd74715318ecf0..83fad53677c8b5b374e2aaf6082cf11b1a110cb6 100644 (file)
--- a/src/ln.c
+++ b/src/ln.c
@@ -311,7 +311,8 @@ do_link (const char *source, const char *dest, int link_errno)
 
                   if (backup_type != no_backups)
                     {
-                      dest_backup = find_backup_file_name (dest, backup_type);
+                      dest_backup = find_backup_file_name (AT_FDCWD, dest,
+                                                           backup_type);
                       if (rename (dest, dest_backup) != 0)
                         {
                           int rename_errno = errno;