diff options
author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-04-12 18:39:58 +0000 |
---|---|---|
committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-04-12 18:39:58 +0000 |
commit | 173133414753125e4a5ddf160cd22807a703bd38 (patch) | |
tree | c7e395cfe1eafcd601bc16e0231fc30f8789e4d9 /archival/unzip.c | |
parent | 04f8875fd522ea63205b3e223d56979117245d1f (diff) | |
download | busybox-w32-173133414753125e4a5ddf160cd22807a703bd38.tar.gz busybox-w32-173133414753125e4a5ddf160cd22807a703bd38.tar.bz2 busybox-w32-173133414753125e4a5ddf160cd22807a703bd38.zip |
- patch from Denis Vlasenko to add and use bb_xchdir()
git-svn-id: svn://busybox.net/trunk/busybox@14837 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'archival/unzip.c')
-rw-r--r-- | archival/unzip.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/archival/unzip.c b/archival/unzip.c index bb7197d3e..b9dff1985 100644 --- a/archival/unzip.c +++ b/archival/unzip.c | |||
@@ -236,9 +236,8 @@ int unzip_main(int argc, char **argv) | |||
236 | } | 236 | } |
237 | 237 | ||
238 | /* Change dir if necessary */ | 238 | /* Change dir if necessary */ |
239 | if (base_dir && chdir(base_dir)) { | 239 | if (base_dir) |
240 | bb_perror_msg_and_die("Cannot chdir"); | 240 | bb_xchdir(base_dir); |
241 | } | ||
242 | 241 | ||
243 | if (verbosity != v_silent) | 242 | if (verbosity != v_silent) |
244 | printf("Archive: %s\n", src_fn); | 243 | printf("Archive: %s\n", src_fn); |