Commit Graph
24019 Commits
Author SHA1 Message Date
Jim Meyering 4de8dde339 update from gnulib 2006-03-22 15:59:58 +00:00
Jim Meyering 7cf97ab1ff *** empty log message *** 2006-03-19 18:27:55 +00:00
Jim Meyering 164d936ac2 Work even in a chroot where d_ino values for entries in "/"
don't match the stat.st_ino values for the same names.

(__getcwd): When no d_ino value matches the target inode
number, iterate through all entries again, using lstat instead.
Reported by Kenshi Muto in http://bugs.debian.org/355810.
2006-03-19 18:27:51 +00:00
Jim Meyering e233777dbe (__getcwd): Clarify a comment.
Use memcpy in place of a call to strcpy.
2006-03-19 17:18:32 +00:00
Jim Meyering 57a06e9966 . 2006-03-17 16:41:30 +00:00
Jim Meyering ca29b9b803 *** empty log message *** 2006-03-17 10:12:37 +00:00
Jim Meyering 9589cc5c57 (gl_REGEX): Fix typo in last change:
s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
2006-03-17 10:07:28 +00:00
Jim Meyering 97530a0a35 remove trailing space 2006-03-17 08:35:50 +00:00
Paul Eggert 7202bc0610 regex fixes for future POSIX and --without-included-regex. 2006-03-17 07:35:25 +00:00
Paul Eggert d01c74cabd (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
Typedef to long int, not to off_t, as POSIX will likely change
in that direction.
2006-03-17 07:33:40 +00:00
Paul Eggert f7bc3c2bfc (gl_REGEX): Don't check for off_t, since the code
no longer needs it.  Instead, check that regoff_t is as least
as wide as ptrdiff_t.

Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
so that our regex.h stays compatible with the installed regex.
This is helpful for installers who configure --without-included-regex.
Problem reported by Emanuele Giaquinta.
2006-03-17 07:33:06 +00:00
Jim Meyering 2379e76856 version: 5.94 2006-03-16 10:33:28 +00:00
Jim Meyering bfae88c97b update from gnulib 2006-03-15 06:53:11 +00:00
Jim Meyering 09674e1952 update from gnulib 2006-03-15 06:52:39 +00:00
Jim Meyering e22fdec364 *** empty log message *** 2006-03-12 22:52:51 +00:00
Jim Meyering fd1628cb1c (set_author): Rename function, from preserve_author. 2006-03-12 22:52:46 +00:00
Jim Meyering de33c6c49d . 2006-03-12 22:47:35 +00:00
Jim Meyering c079c60598 *** empty log message *** 2006-03-12 22:21:12 +00:00
Jim Meyering d0c89246d0 (AD_pop_and_chdir): Use new macro,
CYCLE_CHECK_REFLECT_CHDIR_UP, rather than open-coding it.
2006-03-12 22:21:05 +00:00
Jim Meyering 4798c23152 *** empty log message *** 2006-03-12 22:05:59 +00:00
Jim Meyering b1bb68d5b1 *** empty log message *** 2006-03-12 22:05:18 +00:00
Jim Meyering 435f331bee (gl_ROOT_DEV_INO): Add same-inode.h to the list. 2006-03-12 22:05:12 +00:00
Jim Meyering f497e71465 *** empty log message *** 2006-03-12 22:03:37 +00:00
Jim Meyering 5ff988ec22 (leave_dir): If cycle-check's saved dev-ino pair matches
that of the current directory (which we're about to chdir ".." out of),
then save the dev-ino of the parent, instead.
2006-03-12 22:03:17 +00:00
Jim Meyering ac1e215dc2 *** empty log message *** 2006-03-12 22:02:12 +00:00
Jim Meyering 275d9242ff (SAME_INODE): Remove definition. 2006-03-12 22:02:03 +00:00
Jim Meyering fa44d25fdb Include "same-inode.h".
(CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
2006-03-12 22:01:29 +00:00
Jim Meyering 6ae28d0eb5 (SAME_INODE): Remove definition.
Include "same-inode.h", instead.
2006-03-12 21:59:55 +00:00
Jim Meyering 1ccf35a5e3 (SAME_INODE): Remove definition.
Include "same-inode.h", instead.
2006-03-12 21:59:29 +00:00
Jim Meyering a0d7555ba0 *** empty log message *** 2006-03-12 21:50:12 +00:00
Jim Meyering 9dbfaca637 (gl_SAME): Add same-inode.h to the list. 2006-03-12 21:49:48 +00:00
Jim Meyering 34401c51f9 (gl_CYCLE_CHECK): Add same-inode.h to the list. 2006-03-12 21:48:52 +00:00
Jim Meyering eb5f5d091d (gl_CHDIR_SAFER): Add same-inode.h to the list. 2006-03-12 20:46:36 +00:00
Jim Meyering dc73889ce6 (SAME_INODE): New file/macro. 2006-03-12 20:45:31 +00:00
Jim Meyering 9c8902a290 *** empty log message *** 2006-03-12 20:45:10 +00:00
Jim Meyering 90be59547e (SAME_INODE): Remove definition.
Include "same-inode.h", instead.
2006-03-12 20:45:04 +00:00
Jim Meyering 801f6fc44e . 2006-03-12 19:24:52 +00:00
Paul Eggert 99db964248 Remove asctime_r, ctime_r, and let m4 specify the sources. 2006-03-12 08:07:34 +00:00
Paul Eggert 66314b605e Add time_r.m4. 2006-03-12 08:07:09 +00:00
Paul Eggert c9d6c40b73 (gl_PREREQ): Require gl_TIME_R. 2006-03-12 08:06:49 +00:00
Paul Eggert be8d40f7e7 (asctime_r, ctime_r): Remove. 2006-03-12 08:06:00 +00:00
Paul Eggert 9c4784e50e (libcoreutils_a_SOURCES): Remove time_r.c, time_r.h,
as this is now done in m4.
2006-03-12 08:05:22 +00:00
Paul Eggert 13431ec5b0 New file, from gnulib. 2006-03-12 08:04:42 +00:00
Jim Meyering 7384af3482 *** empty log message *** 2006-03-11 20:40:23 +00:00
Jim Meyering 28bffbc6fe (robust_getcwd): Prepend only one slash, not two. 2006-03-11 20:40:18 +00:00
Jim Meyering 76d20d82dd Fix a bug whereby a user with write access to a directory being removed
could cause the removal of that directory to fail with an erroneous
diagnostic about a directory cycle.  Reported by Vineet Chadha.

(AD_pop_and_chdir): If the directory we're about to
leave (and try to rmdir) is the one whose dev_ino is being used to
detect a cycle, reset cycle_check_state.dev_ino to that of the parent.
2006-03-10 21:47:34 +00:00
Jim Meyering 6754d7a74f *** empty log message *** 2006-03-10 21:44:30 +00:00
Jim Meyering b72303e7e6 mention today's rm -r fix. 2006-03-10 21:31:53 +00:00
Jim Meyering bf46e04149 *** empty log message *** 2006-03-10 21:24:38 +00:00
Paul Eggert 90b915c863 Handle dd's file-creation flags even on file descriptors. Improve
test cases and documentation for these flags.
2006-03-08 18:58:39 +00:00