mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-08-21 16:56:06 +00:00
Fix interaction of -u with -C
* src/update.c (update_archive): Pass correct change_dir value for addname * tests/update03.at: New file. * tests/Makefile.am: Add update03.at * tests/testsuite.at: Include update03.at
This commit is contained in:
+1
-1
@@ -152,7 +152,7 @@ update_archive (void)
|
||||
|
||||
for (p = dirp; *p; p += strlen (p) + 1)
|
||||
addname (namebuf_name (nbuf, p),
|
||||
0, false, NULL);
|
||||
name->change_dir, false, NULL);
|
||||
|
||||
namebuf_free (nbuf);
|
||||
free (dirp);
|
||||
|
||||
Reference in New Issue
Block a user