diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2020-01-31 11:20:06 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2020-01-31 11:20:06 +0200 |
commit | deaecae0baffbf9b42a732aa7d707eb3e82b3c22 (patch) | |
tree | 4b79569bf4769c249e42db32fc7d96f2758b89f3 /capture.c | |
parent | 1e656052f14c3adc0646cb15cfd88ec30c0eb794 (diff) | |
download | posixruncapture-deaecae0baffbf9b42a732aa7d707eb3e82b3c22.tar.gz posixruncapture-deaecae0baffbf9b42a732aa7d707eb3e82b3c22.tar.bz2 |
Fix mode of the created output file.v1.01
* Changes: Document changes.
* capture.c (capture_set_output): Fix mode of the created file.
* lib/POSIX/Run/Capture.pm: Improve documentation. Set version
number 1.01.
Diffstat (limited to 'capture.c')
-rw-r--r-- | capture.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -153,7 +153,7 @@ capture_set_output(struct capture *cp, SV *cb[2], int strno) } } else { char *filename = SvPV_nolen(sv); - int fd = open(filename, O_CREAT|O_TRUNC|O_RDWR, 0777); + int fd = open(filename, O_CREAT|O_TRUNC|O_RDWR, 0666); if (fd == -1) { croak("can't open file %s for writing: %s", filename, strerror(errno)); |