From 6e9e92bd35caf26ad9af86045ffc4e37d6b80fba Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 9 Aug 2009 04:35:09 +0200 Subject: [PATCH] lib/unpack.c: remove redundant check against rootdir. --HG-- extra : convert_revision : f20606fd343dd04d965d2fe2069d4e07c6dfab0c --- lib/unpack.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/unpack.c b/lib/unpack.c index b33d7e08eb5..30c96b9e134 100644 --- a/lib/unpack.c +++ b/lib/unpack.c @@ -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;