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:
Sergey Poznyakoff
2016-09-26 13:17:26 +03:00
parent c2886473a8
commit e1b7e40ff0
4 changed files with 54 additions and 1 deletions

View File

@@ -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);