]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(main): Rename local `symbolic_mode' to `specified_mode'.
authorJim Meyering <jim@meyering.net>
Sat, 30 Sep 2000 08:49:51 +0000 (08:49 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 30 Sep 2000 08:49:51 +0000 (08:49 +0000)
src/mkdir.c

index e282fa7d2fd2d9c1e1756406db073a66c878904d..5309f120f89d957fee19772a513671ddf8a45df3 100644 (file)
@@ -77,7 +77,7 @@ main (int argc, char **argv)
 {
   mode_t newmode;
   mode_t parent_mode;
-  const char *symbolic_mode = NULL;
+  const char *specified_mode = NULL;
   const char *verbose_fmt_string = NULL;
   int errors = 0;
   int optc;
@@ -101,7 +101,7 @@ main (int argc, char **argv)
          create_parents = 1;
          break;
        case 'm':
-         symbolic_mode = optarg;
+         specified_mode = optarg;
          break;
        case 'v': /* --verbose  */
          verbose_fmt_string = _("created directory %s");
@@ -120,12 +120,12 @@ main (int argc, char **argv)
     }
 
   newmode = S_IRWXUGO;
-  if (symbolic_mode)
+  if (specified_mode)
     {
-      struct mode_change *change = mode_compile (symbolic_mode, 0);
+      struct mode_change *change = mode_compile (specified_mode, 0);
       newmode &= ~ umask (0);
       if (change == MODE_INVALID)
-       error (1, 0, _("invalid mode %s"), quote (symbolic_mode));
+       error (1, 0, _("invalid mode %s"), quote (specified_mode));
       else if (change == MODE_MEMORY_EXHAUSTED)
        xalloc_die ();
       newmode = mode_adjust (newmode, change);
@@ -155,7 +155,7 @@ main (int argc, char **argv)
             This extra step is necessary in some cases when the containing
             directory has a default ACL.  */
 
-         if (fail == 0 && symbolic_mode)
+         if (fail == 0 && specified_mode)
            {
              fail = chmod (argv[optind], newmode);
              if (fail)