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