summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-09-30 08:53:27 +0000
committerJim Meyering <jim@meyering.net>2000-09-30 08:53:27 +0000
commit2170a489569b46071132723c49b81efe56f5f544 (patch)
treec0598e18a6ce384052abe82d4dfc78524c5accc7 /src
parentbeebc6916806d148b3e38a4f61d4455fd6486aa2 (diff)
downloadcoreutils-2170a489569b46071132723c49b81efe56f5f544.tar.xz
(main): Rename local `symbolic_mode' to `specified_mode'.
Diffstat (limited to 'src')
-rw-r--r--src/mknod.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mknod.c b/src/mknod.c
index 19167fa41..fac49c9da 100644
--- a/src/mknod.c
+++ b/src/mknod.c
@@ -86,7 +86,7 @@ main (int argc, char **argv)
{
mode_t newmode;
struct mode_change *change;
- const char *symbolic_mode;
+ const char *specified_mode;
int optc;
int i_major, i_minor;
long int tmp_major, tmp_minor;
@@ -99,7 +99,7 @@ main (int argc, char **argv)
atexit (close_stdout);
- symbolic_mode = NULL;
+ specified_mode = NULL;
while ((optc = getopt_long (argc, argv, "m:", longopts, NULL)) != -1)
{
@@ -108,7 +108,7 @@ main (int argc, char **argv)
case 0:
break;
case 'm':
- symbolic_mode = optarg;
+ specified_mode = optarg;
break;
case_GETOPT_HELP_CHAR;
case_GETOPT_VERSION_CHAR (PROGRAM_NAME, AUTHORS);
@@ -118,10 +118,10 @@ main (int argc, char **argv)
}
newmode = (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
- if (symbolic_mode)
+ if (specified_mode)
{
newmode &= ~ umask (0);
- change = mode_compile (symbolic_mode, 0);
+ change = mode_compile (specified_mode, 0);
if (change == MODE_INVALID)
error (1, 0, _("invalid mode"));
else if (change == MODE_MEMORY_EXHAUSTED)
@@ -227,7 +227,7 @@ major and minor device numbers may not be specified for fifo files"));
are set as specified. This extra step is necessary in some cases
when the containing directory has a default ACL. */
- if (symbolic_mode)
+ if (specified_mode)
{
if (chmod (argv[optind], newmode))
error (0, errno, _("cannot set permissions of `%s'"),