From: Paul Eggert Date: Wed, 28 Jul 2004 23:06:25 +0000 (+0000) Subject: userspec.c cleanup, e.g. for "chown 010 file". X-Git-Tag: v5.3.0~1035 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3badaccae1d47fc7265dd66edc8c707f23607320;p=thirdparty%2Fcoreutils.git userspec.c cleanup, e.g. for "chown 010 file". --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 45dac2030c..e3d5dfc923 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,5 +1,14 @@ 2004-07-28 Paul Eggert + * userspec.c: Include , "inttostr.h". + (V_STRDUP): Don't assume the string's length fits in int. + (ISDIGIT): unsigned -> unsigned int + (is_number): Define only ifdef __DJGPP__; not needed elsewhere. + Use bool instead of int where appropriate. + Do not allow empty strings. + (parse_user_spec): Parse numbers as decimal integers, even if + they have a leading 0. Don't assume uids and gids fit in int. + * memchr.c: Include , not and . (LONG_MAX_32_BITS): Remove. Include and if available.