projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46cd74b
)
Set permissions of created file
author
Glenn L McGrath
<bug1@ihug.co.nz>
Fri, 20 Apr 2001 05:16:38 +0000
(
05:16
-0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Fri, 20 Apr 2001 05:16:38 +0000
(
05:16
-0000)
libbb/copy_file.c
patch
|
blob
|
history
diff --git
a/libbb/copy_file.c
b/libbb/copy_file.c
index eb9cb1a16b6bec90458465340ead4b39a80d97dd..7e5d11e67c135b05ac68855d333269978bca77c1 100644
(file)
--- a/
libbb/copy_file.c
+++ b/
libbb/copy_file.c
@@
-147,6
+147,7
@@
copy_file(const char *src_name, const char *dst_name,
}
dst_file = fopen(dst_name, "w");
+ chmod(dst_name, srcStatBuf.st_mode);
if (dst_file == NULL) {
if (!quiet_flag) {
perror_msg("%s", dst_name);