mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-08-17 14:56:02 +00:00
Use mkdtempat instead of mkdtemp
This fixes an interaction of -C with incremental 'X'. Problem reported by Pavel Cahyna. * gnulib.modules: Remove mkdtemp. Add tempname, since our mkdtempat uses it. * lib/mkdtempat.c, lib/mkdtempat.h: New files. * lib/Makefile.am (noinst_HEADERS): Add mkdtempat.h. (libtar_a_SOURCES): Add mkdtempat.c. * src/incremen.c: Include mkdtempat.h. (purge_directory): Use mkdtempat, not mkdtemp.
This commit is contained in:
+1
-1
@@ -80,7 +80,6 @@ mbrtoc32-regular
|
||||
mcel-prefer
|
||||
mempcpy
|
||||
mkdirat
|
||||
mkdtemp
|
||||
mkfifoat
|
||||
modechange
|
||||
nstrftime-limited
|
||||
@@ -115,6 +114,7 @@ stringeq
|
||||
strnlen
|
||||
symlinkat
|
||||
sys_stat-h
|
||||
tempname
|
||||
time_rz
|
||||
timespec
|
||||
timespec-sub
|
||||
|
||||
Reference in New Issue
Block a user