From: Paul Eggert Date: Sun, 28 Oct 2018 08:13:57 +0000 (-0700) Subject: build: update gnulib submodule to latest X-Git-Tag: v8.31~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9a4d983717c6db33b1b568180ad30ad9c2233b4;p=thirdparty%2Fcoreutils.git build: update gnulib submodule to latest * src/copy.c (copy_internal): * src/cp.c (do_copy): * src/ln.c (do_link): Adjust to Gnulib API change. --- diff --git a/gnulib b/gnulib index 1ff0e9684b..ceeae5b038 160000 --- a/gnulib +++ b/gnulib @@ -1 +1 @@ -Subproject commit 1ff0e9684bb83a8277ffe22ac125ce7e90f6702b +Subproject commit ceeae5b03847392c7295e95637bacc60a6a905ee diff --git a/src/copy.c b/src/copy.c index 1f4d47737d..3221b9997e 100644 --- a/src/copy.c +++ b/src/copy.c @@ -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 diff --git a/src/cp.c b/src/cp.c index 21dd4441bb..31726a8363 100644 --- 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 diff --git a/src/ln.c b/src/ln.c index 9f197a4b77..83fad53677 100644 --- 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;