From 30de4f18134bfac2042821a25aee92b6c9359a35 Mon Sep 17 00:00:00 2001 From: bug1 Date: Sat, 9 Sep 2000 12:48:40 +0000 Subject: Fix permisions git-svn-id: svn://busybox.net/trunk/busybox@1019 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- ar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ar.c') diff --git a/ar.c b/ar.c index b758a6975..eaa15a516 100644 --- a/ar.c +++ b/ar.c @@ -298,7 +298,8 @@ extern int ar_main(int argc, char **argv) while(extractList->next != NULL) { if ( (funct & EXT_TO_FILE) == EXT_TO_FILE) { - dstFd = open(extractList->name, O_WRONLY | O_CREAT); + dstFd = open(extractList->name, O_WRONLY | O_CREAT, extractList->mode); + extractAr(srcFd, dstFd, extractList); } if ( (funct & EXT_TO_STDOUT) == EXT_TO_STDOUT) -- cgit v1.2.3-55-g6feb