summaryrefslogtreecommitdiff
path: root/modules/rename
Commit message (Collapse)AuthorAgeFilesLines
* dirname-lgpl: adjust clients that don't need full dirnameEric Blake2009-10-291-2/+2
| | | | | | | | | | | | | | | | | | | | Some of these modules still use xalloc_die from other paths, but mkdir and rename are definitely reduced in complexity. * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname. * modules/filenamecat (Depends-on): Likewise. * modules/linkat (Depends-on): Likewise. * modules/mkancesdirs (Depends-on): Likewise. * modules/mkdir (Depends-on): Likewise. * modules/openat (Depends-on): Likewise. * modules/savewd (Depends-on): Likewise. * modules/rename (Depends-on): Likewise. (License): Relax license. * modules/mkdir-tests (Depends-on): Drop progname. (Makefile.am): Delete unneeded LDADD. * modules/rename-tests (Depends-on, Makefile.am): Likewise. Signed-off-by: Eric Blake <ebb9@byu.net>
* rename: fix another cygwin 1.5 bugEric Blake2009-10-021-0/+2
| | | | | | | | | | | | | | | | | | | | Cygwin 1.5 sometimes, but not always, failed on rename("dir1","dir2") when "dir2" exists. Beef up the m4 tests to more reliably detect at least one of cygwin's bugs, in spite of not knowing why the rename only failed sporadically (thankfully, cygwin 1.7 does not have the bug). Meanwhile, although NetBSD needs to share the hard link workarounds, it does not need the trailing dot and directory workarounds, so split the m4 test into two separate feature checks. * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two checks. * lib/rename.c (rpl_rename): Don't penalize NetBSD with unnecessary cygwin workarounds. Also work around bug with moving full directory onto an empty one. * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir. Signed-off-by: Eric Blake <ebb9@byu.net>
* rename: fix cygwin 1.5.x bugsEric Blake2009-10-021-0/+1
| | | | | | | | | | On cygwin 1.5.x, rename("dir","file") mistakenly succeeded. rename("hard1","hard2") mistakenly reduced the hard link count, such that "hard1" disappears once "hard2" is unlinked. * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs. * lib/rename.c (rpl_rename): Work around them. * modules/rename (Depends-on): Add same-inode.
* rename: fix Solaris 9 bugEric Blake2009-10-021-1/+3
| | | | | | | | | | | | | | rename("file/","oops") mistakenly succeeded. * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash on non-directory. Avoid calling exit. * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool, strdup. * modules/rename-tests (Depends-on): Drop lstat. * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug. (gl_PREREQ_RENAME): Delete unused macro. Signed-off-by: Eric Blake <ebb9@byu.net>
* rename: modernize replacementEric Blake2009-09-071-0/+2
| | | | | | | | | | | | | | | | * modules/rename (Depends-on): Add stdio. (configure.ac): Declare witness. * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let stdio take care of replacement. * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults. * modules/stdio (Makefile.am): Substitute them. * lib/stdio.in.h (rename): Declare replacement. * lib/rename.c (includes): Allow cross-compilation to non-windows machines. * doc/posix-functions/rename.texi (rename): Improve documentation. Signed-off-by: Eric Blake <ebb9@byu.net>
* gnulib-tool now synthesizes the EXTRA_DIST line.Bruno Haible2006-10-131-1/+0
|
* Distribute all lib/* source files through EXTRA_DIST.Bruno Haible2006-10-121-0/+1
|
* [ChangeLog]Jim Meyering2006-09-151-2/+1
| | | | | | * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change. [m4/ChangeLog] * rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
* Add a license tag to every module.Bruno Haible2004-09-221-0/+3
|
* Add a Maintainer.Bruno Haible2003-01-201-0/+3
|
* Add module descriptions.Bruno Haible2003-01-131-0/+1
|
* Module description.Bruno Haible2002-12-311-0/+18