summaryrefslogtreecommitdiff
path: root/quotasys.c
diff options
context:
space:
mode:
Diffstat (limited to 'quotasys.c')
-rw-r--r--quotasys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/quotasys.c b/quotasys.c
index 0875ef6..d3399c3 100644
--- a/quotasys.c
+++ b/quotasys.c
@@ -97,7 +97,7 @@ uid_t user2uid(char *name, int *err)
if (err)
*err = 0;
- ret = strtol(name, &errch, 0);
+ ret = strtoul(name, &errch, 0);
if (!*errch) /* Is name number - we got directly uid? */
return ret;
if (!(entry = getpwnam(name))) {
@@ -124,7 +124,7 @@ gid_t group2gid(char *name, int *err)
if (err)
*err = 0;
- ret = strtol(name, &errch, 0);
+ ret = strtoul(name, &errch, 0);
if (!*errch) /* Is name number - we got directly gid? */
return ret;
if (!(entry = getgrnam(name))) {