Jim Meyering [Sat, 25 Jul 1998 14:36:07 +0000 (14:36 +0000)]
(show_dev): Omit local devices if show_all_fs is negative.
(show_all_fs): If negative, omit non-local filesystems.
All uses of (all_fs != 0) changed to (all_fs > 0).
(long_options, usage, main): Add -l or --local option.
(main): When asking for df of an explicit file name, get all
the mount points, so that we're more likely to find it when
we look it up.
Jim Meyering [Sat, 25 Jul 1998 13:49:47 +0000 (13:49 +0000)]
.
Jim Meyering [Sat, 25 Jul 1998 13:48:45 +0000 (13:48 +0000)]
.
Jim Meyering [Sat, 25 Jul 1998 13:20:49 +0000 (13:20 +0000)]
(utime_now): Moved into m4/utimes.m4.
(touch) [!HAVE_UTIME_NULL]: Remove #ifdef and use of utime_now in if-block.
Jim Meyering [Sat, 25 Jul 1998 13:16:38 +0000 (13:16 +0000)]
.
Jim Meyering [Sat, 25 Jul 1998 13:10:11 +0000 (13:10 +0000)]
*** empty log message ***
Jim Meyering [Wed, 22 Jul 1998 18:32:36 +0000 (18:32 +0000)]
.
Jim Meyering [Wed, 22 Jul 1998 18:30:16 +0000 (18:30 +0000)]
(human_readable): amt -> damt, to fix typo when
computing which power to use after overflow occurs during
multiplication.
From Paul Eggert.
Jim Meyering [Wed, 22 Jul 1998 16:57:26 +0000 (16:57 +0000)]
*** empty log message ***
Jim Meyering [Wed, 22 Jul 1998 16:57:15 +0000 (16:57 +0000)]
Include <stdio.h> if NDEBUG is not defined; needed on SunOS 4.
From Paul Eggert.
Jim Meyering [Mon, 20 Jul 1998 03:59:51 +0000 (03:59 +0000)]
.
Jim Meyering [Mon, 20 Jul 1998 03:58:24 +0000 (03:58 +0000)]
.
Jim Meyering [Mon, 20 Jul 1998 03:58:04 +0000 (03:58 +0000)]
.
Jim Meyering [Mon, 20 Jul 1998 03:57:59 +0000 (03:57 +0000)]
*** empty log message ***
Jim Meyering [Sun, 19 Jul 1998 04:14:52 +0000 (04:14 +0000)]
(copy_internal): Add another exclusion from the
sameness test: when --force has been specified, the destination
is unlinked before any copy.
(copy_internal): Add yet another: when both src and dest are symlinks.
Jim Meyering [Sat, 18 Jul 1998 14:06:38 +0000 (14:06 +0000)]
*** empty log message ***
Jim Meyering [Sat, 18 Jul 1998 13:54:40 +0000 (13:54 +0000)]
*** empty log message ***
Jim Meyering [Sat, 18 Jul 1998 13:53:32 +0000 (13:53 +0000)]
*** empty log message ***
Jim Meyering [Sat, 18 Jul 1998 13:51:11 +0000 (13:51 +0000)]
.
Jim Meyering [Sat, 18 Jul 1998 13:16:43 +0000 (13:16 +0000)]
(TESTS): Add into-self-2.
Jim Meyering [Sat, 18 Jul 1998 13:15:33 +0000 (13:15 +0000)]
.
Jim Meyering [Sat, 18 Jul 1998 12:28:31 +0000 (12:28 +0000)]
(read_filesystem_list): Fix more memory leaks on failure.
From Andreas Schwab.
Jim Meyering [Thu, 16 Jul 1998 23:41:43 +0000 (23:41 +0000)]
*** empty log message ***
Jim Meyering [Thu, 16 Jul 1998 23:41:03 +0000 (23:41 +0000)]
Include lchown.h.
Jim Meyering [Thu, 16 Jul 1998 23:40:18 +0000 (23:40 +0000)]
*** empty log message ***
Jim Meyering [Thu, 16 Jul 1998 23:26:50 +0000 (23:26 +0000)]
(noinst_HEADERS): Add lchown.h.
Jim Meyering [Thu, 16 Jul 1998 23:25:29 +0000 (23:25 +0000)]
include lchown.h
Jim Meyering [Thu, 16 Jul 1998 23:23:05 +0000 (23:23 +0000)]
.
Jim Meyering [Thu, 16 Jul 1998 23:20:03 +0000 (23:20 +0000)]
[!ENOSYS] (ENOSYS): Define to ENOTSUP or ENOMSG.
Jim Meyering [Thu, 16 Jul 1998 23:14:30 +0000 (23:14 +0000)]
*** empty log message ***
Jim Meyering [Thu, 16 Jul 1998 23:12:25 +0000 (23:12 +0000)]
[!ENOSYS] (ENOSYS): Define to ENOTSUP or ENOMSG.
Jim Meyering [Thu, 16 Jul 1998 23:02:19 +0000 (23:02 +0000)]
Update prototype.
Jim Meyering [Thu, 16 Jul 1998 23:02:03 +0000 (23:02 +0000)]
(safe_read): Change type of pointer parameter to
`void' to avoid Irix4 cc errors. Reported by Kaveh Ghazi.
Jim Meyering [Thu, 16 Jul 1998 22:58:12 +0000 (22:58 +0000)]
.
Jim Meyering [Wed, 15 Jul 1998 12:39:58 +0000 (12:39 +0000)]
(check_format): Add `5' to the list of digits.
Reported by Donni Erpel.
Jim Meyering [Mon, 13 Jul 1998 00:33:36 +0000 (00:33 +0000)]
.
Jim Meyering [Mon, 13 Jul 1998 00:31:49 +0000 (00:31 +0000)]
check: depend on maint_gen
Jim Meyering [Mon, 13 Jul 1998 00:17:57 +0000 (00:17 +0000)]
(print_header): Print "1k-blocks", not "1.0k-blocks".
Jim Meyering [Thu, 9 Jul 1998 14:29:22 +0000 (14:29 +0000)]
*** empty log message ***
Jim Meyering [Thu, 9 Jul 1998 14:29:11 +0000 (14:29 +0000)]
(jm_FUNC_CHOWN): Add a check to verify that the
uid and gid actually remain unchanged.
Jim Meyering [Wed, 8 Jul 1998 01:10:45 +0000 (01:10 +0000)]
*** empty log message ***
Jim Meyering [Wed, 8 Jul 1998 01:08:37 +0000 (01:08 +0000)]
*** empty log message ***
Jim Meyering [Wed, 8 Jul 1998 01:07:39 +0000 (01:07 +0000)]
Remove FCLOSE_UNLOCKED block.
Jim Meyering [Wed, 8 Jul 1998 01:03:34 +0000 (01:03 +0000)]
Remove fclose_unlocked.
Jim Meyering [Sun, 5 Jul 1998 00:25:10 +0000 (00:25 +0000)]
(parse_line): Add casts to avoid errors from Irix4's `cc' C compiler.
From Kaveh Ghazi.
Jim Meyering [Sat, 4 Jul 1998 17:15:08 +0000 (17:15 +0000)]
Include stdio.h. Required on some systems when using assert.
From Kaveh Ghazi.
Jim Meyering [Sat, 4 Jul 1998 17:08:26 +0000 (17:08 +0000)]
Use cmp, not diff.
Reported by Kaveh Ghazi.
Jim Meyering [Sat, 4 Jul 1998 16:46:04 +0000 (16:46 +0000)]
*** empty log message ***
Jim Meyering [Sat, 4 Jul 1998 16:45:52 +0000 (16:45 +0000)]
bump serial number
Jim Meyering [Sat, 4 Jul 1998 16:45:18 +0000 (16:45 +0000)]
Use syscmd, ifelse, and sysval. Mainly as an exercise
to prove that this macro can be used in packages without regex.c.
Jim Meyering [Sat, 4 Jul 1998 15:46:38 +0000 (15:46 +0000)]
tweak comment
Jim Meyering [Sat, 4 Jul 1998 15:14:46 +0000 (15:14 +0000)]
.
Jim Meyering [Sat, 4 Jul 1998 14:45:29 +0000 (14:45 +0000)]
Remove #ifdef around <regex.h> inclusion.
Jim Meyering [Sat, 4 Jul 1998 14:45:12 +0000 (14:45 +0000)]
Remove #ifdef around <regex.h> inclusion.
(extract_regexp): Remove #if !WITH_REGEX...#endif block.
Jim Meyering [Sat, 4 Jul 1998 04:10:28 +0000 (04:10 +0000)]
*** empty log message ***
Jim Meyering [Sat, 4 Jul 1998 04:07:55 +0000 (04:07 +0000)]
add warning
Jim Meyering [Sat, 4 Jul 1998 03:59:34 +0000 (03:59 +0000)]
(remove_dir): Use fprintf, not error to avoid newline in prompt.
Jim Meyering [Sat, 4 Jul 1998 03:43:50 +0000 (03:43 +0000)]
*** empty log message ***
Jim Meyering [Sat, 4 Jul 1998 03:42:40 +0000 (03:42 +0000)]
.
Jim Meyering [Sat, 4 Jul 1998 03:17:08 +0000 (03:17 +0000)]
*** empty log message ***
Jim Meyering [Sat, 4 Jul 1998 01:46:33 +0000 (01:46 +0000)]
.
Jim Meyering [Sat, 4 Jul 1998 01:46:23 +0000 (01:46 +0000)]
*** empty log message ***
Jim Meyering [Sat, 4 Jul 1998 01:46:01 +0000 (01:46 +0000)]
use $jm_with_regex, now $WITH_REGEX
Jim Meyering [Sat, 4 Jul 1998 01:44:01 +0000 (01:44 +0000)]
remove ifdef around inclusion of regex.h altogether!!
Jim Meyering [Sat, 4 Jul 1998 01:38:14 +0000 (01:38 +0000)]
add 100 to serial number
Jim Meyering [Sat, 4 Jul 1998 01:33:27 +0000 (01:33 +0000)]
.
Jim Meyering [Sat, 4 Jul 1998 01:33:19 +0000 (01:33 +0000)]
(noinst_HEADERS): Add regex.h.
Jim Meyering [Sat, 4 Jul 1998 00:53:46 +0000 (00:53 +0000)]
.
Jim Meyering [Sat, 4 Jul 1998 00:53:38 +0000 (00:53 +0000)]
*** empty log message ***
Jim Meyering [Sat, 4 Jul 1998 00:48:49 +0000 (00:48 +0000)]
.
Jim Meyering [Sat, 4 Jul 1998 00:48:15 +0000 (00:48 +0000)]
.
Jim Meyering [Sat, 4 Jul 1998 00:48:11 +0000 (00:48 +0000)]
(read_filesystem_list):
Don't leak memory on failure.
Don't create a dummy struct mount_entry entry;
use the address-of-the-tail-address method instead.
Preserve errno if possible on failure, setting it to 0 if inapplicable.
Close file descriptor leak if the F_SETLKW failed.
Report an error if SVR4 lock file cannot be opened for some reason
other than a nonexistent lock file.
Jim Meyering [Sat, 4 Jul 1998 00:41:16 +0000 (00:41 +0000)]
.
Jim Meyering [Sat, 4 Jul 1998 00:40:52 +0000 (00:40 +0000)]
*** empty log message ***
Jim Meyering [Sat, 4 Jul 1998 00:39:41 +0000 (00:39 +0000)]
(AM_WITH_NLS): Remove intl/libintl.h if <libintl.h> is to be used.
Jim Meyering [Sat, 4 Jul 1998 00:35:27 +0000 (00:35 +0000)]
.
Jim Meyering [Sat, 4 Jul 1998 00:23:40 +0000 (00:23 +0000)]
.
Jim Meyering [Sat, 4 Jul 1998 00:22:39 +0000 (00:22 +0000)]
.
Jim Meyering [Sat, 4 Jul 1998 00:20:47 +0000 (00:20 +0000)]
.
Jim Meyering [Sat, 4 Jul 1998 00:20:36 +0000 (00:20 +0000)]
Require jm_WITH_REGEX.
Jim Meyering [Sat, 4 Jul 1998 00:19:23 +0000 (00:19 +0000)]
.
Jim Meyering [Sat, 4 Jul 1998 00:19:08 +0000 (00:19 +0000)]
*** empty log message ***
Jim Meyering [Sat, 4 Jul 1998 00:17:52 +0000 (00:17 +0000)]
*** empty log message ***
Jim Meyering [Sat, 4 Jul 1998 00:15:37 +0000 (00:15 +0000)]
Change guard on <regex.h> inclusion to use new
symbol `! HAVE_LIBC_REGEX' defined in m4/regex.m4.
Jim Meyering [Sat, 4 Jul 1998 00:05:23 +0000 (00:05 +0000)]
.
Jim Meyering [Fri, 3 Jul 1998 23:56:44 +0000 (23:56 +0000)]
(copy_internal): Rename variable and reverse sense of tests
to make the code a little clearer.
Jim Meyering [Fri, 3 Jul 1998 21:05:06 +0000 (21:05 +0000)]
(df_readable): Rename local so as not to shadow global.
Jim Meyering [Fri, 3 Jul 1998 20:57:31 +0000 (20:57 +0000)]
(SAME_INODE): New macro.
Use it to replace open-coded equivalents.
Jim Meyering [Fri, 3 Jul 1998 20:32:37 +0000 (20:32 +0000)]
(copy_internal): Try harder identifying a relative
symbolic link in the current directory.
From Andreas Schwab.
Jim Meyering [Fri, 3 Jul 1998 20:09:03 +0000 (20:09 +0000)]
Skip tests that depend on link(2) not following symlinks.
From Andreas Schwab.
Jim Meyering [Fri, 3 Jul 1998 20:06:50 +0000 (20:06 +0000)]
(copy_internal): Don't skip test for same file if creating a hardlink
from symlink over a non-symlink while making backups.
Jim Meyering [Fri, 3 Jul 1998 19:57:42 +0000 (19:57 +0000)]
(copy_internal): Don't call chown on a symlink.
Jim Meyering [Wed, 1 Jul 1998 12:46:39 +0000 (12:46 +0000)]
*** empty log message ***
Jim Meyering [Wed, 1 Jul 1998 12:44:22 +0000 (12:44 +0000)]
Don't define NDEBUG, now that it's done via configure's --disable-assert option.
Jim Meyering [Tue, 30 Jun 1998 14:32:53 +0000 (14:32 +0000)]
(read_filesystem_list):
Plug file descriptor leak on failure.
Report failure if lock file can't be opened for some reason
other than nonexistence.
Jim Meyering [Tue, 30 Jun 1998 14:32:33 +0000 (14:32 +0000)]
*** empty log message ***
Jim Meyering [Tue, 30 Jun 1998 03:57:55 +0000 (03:57 +0000)]
.
Jim Meyering [Tue, 30 Jun 1998 03:56:57 +0000 (03:56 +0000)]
(read_filesystem_list) [MOUNTED_GETMNTENT2]:
Always close stream and file descriptor before returning.
Jim Meyering [Tue, 30 Jun 1998 02:27:51 +0000 (02:27 +0000)]
(main): Move the test of the result of the read_filesystem_list call
up out of if-block -- code in the else-block depends on it too.
Jim Meyering [Tue, 30 Jun 1998 02:15:43 +0000 (02:15 +0000)]
(read_filesystem_list): If SVR4, lock /etc/.mnttab.lock if available,
to avoid race conditions (e.g. with the automounter on Solaris 2.6).
Include <errno.h>, <fcntl.h>, <unistd.h>.