]> arthur.barton.de Git - netatalk.git/commitdiff
From trunk: Use strtoul() instead of strtol() for umask parsing.
authorsrittau <srittau>
Tue, 12 Mar 2002 14:21:18 +0000 (14:21 +0000)
committersrittau <srittau>
Tue, 12 Mar 2002 14:21:18 +0000 (14:21 +0000)
etc/afpd/afp_options.c

index 69e44ddf2da148c8596a40a7afb8903744f1af30..2af63d6b1b782ddb155f58bf6390669363e1946b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: afp_options.c,v 1.13.2.6 2002-02-11 17:46:40 jmarcus Exp $
+ * $Id: afp_options.c,v 1.13.2.7 2002-03-12 14:21:18 srittau Exp $
  *
  * Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
@@ -376,7 +376,7 @@ int afp_options_parse(int ac, char **av, struct afp_options *options)
             options->flags |= OPTION_CUSTOMICON;
             break;
         case 'm':
-            options->umask = strtol(optarg, &tmp, 8);
+            options->umask = strtoul(optarg, &tmp, 8);
             if ((options->umask > 0777)) {
                 fprintf(stderr, "%s: out of range umask setting provided\n", p);
                 err++;