From: srittau Date: Tue, 12 Mar 2002 14:21:18 +0000 (+0000) Subject: From trunk: Use strtoul() instead of strtol() for umask parsing. X-Git-Tag: netatalk-1-5-3~30 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c508adbc3ffe0cf69f2209033f78e3539ff67e51;hp=d84a78d7b7e0b9be9c85c295fce497f74ba3f622;p=netatalk.git From trunk: Use strtoul() instead of strtol() for umask parsing. --- diff --git a/etc/afpd/afp_options.c b/etc/afpd/afp_options.c index 69e44ddf..2af63d6b 100644 --- a/etc/afpd/afp_options.c +++ b/etc/afpd/afp_options.c @@ -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++;