index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dave Reisner <dreisner@archlinux.org> | 2013-07-03 20:33:19 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-07-05 14:32:23 +1000 |
commit | eb19d41d5f85f169cee7570f783821cb705ad37a (patch) | |
tree | 245a12aa27e01a6f8ee74f5c1624d4e341551b81 /src | |
parent | 7b8f8753b15037bf4a88126ffde8195416432c72 (diff) |
-rw-r--r-- | src/pacman/conf.c | 5 |
diff --git a/src/pacman/conf.c b/src/pacman/conf.c index 5adc96cf..2985aba1 100644 --- a/src/pacman/conf.c +++ b/src/pacman/conf.c @@ -257,14 +257,11 @@ static int download_with_xfercommand(const char *url, const char *localpath, cleanup: /* restore the old cwd if we have it */ if(cwdfd >= 0) { - int close_ret; if(fchdir(cwdfd) != 0) { pm_printf(ALPM_LOG_ERROR, _("could not restore working directory (%s)\n"), strerror(errno)); } - do { - close_ret = close(cwdfd); - } while(close_ret == -1 && errno == EINTR); + close(cwdfd); } if(ret == -1) { |