diff options
author | Pádraig Brady <P@draigBrady.com> | 2012-06-22 11:17:38 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2012-06-22 11:17:38 +0100 |
commit | 30a604e631291b80b9812e03e0f325489ae0d77e (patch) | |
tree | dd6c760b0e161c416e1f95ab9c78c76a11981dc9 /src/split.c | |
parent | 4cfca3916d878afdd0d0b111354f30decc41e8f5 (diff) | |
download | coreutils-30a604e631291b80b9812e03e0f325489ae0d77e.tar.xz |
maint: refactor common mode bits used to create files
* src/system.h (MODE_RW_UGO): The new refactored define (666).
* src/mkfifo.c: Use the new define.
* src/mknod.c: Likewise.
* src/split.c: Likewise.
* src/system.h: Likewise.
* src/touch.c: Likewise.
* src/truncate.c: Likewise.
Suggested-by: Jim Meyering
Diffstat (limited to 'src/split.c')
-rw-r--r-- | src/split.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/split.c b/src/split.c index 53ee2719d..46d2511ae 100644 --- a/src/split.c +++ b/src/split.c @@ -362,8 +362,7 @@ create (const char *name) { if (verbose) fprintf (stdout, _("creating file %s\n"), quote (name)); - return open (name, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, - (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)); + return open (name, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, MODE_RW_UGO); } else { |