Commit Graph
14506 Commits
Author SHA1 Message Date
Jim Meyering 93b02c5289 *** empty log message *** 1997-07-04 07:53:28 +00:00
Jim Meyering 22ff29fe3e (apply_attributes): New function.
(copy_reg): Use apply_attributes instead of open-coding the pieces.
Now, failure to preserve file attributes does not cause mv to change
its exit status, and such failures elicit warning diagnostics.  This
behavior is required by POSIX.  Before, failure to preserve ownership
due to insufficient access was diagnosed only for root.
Prompted by a report from Bengt Martensson.
1997-07-03 12:16:41 +00:00
Jim Meyering ab171ee6b5 *** empty log message *** 1997-07-03 12:13:31 +00:00
Jim Meyering c86d0a7a45 *** empty log message *** 1997-07-03 10:29:48 +00:00
Jim Meyering 4396edc12e (test_vector): Remove bogus TZ=GMT environment setting. 1997-07-03 10:28:51 +00:00
Jim Meyering 442d670b3a . 1997-07-02 16:09:39 +00:00
Jim Meyering 7a280a0fda (STRTOX): Convert function header in macro definition
to K&R-style.  Otherwise, ansi2knr would fail to convert the function
definitions to K&R for old style compilers.  From Kaveh Ghazi.
1997-07-02 16:07:44 +00:00
Jim Meyering df05506016 *** empty log message *** 1997-07-01 11:55:55 +00:00
Jim Meyering b3580d0a75 . 1997-07-01 11:50:44 +00:00
Jim Meyering 2499628bff (make_path): Reorder stat-then-mkdir-if-missing
calls so that mkdir is called first.  Before make_path would first
`stat' a directory, then call mkdir if it didn't exist.  But if
some other process created the directory between the stat & mkdir,
the mkdir would fail with EEXIST.  Diagnosis and suggestion from
Greg McGary.
1997-07-01 11:50:39 +00:00
Jim Meyering b5e0f033a6 *** empty log message *** 1997-07-01 11:50:08 +00:00
Jim Meyering 059ccb6ac7 [putenv]: Undefine before including system headers.
Otherwise, the declaration of *rpl_putenv* conflicts with the system
prototype on at least Irix5.3.  From Marcus Daniels.
1997-07-01 11:30:08 +00:00
Jim Meyering 5f14bb768e *** empty log message *** 1997-06-30 04:00:48 +00:00
Jim Meyering 7f490dad0e . SH-UTILS-1_16b 1997-06-30 03:53:28 +00:00
Jim Meyering 3e81211212 . 1997-06-30 01:58:23 +00:00
Jim Meyering 3f0b15ac80 *** empty log message *** 1997-06-29 22:26:54 +00:00
Jim Meyering 41faa55aed (base_name_strip_trailing_slashes): Remove. 1997-06-29 22:26:18 +00:00
Jim Meyering 04c0cd59a5 (base_name_strip_trailing_slashes): new function. 1997-06-29 22:25:54 +00:00
Jim Meyering 6ad0d51107 (copy): Add FIXME comment. 1997-06-29 22:24:26 +00:00
Jim Meyering bc8c5033e3 *** empty log message *** 1997-06-29 22:21:51 +00:00
Jim Meyering dc404c4107 (copy_reg): New parameter, SOURCE_STATS.
(do_move): Update caller.
(movefile): Take new boolean parameter, DEST_IS_DIR,
to save a stat per moved file when the destination is a directory.
(main): Call movefile with additional argument.
(strip_trailing_slashes_2): New function.
(movefile): Remove trailing slashes from dest.  Otherwise, stat ("b/")
fails with ENOTDIR on systems including Linux w/libc 2.0.30.
Reproduce with `rm -rf a b; mkdir a; touch b; ./mv a b/'.
(do_move): Fix misleading comment.
1997-06-29 22:21:42 +00:00
Jim Meyering e44678aac2 *** empty log message *** 1997-06-29 21:24:26 +00:00
Jim Meyering 42a63be148 *** empty log message *** 1997-06-29 21:13:33 +00:00
Jim Meyering 1226259896 Remove _sys_putenv cruft and just rename the function itself. 1997-06-29 21:05:05 +00:00
Jim Meyering cabc10b909 *** empty log message *** 1997-06-29 20:26:38 +00:00
Jim Meyering 90e9fd9c77 . 1997-06-29 20:24:27 +00:00
Jim Meyering 0935e2ce3f *** empty log message *** 1997-06-29 20:21:38 +00:00
Jim Meyering 611cf8e97b *** empty log message *** 1997-06-29 20:19:45 +00:00
Jim Meyering 3d9239c750 fix it right 1997-06-29 20:18:58 +00:00
Jim Meyering 551c02f7b6 Define-away putenv only if it's not already defined. 1997-06-29 20:12:52 +00:00
Jim Meyering 90c131fa21 . 1997-06-29 13:52:16 +00:00
Jim Meyering a6b6c95b83 *** empty log message *** 1997-06-29 13:50:57 +00:00
Jim Meyering 25c1d1dccd *** empty log message *** 1997-06-29 13:49:53 +00:00
Jim Meyering d9741142c8 . 1997-06-29 13:34:51 +00:00
Jim Meyering a84d2bada4 Set and export LANGUAGE, LC_ALL, and LANG
so tests get english strings.  From Ulrich Drepper.
1997-06-29 12:19:43 +00:00
Jim Meyering 9654920c40 . 1997-06-29 03:27:24 +00:00
Jim Meyering a13135d09e Move the OPENOPTS def from end to beginning of else clause so it's closer
to the one in the then clause.
1997-06-29 01:56:36 +00:00
Jim Meyering f657d65570 update from automake-1.2 SH-UTILS-1_16a 1997-06-25 17:05:56 +00:00
Jim Meyering 9bcfe15afe . 1997-06-25 17:01:22 +00:00
Jim Meyering 4378dcecdf . 1997-06-25 16:08:03 +00:00
Jim Meyering fa4894b30c . 1997-06-25 15:38:35 +00:00
Jim Meyering 6700c89ac7 Use variable width columns when printing in multi-column mode.
(init_col_info): New function.
(print_current_files): Call init_col_info if format is
`many_per_line' or `horizontal'.
(print_many_per_line): Calculate optimum column widths.
(print_horizontal): Likewise.
From Ulrich Drepper.
1997-06-22 19:52:24 +00:00
Jim Meyering d18dc59619 *** empty log message *** 1997-06-22 04:04:07 +00:00
Jim Meyering 973f13ccb2 . 1997-06-22 04:01:43 +00:00
Jim Meyering e148f6d293 . 1997-06-22 03:51:36 +00:00
Jim Meyering 3841b591c1 . 1997-06-22 03:50:14 +00:00
Jim Meyering e8b0678fed . 1997-06-22 03:49:51 +00:00
Jim Meyering 08f074fb34 *** empty log message *** 1997-06-22 03:38:08 +00:00
Jim Meyering 2f91f08a79 . 1997-06-22 03:32:37 +00:00
Jim Meyering 9bf8c1c229 . 1997-06-16 18:02:08 +00:00