aboutsummaryrefslogtreecommitdiff
path: root/capture.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2020-01-31 11:20:06 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2020-01-31 11:20:06 +0200
commitdeaecae0baffbf9b42a732aa7d707eb3e82b3c22 (patch)
tree4b79569bf4769c249e42db32fc7d96f2758b89f3 /capture.c
parent1e656052f14c3adc0646cb15cfd88ec30c0eb794 (diff)
downloadposixruncapture-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/capture.c b/capture.c
index d5828ea..a925692 100644
--- a/capture.c
+++ b/capture.c
@@ -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));

Return to:

Send suggestions and report system problems to the System administrator.