Jim Meyering [Thu, 25 Apr 2002 18:58:07 +0000 (18:58 +0000)]
.
Jim Meyering [Thu, 25 Apr 2002 18:03:30 +0000 (18:03 +0000)]
*** empty log message ***
Jim Meyering [Thu, 25 Apr 2002 18:03:07 +0000 (18:03 +0000)]
*** empty log message ***
Jim Meyering [Thu, 25 Apr 2002 18:02:59 +0000 (18:02 +0000)]
*** empty log message ***
Jim Meyering [Thu, 25 Apr 2002 18:02:52 +0000 (18:02 +0000)]
Avoid warnings from gcc.
Declare input_file and output_file to be `const'.
(skip): Declare `file' parameter to be `const', too.
Jim Meyering [Thu, 25 Apr 2002 17:14:28 +0000 (17:14 +0000)]
*** empty log message ***
Jim Meyering [Thu, 25 Apr 2002 16:40:18 +0000 (16:40 +0000)]
*** empty log message ***
Jim Meyering [Thu, 25 Apr 2002 16:40:04 +0000 (16:40 +0000)]
Remove hash table, active_dir_map, used to detect directory cycles.
Instead, detect them lazily with just O(1) memory.
Suggestion from Andi Kleen.
(is_power_of_two): New function.
(print_nth_dir, make_active_dir_ent): Remove functions.
(hash_active_dir_ent, hash_compare_active_dir_ents): Likewise.
(remove_dir): Check for cycles here, ...
(rm): ... and don't check for cycles here.
(rm): Call fspec_get_full_mode here, rather than
fspec_get_filetype_mode. We want to get the dev/ino earlier, and
at the same time as when we get the file type, to avoid the risk
that an attacker would change e.g. a directory to a symlink before
we record its dev/ino.
Jim Meyering [Thu, 25 Apr 2002 16:32:32 +0000 (16:32 +0000)]
Revert last change.
Jim Meyering [Thu, 25 Apr 2002 16:31:41 +0000 (16:31 +0000)]
Revert last change.
Jim Meyering [Thu, 25 Apr 2002 16:01:32 +0000 (16:01 +0000)]
*** empty log message ***
Jim Meyering [Thu, 25 Apr 2002 15:40:12 +0000 (15:40 +0000)]
.
Jim Meyering [Thu, 25 Apr 2002 15:39:39 +0000 (15:39 +0000)]
*** empty log message ***
Jim Meyering [Thu, 25 Apr 2002 15:38:17 +0000 (15:38 +0000)]
Remove ENABLE_NLS-related code.
(_, N_) Remove definitions.
Include "gettext.h" instead.
Jim Meyering [Wed, 24 Apr 2002 07:54:51 +0000 (07:54 +0000)]
*** empty log message ***
Jim Meyering [Wed, 24 Apr 2002 07:54:40 +0000 (07:54 +0000)]
filtered through cppi
Jim Meyering [Wed, 24 Apr 2002 07:52:49 +0000 (07:52 +0000)]
*** empty log message ***
Jim Meyering [Wed, 24 Apr 2002 07:52:39 +0000 (07:52 +0000)]
(INCLUDES): Remove -I../intl.
(libfetish_a_SOURCES): Add gettext.h.
Jim Meyering [Wed, 24 Apr 2002 07:50:53 +0000 (07:50 +0000)]
*** empty log message ***
Jim Meyering [Wed, 24 Apr 2002 07:50:48 +0000 (07:50 +0000)]
(jm_PREREQ_HARD_LOCALE): New macro.
(jm_PREREQ): Use it.
Jim Meyering [Wed, 24 Apr 2002 07:49:39 +0000 (07:49 +0000)]
bump serial # to 9
Jim Meyering [Wed, 24 Apr 2002 07:49:00 +0000 (07:49 +0000)]
Check for these headers: locale.h unistd.h mach/mach.h fcntl.h.
Check for this function: setlocale.
Jim Meyering [Mon, 22 Apr 2002 09:42:00 +0000 (09:42 +0000)]
(rm): Call exit with EXIT_FAILURE, not `1'.
Jim Meyering [Mon, 22 Apr 2002 07:36:00 +0000 (07:36 +0000)]
*** empty log message ***
Jim Meyering [Mon, 22 Apr 2002 07:35:54 +0000 (07:35 +0000)]
(main): Adjust caller of remove_init.
Jim Meyering [Mon, 22 Apr 2002 07:35:41 +0000 (07:35 +0000)]
(do_move): Adjust caller of remove_init.
Jim Meyering [Mon, 22 Apr 2002 07:35:32 +0000 (07:35 +0000)]
(remove_init): Adjust prototype.
Jim Meyering [Mon, 22 Apr 2002 07:35:20 +0000 (07:35 +0000)]
(rm, remove_init, remove_fini): Don't use or even
initialize the active_dir_map unless --recursive (-r) is specified.
Jim Meyering [Sat, 20 Apr 2002 14:49:46 +0000 (14:49 +0000)]
update framework
Jim Meyering [Fri, 19 Apr 2002 22:57:04 +0000 (22:57 +0000)]
update framework
Jim Meyering [Fri, 19 Apr 2002 22:50:36 +0000 (22:50 +0000)]
Use this:
(exit $fail); exit
not this:
exit $fail
Jim Meyering [Fri, 19 Apr 2002 22:41:59 +0000 (22:41 +0000)]
upgrade to use better framework
Jim Meyering [Fri, 19 Apr 2002 22:39:05 +0000 (22:39 +0000)]
upgrade to use better framework
Jim Meyering [Fri, 19 Apr 2002 22:36:11 +0000 (22:36 +0000)]
*** empty log message ***
Jim Meyering [Fri, 19 Apr 2002 22:36:03 +0000 (22:36 +0000)]
upgrade to use better framework
Jim Meyering [Fri, 19 Apr 2002 21:59:57 +0000 (21:59 +0000)]
clean-up
Jim Meyering [Fri, 19 Apr 2002 21:55:30 +0000 (21:55 +0000)]
Lots of clean-up:
E.g.,
(exit $fail); exit
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
Jim Meyering [Fri, 19 Apr 2002 21:54:27 +0000 (21:54 +0000)]
*** empty log message ***
Jim Meyering [Fri, 19 Apr 2002 21:53:42 +0000 (21:53 +0000)]
*** empty log message ***
Jim Meyering [Fri, 19 Apr 2002 21:53:01 +0000 (21:53 +0000)]
Use tmpdir named $0.tmp/$$. Create with mkdir -p.
Jim Meyering [Fri, 19 Apr 2002 21:38:32 +0000 (21:38 +0000)]
Use better trap, etc.
Jim Meyering [Fri, 19 Apr 2002 21:18:28 +0000 (21:18 +0000)]
*** empty log message ***
Jim Meyering [Fri, 19 Apr 2002 21:17:45 +0000 (21:17 +0000)]
Use better trap.
Jim Meyering [Fri, 19 Apr 2002 21:17:08 +0000 (21:17 +0000)]
use better trap
Jim Meyering [Fri, 19 Apr 2002 20:50:43 +0000 (20:50 +0000)]
Set $tmp the new way.
Jim Meyering [Fri, 19 Apr 2002 19:55:21 +0000 (19:55 +0000)]
Use `rm', not $RM. Use better trap.
Jim Meyering [Fri, 19 Apr 2002 19:54:15 +0000 (19:54 +0000)]
Use `rm', not $RM. Use better trap.
Jim Meyering [Fri, 19 Apr 2002 19:53:03 +0000 (19:53 +0000)]
Use `rm', not $RM. Use better trap.
Jim Meyering [Fri, 19 Apr 2002 19:51:29 +0000 (19:51 +0000)]
don't fiddle with TMPDIR
Jim Meyering [Fri, 19 Apr 2002 19:47:16 +0000 (19:47 +0000)]
don't bother with TMPDIR
Jim Meyering [Fri, 19 Apr 2002 19:39:45 +0000 (19:39 +0000)]
Use automatically-derived name for temporary
directory. This is more 8.3-friendly. Based on a suggestion from Richard Dawe.
Jim Meyering [Wed, 17 Apr 2002 08:55:39 +0000 (08:55 +0000)]
*** empty log message ***
Jim Meyering [Wed, 17 Apr 2002 08:54:38 +0000 (08:54 +0000)]
.
Jim Meyering [Wed, 17 Apr 2002 08:54:32 +0000 (08:54 +0000)]
(TESTS): Add no-create-missing.
Jim Meyering [Wed, 17 Apr 2002 08:54:21 +0000 (08:54 +0000)]
*** empty log message ***
Jim Meyering [Wed, 17 Apr 2002 08:53:50 +0000 (08:53 +0000)]
*** empty log message ***
Jim Meyering [Wed, 17 Apr 2002 08:49:27 +0000 (08:49 +0000)]
(touch): Don't report errors for nonexistent files
when --no-create is in effect. Based on a patch from TAKAI Kousuke.
Jim Meyering [Wed, 17 Apr 2002 08:47:33 +0000 (08:47 +0000)]
*** empty log message ***
Jim Meyering [Tue, 16 Apr 2002 11:26:32 +0000 (11:26 +0000)]
s/POSIX/@sc{posix}/
Jim Meyering [Tue, 16 Apr 2002 10:43:04 +0000 (10:43 +0000)]
*** empty log message ***
Jim Meyering [Tue, 16 Apr 2002 10:43:00 +0000 (10:43 +0000)]
(jm_PREREQ_READUTMP): Also check for these members: ut_pid, ut_id, ut_exit.
Jim Meyering [Tue, 16 Apr 2002 10:41:33 +0000 (10:41 +0000)]
(UT_TYPE): Remove definition (now in who.c).
(HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
(HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
Jim Meyering [Tue, 16 Apr 2002 10:39:42 +0000 (10:39 +0000)]
*** empty log message ***
Jim Meyering [Tue, 16 Apr 2002 10:39:29 +0000 (10:39 +0000)]
(UT_TYPE_UNDEF, UT_TYPE, IS_USER_PROCESS): Define.
(print_line): Use "%-8.8s" for the format: the user name is not
always NUL terminated.
(scan_entries) [need_users]: Use IS_USER_PROCESS, so that this works
even on systems without ut_type.
Jim Meyering [Tue, 16 Apr 2002 09:49:28 +0000 (09:49 +0000)]
(BOOT_TIME): Define.
(NEW_TIME): Define to 0, not INT_MAX.
(UT_PID, UT_ID, UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
Replace literal uses of ut_pid, ut_id, and ut_exit members with
uses through macros.
(make_id_equals_comment): New function, factored out of three others.
Jim Meyering [Tue, 16 Apr 2002 06:51:00 +0000 (06:51 +0000)]
*** empty log message ***
Jim Meyering [Tue, 16 Apr 2002 06:50:54 +0000 (06:50 +0000)]
(human_fstype): Rename from print_human_fstype, and rework accordingly.
(print_statfs): Use human_fstype to honor format width on %T.
Jim Meyering [Tue, 16 Apr 2002 06:27:39 +0000 (06:27 +0000)]
Add copyright comment.
Jim Meyering [Mon, 15 Apr 2002 19:05:33 +0000 (19:05 +0000)]
*** empty log message ***
Jim Meyering [Mon, 15 Apr 2002 19:04:32 +0000 (19:04 +0000)]
*** empty log message ***
Jim Meyering [Mon, 15 Apr 2002 19:03:52 +0000 (19:03 +0000)]
*** empty log message ***
Jim Meyering [Mon, 15 Apr 2002 19:03:47 +0000 (19:03 +0000)]
Document kill.
Jim Meyering [Mon, 15 Apr 2002 10:46:45 +0000 (10:46 +0000)]
add FIXME comments
Jim Meyering [Mon, 15 Apr 2002 10:37:45 +0000 (10:37 +0000)]
*** empty log message ***
Jim Meyering [Mon, 15 Apr 2002 10:37:35 +0000 (10:37 +0000)]
Include xalloc.h.
Use xmalloc everywhere, not malloc.
Jim Meyering [Mon, 15 Apr 2002 08:52:52 +0000 (08:52 +0000)]
*** empty log message ***
Jim Meyering [Mon, 15 Apr 2002 08:50:57 +0000 (08:50 +0000)]
Handle "lld" vs "ld" printf formats the same way Bash does.
Include inttypes.h.
(PRIdMAX, PRIuMAX): Define, if not already defined.
(print_statfs): Use those macros, not the literal strings.
(print_stat): Likewise.
Jim Meyering [Mon, 15 Apr 2002 08:41:34 +0000 (08:41 +0000)]
*** empty log message ***
Jim Meyering [Mon, 15 Apr 2002 08:41:23 +0000 (08:41 +0000)]
(usage): Give a verbose description of --squeeze-repeats,
including the mention of SET1.
Jim Meyering [Mon, 15 Apr 2002 07:21:49 +0000 (07:21 +0000)]
*** empty log message ***
Jim Meyering [Mon, 15 Apr 2002 07:21:42 +0000 (07:21 +0000)]
(print_human_fstype): Add missing `break;' for `case S_MAGIC_MINIX:'.
Jim Meyering [Mon, 15 Apr 2002 07:20:15 +0000 (07:20 +0000)]
remove parens in #if directives
Jim Meyering [Sun, 14 Apr 2002 12:53:10 +0000 (12:53 +0000)]
*** empty log message ***
Jim Meyering [Sun, 14 Apr 2002 12:53:00 +0000 (12:53 +0000)]
*** empty log message ***
Jim Meyering [Sun, 14 Apr 2002 12:52:48 +0000 (12:52 +0000)]
(statfs_secure): Define.
(print_stat): Remove another #ifdef.
(do_statfs): Likewise.
(print_statfs): Prefer/use fputs over printf.
(print_stat): Likewise.
Jim Meyering [Sun, 14 Apr 2002 08:20:15 +0000 (08:20 +0000)]
filter through GNU indent
Jim Meyering [Sun, 14 Apr 2002 08:18:49 +0000 (08:18 +0000)]
Split some long lines.
(verbose_usage): Remove function.
Jim Meyering [Sun, 14 Apr 2002 08:15:22 +0000 (08:15 +0000)]
*** empty log message ***
Jim Meyering [Sun, 14 Apr 2002 08:14:37 +0000 (08:14 +0000)]
remove parens in #if directives
Jim Meyering [Sun, 14 Apr 2002 08:14:15 +0000 (08:14 +0000)]
fix TABs
Jim Meyering [Sun, 14 Apr 2002 08:13:50 +0000 (08:13 +0000)]
*** empty log message ***
Jim Meyering [Sun, 14 Apr 2002 07:50:19 +0000 (07:50 +0000)]
*** empty log message ***
Jim Meyering [Sun, 14 Apr 2002 07:49:20 +0000 (07:49 +0000)]
*** empty log message ***
Jim Meyering [Sun, 14 Apr 2002 07:47:44 +0000 (07:47 +0000)]
(verbose_usage): Remove function. Move contents into usage.
Remove lots of #if directives involving FLASK_LINUX
[!FLASK_LINUX] (is_flask_enabled): Define.
(stat_secure, lstat_secure): Define.
(print_statfs): Remove lots of nested #if directives.
Instead, rely on support fo %llu and %lld printf formats --
but that is only temporary, since it's not porable enough.
(main): Hoist is_flask_enabled test to be done here, rather
than in each of do_stat and do_statfs for every argument.
Jim Meyering [Sun, 14 Apr 2002 06:55:13 +0000 (06:55 +0000)]
[HAVE_SYS_VFS_H]: Guard incluion of sys/vfs.h.
Constify many parameters.
(print_statfs): Fix typo: Use %u (to match %lu) for namelen, not %d.
Jim Meyering [Sun, 14 Apr 2002 06:27:10 +0000 (06:27 +0000)]
alphabetize entries in a menu
In xref, use libc instead of library.
Jim Meyering [Sat, 13 Apr 2002 17:10:57 +0000 (17:10 +0000)]
.
Jim Meyering [Sat, 13 Apr 2002 14:35:46 +0000 (14:35 +0000)]
add a couple `const'
Jim Meyering [Sat, 13 Apr 2002 14:34:58 +0000 (14:34 +0000)]
(print_human_fstype): Revamp in a similar fashion. Don't use strdup.
Jim Meyering [Sat, 13 Apr 2002 14:23:00 +0000 (14:23 +0000)]
(print_human_type): Call fputs once rather than calling printf many times.
Declare most functions to be `static'.