Age | Commit message (Collapse) | Author | |
---|---|---|---|
2005-06-02 | Don't use "path" or "filename" to mean "file name" | Paul Eggert | |
in comments or local variable names. | |||
2005-05-14 | Update FSF postal mail address. | Jim Meyering | |
2004-08-02 | (errno): Remove decl; we now assume C89 or better. | Paul Eggert | |
2004-06-30 | Use `file system', not filesystem in a comment. | Jim Meyering | |
2003-09-10 | Include <stdlib.h>, <string.h> unconditionally. | Jim Meyering | |
Include savedir.h first, to test interface. | |||
2003-06-06 | Include <stddef.h>. | Jim Meyering | |
(NULL): Don't define, since <stddef.h> does that. | |||
2001-08-31 | (savedir): Remove size parameter, as POSIX says that | Jim Meyering | |
a directory's st_size can have an arbitrary value, so the old usage could waste an arbitrary amount of memory. All uses changed. | |||
2000-06-27 | savedir now sets errno on failure and invokes xmalloc to get memory. | Jim Meyering | |
Fix a couple of other minor bugs while we're at it. (<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-03-08 | (savedir): Work even if directory size is | Jim Meyering | |
negative; this can happen with some screwy NFS configurations. | |||
2000-01-04 | (savedir): Don't store past the end of an array if | Jim Meyering | |
name_size is zero and the directory is empty. | |||
1999-08-08 | fix typo | Jim Meyering | |
1999-08-08 | (savedir): Change type of name_size parameter to off_t. | Jim Meyering | |
1998-12-07 | ansideclify | Jim Meyering | |
1998-03-15 | Use #if, not #ifdef with HAVE_ macros | Jim Meyering | |
1997-12-25 | Declare stpcpy only if not defined as macro. | Jim Meyering | |
1997-11-30 | (savedir): Revert last change. malloc always | Jim Meyering | |
works when called with zero, because we use the wrapper if the system version is lacking. | |||
1997-11-30 | (savedir): Check for size zero before invoking | Jim Meyering | |
malloc; this can occur if st_size arg overflows on conversion to unsigned int. All callers now cast st_size arg to unsigned int. | |||
1997-10-24 | Use unsigned int, not just unsigned. | Jim Meyering | |
1997-10-04 | (savedir): Declare DIR parameter to be const. | Jim Meyering | |
Include savedir.h. | |||
1996-07-15 | update FSF address in copyright | Jim Meyering | |
1994-10-20 | merge with 3.9p | Jim Meyering | |
1994-10-17 | . | Jim Meyering | |
1994-10-02 | merge with 3.9h | Jim Meyering | |
1994-10-02 | . | Jim Meyering | |
1994-07-30 | . | Jim Meyering | |
1992-10-31 | Initial revision | Jim Meyering | |