diff options
author | Jim Meyering <jim@meyering.net> | 2000-06-27 07:08:52 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-06-27 07:08:52 +0000 |
commit | 0a43597bb86b339222e1817d3715e7b08a52fb1c (patch) | |
tree | 1499601ce5e3b4aa42dc0d306af5f50616d75deb /lib | |
parent | 211b5731d7f27ef31e1ef16bc110ad5e77ec24c9 (diff) | |
download | coreutils-0a43597bb86b339222e1817d3715e7b08a52fb1c.tar.xz |
*** empty log message ***
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ChangeLog | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index 56e414e38..80ddf285c 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,25 @@ +2000-06-26 Paul Eggert <eggert@twinsun.com> + + savedir now sets errno on failure and invokes xmalloc to get memory. + Fix a couple of other minor bugs while we're at it. + + * savedir.c (<unistd.h>): Do not include; there's no need. + (NAMLEN): Remove macro. + (malloc, realloc): Remove decls. + (stpcpy): Likewise. + ("xalloc.h"): Include. + (NAME_SIZE_DEFAULT): New macro. + (savedir): Use xmalloc / xrealloc to allocate memory. + Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero. + Skip "" directory entries. + Use strlen to calculate directory entry length, since the old method + is rarely used these days and isn't worth supporting. + Don't use a pointer after freeing it. + Check for integer overflow when calculating allocation size. + Use memcpy to copy entries, instead of stpcpy. + Set errno properly when returning NULL. + Check for readdir error. + 2000-06-26 Jim Meyering <meyering@lucent.com> * posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort. |