diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-04-20 05:16:38 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-04-20 05:16:38 +0000 |
commit | 3faef70f3aa6378760d49237186ed01a107c53ee (patch) | |
tree | 1e3bb4b71ad1e841c69b4801d46e5f9963cf9764 /libbb | |
parent | 1d961a851d66587c93a183d763e1067ca43ef56c (diff) | |
download | busybox-w32-3faef70f3aa6378760d49237186ed01a107c53ee.tar.gz busybox-w32-3faef70f3aa6378760d49237186ed01a107c53ee.tar.bz2 busybox-w32-3faef70f3aa6378760d49237186ed01a107c53ee.zip |
Set permissions of created file
git-svn-id: svn://busybox.net/trunk/busybox@2382 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/copy_file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libbb/copy_file.c b/libbb/copy_file.c index eb9cb1a16..7e5d11e67 100644 --- a/libbb/copy_file.c +++ b/libbb/copy_file.c | |||
@@ -147,6 +147,7 @@ copy_file(const char *src_name, const char *dst_name, | |||
147 | } | 147 | } |
148 | 148 | ||
149 | dst_file = fopen(dst_name, "w"); | 149 | dst_file = fopen(dst_name, "w"); |
150 | chmod(dst_name, srcStatBuf.st_mode); | ||
150 | if (dst_file == NULL) { | 151 | if (dst_file == NULL) { |
151 | if (!quiet_flag) { | 152 | if (!quiet_flag) { |
152 | perror_msg("%s", dst_name); | 153 | perror_msg("%s", dst_name); |