diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-11-13 05:39:35 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-11-13 05:39:35 +0000 |
| commit | ee163b4ebf8f30f133e33a45cf8c879a3b5a09e9 (patch) | |
| tree | 84e15b31de72e95a48dc2f0063477bba838b8060 /io.c | |
| parent | b5f3220dfab86e2ac94e0120b8a544ee08a44319 (diff) | |
| download | ruby-ee163b4ebf8f30f133e33a45cf8c879a3b5a09e9.tar.gz ruby-ee163b4ebf8f30f133e33a45cf8c879a3b5a09e9.tar.xz ruby-ee163b4ebf8f30f133e33a45cf8c879a3b5a09e9.zip | |
matz
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
| -rw-r--r-- | io.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2481,7 +2481,11 @@ next_argv() fw = rb_fopen(fn, "w"); #ifndef NO_SAFE_RENAME fstat(fileno(fw), &st2); +#ifdef HAVE_FCHMOD fchmod(fileno(fw), st.st_mode); +#else + chmod(fn, st.st_mode); +#endif if (st.st_uid!=st2.st_uid || st.st_gid!=st2.st_gid) { fchown(fileno(fw), st.st_uid, st.st_gid); } |
