]> git.ipfire.org Git - thirdparty/tar.git/commit
tar: fix numbered backup bug
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 28 Oct 2018 23:23:51 +0000 (16:23 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 28 Oct 2018 23:24:05 +0000 (16:24 -0700)
commit2777a2bfd9d8dca06997a813a94bd26e545eed5c
tree162dc2d41e3d67bfaa417bfbcfe65595955d1985
parent9fc1cb40f935d968a8b8561715c294c6ca821710
tar: fix numbered backup bug

* src/misc.c (maybe_backup_file): Pass chdir_fd, not AT_FDCWD,
to find_backup_file_name.  This fixes a bug whereby the wrong
backup file name was chosen for numbered backups.
src/misc.c