tar: error if strdup fails (estrdup)
This commit is contained in:
parent
71eeb21feb
commit
9c03736696
2
tar.c
2
tar.c
|
@ -210,7 +210,7 @@ unarchive(char *fname, ssize_t l, char b[BLKSIZ])
|
||||||
if (unlink(fname) < 0 && errno != ENOENT && errno != EISDIR)
|
if (unlink(fname) < 0 && errno != ENOENT && errno != EISDIR)
|
||||||
eprintf("unlink %s:", fname);
|
eprintf("unlink %s:", fname);
|
||||||
|
|
||||||
tmp = strdup(fname);
|
tmp = estrdup(fname);
|
||||||
mkdirp(dirname(tmp));
|
mkdirp(dirname(tmp));
|
||||||
free(tmp);
|
free(tmp);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user