Commit Graph
3840 Commits
Author SHA1 Message Date
Jim Meyering 48606016b8 (NOHUP_FAILURE, NOHUP_FOUND_BUT_CANNOT_INVOKE): Define.
(main): Use them.
2003-07-13 09:25:21 +00:00
Jim Meyering 8329b522c0 *** empty log message *** 2003-07-13 08:46:53 +00:00
Jim Meyering 15c5a31fb5 *** empty log message *** 2003-07-13 08:46:21 +00:00
Jim Meyering 32a2c6f6d9 . 2003-07-12 20:47:23 +00:00
Jim Meyering a3c0bb50f3 (bin_SCRIPTS): Remove use of just-removed $(OPTIONAL_BIN_ZCRIPTS). 2003-07-12 18:43:36 +00:00
Jim Meyering 12237951e6 (localedir.h): Put the 2>&1' after the redirect target, not before the >'. 2003-07-12 18:25:51 +00:00
Jim Meyering 4f78b3f40f (remove_dir): Give a diagnostic upon failed save_cwd,
now that that function no longer calls `error'.
2003-07-12 16:22:39 +00:00
Jim Meyering c8f1cbc602 (find_mount_point): Emit a diagnostic for each
failed syscall, rather than relying on caller to do that.
The caller couldn't do a good job, anyhow -- too many different
ways to fail (each with a different referent).
Give a diagnostic upon failed save_cwd, now that that function
no longer calls `error'.
(show_point): Don't diagnose find_mount_point's errors, now that
it handles them itself.
2003-07-12 16:21:45 +00:00
Jim Meyering 7e815d32f3 tweak spacing 2003-07-12 16:17:14 +00:00
Jim Meyering 21f65c951c (find_mount_point): Don't let free clobber errno upon failed chdir 2003-07-12 15:44:14 +00:00
Jim Meyering a29f991b84 * src/sys2.h: Remove alloca-related block.
* src/system.h: Include <alloca.h> here, instead.
2003-07-12 11:40:03 +00:00
Jim Meyering 64521cfa9a It appears that the `#pragma alloca' included via "system.h" is
adequate, since join.c uses alloca, yet lacked an in-file #pragma.

Remove `#pragma alloca'.
2003-07-12 11:38:43 +00:00
Jim Meyering 8e34468f61 (change_file_owner): Do not restore any special
permission bits (e.g., set-user-ID, set-group-ID) that are reset
by chown(2) on some systems.  Suggestion and insistence :-) from
Michael Stone.
2003-07-12 08:37:36 +00:00
Jim Meyering 4e85b8c0c8 . 2003-07-11 22:26:40 +00:00
Jim Meyering 96f7791a8b . 2003-07-11 20:38:23 +00:00
Jim Meyering 0f46c3a0aa (EXTRA_SCRIPTS): Remove definition.
(bin_PROGRAMS): Add nohup.
(EXTRA_DIST): Remove nohup.sh.
(all_programs): Remove use of $(EXTRA_SCRIPTS).
2003-07-11 20:37:15 +00:00
Jim Meyering 8db77b8978 New file. Rewrite of nohup.sh in C.
This solves a portability problem: on at least Solaris systems,
when nohup.sh used the vendor /bin/sh, it would exit with status
of `1' rather than the required 126 or 127 upon failure to exec
the specified program.
2003-07-11 20:34:29 +00:00
Jim Meyering e1584f504f (diagnose_copy_fd_failure): New function, renamed from
the macro, COPY_FD_DIAGNOSE.
(diagnose_copy_fd_failure): Enclose diagnostic in _(...).
(head_file): Likewise.
2003-07-11 11:12:44 +00:00
Jim Meyering 1dae2a560a (change_attributes): Enclose diagnostic in _(...). 2003-07-11 11:10:53 +00:00
Jim Meyering 208b8da666 (batch_convert): Use the quote function rather than using literal `...' in
a diagnostic.
2003-07-11 10:38:39 +00:00
Jim Meyering 7c6b61d57d Include "quote.h".
Use the quote function rather than using literal `...' in a diagnostic.
2003-07-11 10:37:21 +00:00
Jim Meyering 63861fc012 (main): Enclose diagnostic in _(...). 2003-07-11 10:35:38 +00:00
Jim Meyering 53cca5451c (main): Enclose diagnostic in _(...). 2003-07-11 10:34:50 +00:00
Jim Meyering 4927015380 (tac_seekable): Enclose diagnostic in _(...). 2003-07-11 10:34:08 +00:00
Jim Meyering e96ddb3907 (main): Enclose diagnostic in _(...). 2003-07-11 10:33:12 +00:00
Jim Meyering b8760e0f09 (main): Enclose diagnostic in _(...). 2003-07-11 10:18:45 +00:00
Jim Meyering f37e7c032a (main): Enclose diagnostic in _(...). 2003-07-11 10:17:53 +00:00
Jim Meyering 112cba9a8b . 2003-07-11 06:07:04 +00:00
Jim Meyering d574f4a249 (usage): Use 1024*1024 in place of 1048576. 2003-07-10 19:39:04 +00:00
Jim Meyering d4e2672d7c . 2003-07-10 15:49:37 +00:00
Jim Meyering 317a34daf8 (noinst_PROGRAMS): Define to setuidgid. 2003-07-10 15:49:17 +00:00
Jim Meyering d743e47970 New program, solely for testing (not installed). 2003-07-10 14:37:04 +00:00
Jim Meyering e2e3a9a41c (change_file_owner): Don't leak file descriptors when dereferencing symlinks. 2003-07-10 10:59:47 +00:00
Jim Meyering 3a7b7b002d . 2003-07-09 17:55:29 +00:00
Jim Meyering 83ca2782f9 (xlseek): Avoid warning about ``return without value
from function returning non-void''.
2003-07-09 08:54:24 +00:00
Jim Meyering 05731b4717 Add support for a "[" that conforms to the GNU coding standards,
i.e., that does not depend on its name.

(LBRACKET): Define to 0 if not defined.
(main): Use LBRACKET rather than argv[0].

----------
(one_argument): Do not check for -t if POSIXLY_CORRECT.

(main): Do not recognize --help or --version if
POSIXLY_CORRECT, when invoked as "test".  Handle "[ ]" correctly.
Do not bother testing that margv[margc] is non-null.
2003-07-06 06:12:20 +00:00
Jim Meyering 138fd919b8 (bin_PROGRAMS): Add "[".
(__SOURCES): New var.
2003-07-06 06:10:36 +00:00
Jim Meyering 12e8f82540 New file. 2003-07-06 06:08:40 +00:00
Jim Meyering 47dfac7b19 (print_line): Rewrite to use asprintf, in order to be
able to avoid emitting trailing blanks.
2003-07-04 12:25:29 +00:00
Jim Meyering 89d9530643 (do_copy): Give a better diagnostic when failing due
to nonexistent destination directory.  Reported by Dmitry Rutsky.
See http://bugs.debian.org/199730 for details.
2003-07-04 10:01:35 +00:00
Jim Meyering 6e036c0593 tweak comment to fit in 80 columns 2003-06-28 10:30:04 +00:00
Jim Meyering 9e6e479047 split's --verbose option did nothing
(longopts): Use `1', not `0' as the value for for &verbose.
2003-06-27 07:41:55 +00:00
Jim Meyering 5fe0d2293d (copy_internal) [HAVE_STRUCT_STAT_ST_AUTHOR]:
Use `error_t' (rather than int) as type for local `err'.
2003-06-19 22:01:47 +00:00
Jim Meyering f0a5712f74 (copy_internal) [HAVE_STRUCT_STAT_ST_AUTHOR]:
Fix author preservation code.
2003-06-19 21:17:48 +00:00
Jim Meyering 0bf9e8687d (ENABLE_HARD_LINK_TO_SYMLINK_WARNING): Define to 0.
(do_link): Don't warn about hard link to symlink.
2003-06-19 11:38:16 +00:00
Jim Meyering 91c698cb2f Include "getdelim2.h", not "getstr.h".
Reflect renaming: getstr -> getdelim2.
2003-06-18 07:59:14 +00:00
Jim Meyering 4f1ec3fd54 Reflect renaming: readline -> readlinebuffer. 2003-06-18 07:37:29 +00:00
Jim Meyering 9ce9757db1 Include sys/types.h before system.h (because
the latter includes sys/stat.h).  Required on Ultrix 4.3.
2003-06-17 18:39:20 +00:00
Jim Meyering 6bcd4b08ba (main): Call initialize_main. 2003-06-17 18:13:23 +00:00
Jim Meyering 1844eee69a (initialize_main): Define. 2003-06-17 18:12:26 +00:00