* src/copy.c (copy_internal):
* src/cp.c (do_copy):
* src/ln.c (do_link):
Adjust to Gnulib API change.
-Subproject commit 1ff0e9684bb83a8277ffe22ac125ce7e90f6702b
+Subproject commit ceeae5b03847392c7295e95637bacc60a6a905ee
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
{
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
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;