From 3badaccae1d47fc7265dd66edc8c707f23607320 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 28 Jul 2004 23:06:25 +0000 Subject: [PATCH] userspec.c cleanup, e.g. for "chown 010 file". --- lib/ChangeLog | 9 +++++++++ 1 file changed, 9 insertions(+) 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. -- 2.47.2