diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-09-09 12:48:40 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-09-09 12:48:40 +0000 |
commit | 30de4f18134bfac2042821a25aee92b6c9359a35 (patch) | |
tree | bdb5af2e15f1d6b44d84cdd2f55372f6f9fe4500 /ar.c | |
parent | faa718403b49d227ceab550845253a2eff15823a (diff) | |
download | busybox-w32-30de4f18134bfac2042821a25aee92b6c9359a35.tar.gz busybox-w32-30de4f18134bfac2042821a25aee92b6c9359a35.tar.bz2 busybox-w32-30de4f18134bfac2042821a25aee92b6c9359a35.zip |
Fix permisions
git-svn-id: svn://busybox.net/trunk/busybox@1019 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'ar.c')
-rw-r--r-- | ar.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -298,7 +298,8 @@ extern int ar_main(int argc, char **argv) | |||
298 | 298 | ||
299 | while(extractList->next != NULL) { | 299 | while(extractList->next != NULL) { |
300 | if ( (funct & EXT_TO_FILE) == EXT_TO_FILE) { | 300 | if ( (funct & EXT_TO_FILE) == EXT_TO_FILE) { |
301 | dstFd = open(extractList->name, O_WRONLY | O_CREAT); | 301 | dstFd = open(extractList->name, O_WRONLY | O_CREAT, extractList->mode); |
302 | |||
302 | extractAr(srcFd, dstFd, extractList); | 303 | extractAr(srcFd, dstFd, extractList); |
303 | } | 304 | } |
304 | if ( (funct & EXT_TO_STDOUT) == EXT_TO_STDOUT) | 305 | if ( (funct & EXT_TO_STDOUT) == EXT_TO_STDOUT) |