diff options
author | Jim Meyering <jim@meyering.net> | 2000-02-12 10:11:54 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-02-12 10:11:54 +0000 |
commit | 66a4b0e7a3e3b92b0d9543ee681a37a8ba7309d7 (patch) | |
tree | ad7882296e984c9f310e6539ce29d644c3187c84 /lib | |
parent | 3d9c2a6c35c09cdf463358ccb2f3c7bf42cb9d15 (diff) | |
download | coreutils-66a4b0e7a3e3b92b0d9543ee681a37a8ba7309d7.tar.xz |
add FIXME comments for use of atoi
Diffstat (limited to 'lib')
-rw-r--r-- | lib/userspec.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/userspec.c b/lib/userspec.c index fe2596858..135a36c5d 100644 --- a/lib/userspec.c +++ b/lib/userspec.c @@ -183,7 +183,10 @@ parse_user_spec (const char *spec_arg, uid_t *uid, gid_t *gid, if (use_login_group) error_msg = "cannot get the login group of a numeric UID"; else - *uid = atoi (u); + { + /* FIXME: don't use atoi! */ + *uid = atoi (u); + } } } else @@ -223,7 +226,10 @@ parse_user_spec (const char *spec_arg, uid_t *uid, gid_t *gid, if (!is_number (g)) error_msg = "invalid group"; else - *gid = atoi (g); + { + /* FIXME: don't use atoi! */ + *gid = atoi (g); + } } else *gid = grp->gr_gid; |