From c508adbc3ffe0cf69f2209033f78e3539ff67e51 Mon Sep 17 00:00:00 2001 From: srittau Date: Tue, 12 Mar 2002 14:21:18 +0000 Subject: [PATCH 1/1] From trunk: Use strtoul() instead of strtol() for umask parsing. --- etc/afpd/afp_options.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++; -- 2.39.2