summaryrefslogtreecommitdiff
path: root/src/split.c
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2012-06-22 11:17:38 +0100
committerPádraig Brady <P@draigBrady.com>2012-06-22 11:17:38 +0100
commit30a604e631291b80b9812e03e0f325489ae0d77e (patch)
treedd6c760b0e161c416e1f95ab9c78c76a11981dc9 /src/split.c
parent4cfca3916d878afdd0d0b111354f30decc41e8f5 (diff)
downloadcoreutils-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.c3
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
{