]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
userspec.c cleanup, e.g. for "chown 010 file".
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Jul 2004 23:06:25 +0000 (23:06 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Jul 2004 23:06:25 +0000 (23:06 +0000)
lib/ChangeLog

index 45dac2030c16e1f8b0173ea9c56a8c01c49e3bf2..e3d5dfc923ec527e1a995393a47a37a9aadd5c2f 100644 (file)
@@ -1,5 +1,14 @@
 2004-07-28  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * userspec.c: Include <stdbool.h>, "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 <stddef.h>, not <stdlib.h> and <sys/types.h>.
        (LONG_MAX_32_BITS): Remove.
        Include <inttypes.h> and <stdint.h> if available.