lib/unpack.c: remove redundant check against rootdir.

--HG--
extra : convert_revision : f20606fd343dd04d965d2fe2069d4e07c6dfab0c
This commit is contained in:
Juan RP 2009-08-09 04:35:09 +02:00
parent 414bbfa879
commit 6e9e92bd35

View file

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