lib/unpack.c: remove redundant check against rootdir.
--HG-- extra : convert_revision : f20606fd343dd04d965d2fe2069d4e07c6dfab0c
This commit is contained in:
parent
414bbfa879
commit
6e9e92bd35
|
@ -141,13 +141,6 @@ unpack_archive_fini(struct archive *ar, prop_dictionary_t pkg,
|
||||||
rootdir = xbps_get_rootdir();
|
rootdir = xbps_get_rootdir();
|
||||||
flags = xbps_get_flags();
|
flags = xbps_get_flags();
|
||||||
|
|
||||||
/*
|
|
||||||
* First we change to the destination directory or / if
|
|
||||||
* not specified.
|
|
||||||
*/
|
|
||||||
if (strcmp(rootdir, "") == 0)
|
|
||||||
rootdir = "/";
|
|
||||||
|
|
||||||
if (chdir(rootdir) == -1)
|
if (chdir(rootdir) == -1)
|
||||||
return errno;
|
return errno;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue