diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-02-16 14:42:43 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-02-16 14:42:43 +0000 |
commit | 974ab3dd887985e3aa347f3c6521f819296396a0 (patch) | |
tree | 802fb82c9f8ec8acd7a60fba7824c2df6f0073ad /src/mknod.c | |
parent | 8e7ba70eba02f88d4f3ba12e07ab9c7bdf32240a (diff) | |
download | coreutils-upstream/8.21.tar.gz |
Imported Upstream version 8.21upstream/8.21
Diffstat (limited to 'src/mknod.c')
-rw-r--r-- | src/mknod.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mknod.c b/src/mknod.c index 3a6d695a..7cfc708d 100644 --- a/src/mknod.c +++ b/src/mknod.c @@ -1,5 +1,5 @@ /* mknod -- make special files - Copyright (C) 1990-2012 Free Software Foundation, Inc. + Copyright (C) 1990-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -53,11 +53,10 @@ usage (int status) program_name); fputs (_("\ Create the special file NAME of the given TYPE.\n\ -\n\ -"), stdout); - fputs (_("\ -Mandatory arguments to long options are mandatory for short options too.\n\ "), stdout); + + emit_mandatory_arg_note (); + fputs (_("\ -m, --mode=MODE set file permission bits to MODE, not a=rw - umask\n\ "), stdout); @@ -120,7 +119,7 @@ main (int argc, char **argv) } } - newmode = (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); + newmode = MODE_RW_UGO; if (specified_mode) { struct mode_change *change = mode_compile (specified_mode); |