Jim Meyering
93449adfa4
(dc_parse_stream): Don't segfault when a line
...
contains only one token. Reported by Olav Morkrid.
1998-08-26 14:45:16 +00:00
Jim Meyering
5614a7d282
(do_move): Fail upon attempt to move a directory into itself.
...
With prodding from François Pinard :-)
1998-08-16 03:09:56 +00:00
Jim Meyering
0d33861999
(copy_internal) [one-file-system]: Do copy mount point
...
directories (but none of their entries). This makes
`cp --one-file-system' work the same way tar does.
From Marty Leisner.
1998-08-15 21:16:34 +00:00
Jim Meyering
79d411ceba
(qmark_funny_chars): Add comment from Paul eggert.
1998-08-15 16:43:13 +00:00
Jim Meyering
e3869f58ad
(usage): Reformat a little.
1998-08-15 14:45:19 +00:00
Jim Meyering
c34fd6b4a7
(long_options): Add long names for all options.
...
(usage): Update help string.
(main): Handle the special options --pages and --columns.
1998-08-15 14:22:01 +00:00
Jim Meyering
63d64851b1
Add braces to suppress warning about ambiguous `else'.
1998-08-15 14:21:00 +00:00
Jim Meyering
7b0caffd31
.
1998-08-14 14:09:05 +00:00
Jim Meyering
461aea548a
Include filemode.h.
1998-08-13 02:06:41 +00:00
Jim Meyering
053a0e3a8e
*** empty log message ***
1998-08-11 13:21:31 +00:00
Jim Meyering
39b1c602aa
(usage): Correct description. Reported by John Murphy.
1998-08-11 13:16:24 +00:00
Jim Meyering
0136b885fe
(re_protect): Add comment.
1998-08-02 16:24:41 +00:00
Jim Meyering
0f7ac75854
(ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP, MTIME_CMP): New macros.
1998-08-02 16:24:13 +00:00
Jim Meyering
9fc5987250
(copy_internal): Compare time stamps with subsecond resolution if available.
1998-08-02 16:23:28 +00:00
Jim Meyering
e71d9696d7
(compare_ctime, rev_cmp_ctime, compare_mtime,
...
rev_cmp_mtime, compare_atime, rev_cmp_atime): Compare time
stamps with subsecond resolution if available.
1998-08-02 16:23:06 +00:00
Jim Meyering
6e1306ba8b
(touch): Add comment.
1998-08-02 16:22:43 +00:00
Jim Meyering
a607901e48
(change_timestamps): Add comment.
1998-08-02 16:22:24 +00:00
Jim Meyering
d5c69ef797
(my_setlocale): Guard definition within #ifdef ENABLE_NLS.
1998-08-01 15:47:26 +00:00
Jim Meyering
da68f39411
* src/sort.c (usage): Add angle brackets to make `Report bugs...'
...
message consistent with all the rest.
1998-07-30 12:13:39 +00:00
Jim Meyering
4ead0cb8df
(NEGATION_SIGN): Renamed from NEGATIVE_SIGN to avoid
...
clash with <langinfo.h>. All uses changed.
From Andreas Schwab.
1998-07-29 13:29:10 +00:00
Jim Meyering
6a9aa3cf98
(show_all_fs):
...
Revert to boolean value; the old negative value is
now in show_local_fs.
(show_local_fs): New variable.
(show_dev): New args me_dummy and me_class. Use show_local_fs
and boolean show_all_fs in combination with these new args
to decide whether to show a device.
(show_disk): Pass flags to show_dev.
(show_point): Use a non-dummy mount entry if possible.
(show_all_entries): Pass flags to show_dev.
(main): --local sets show_local_fs now. Ask for file system types if
show_local_fs is nonzero, since ME_REMOTE might need them.
From Paul.
1998-07-29 04:01:29 +00:00
Jim Meyering
6e132bee5e
Make copy create each destination file initially
...
with mode 0600 so strip will work, then apply specified mode.
Arne Henrik Juul reported that `./ginstall -s -c -m 555 dd /tmp' failed.
1998-07-27 13:39:36 +00:00
Jim Meyering
b49807bfb2
Convert some char* dcls to `unsigned char*' and remove a cast --
...
to placate irix4's cc.
1998-07-26 20:43:50 +00:00
Jim Meyering
d71367f33e
(check_punctuation): Add cast to placate irix4's cc. Reported by Kaveh Ghazi.
1998-07-26 20:42:02 +00:00
Jim Meyering
bd85887daf
(split_3): Add cast to placate irix4's cc. From Kaveh Ghazi.
1998-07-26 20:09:25 +00:00
Jim Meyering
82988e97cf
(chown): Remove unused definition.
...
Reported by Kaveh Ghazi.
1998-07-26 04:13:57 +00:00
Jim Meyering
5c9345dbd1
(cut_fields): Honor new --output-delimiter option.
...
(main): Fix handling of --delimiter='' (-d ''). Until now, it has
never worked as advertised. I guess no one tried it.
1998-07-26 04:05:07 +00:00
Jim Meyering
165718775f
(main): Stat all non-`-' input file files (and fail if a
...
stat fails) when an output file is specified by `-o' but doesn't exist.
1998-07-26 02:54:01 +00:00
Jim Meyering
613f0e187f
(main): rmdir fails with EEXIST on some systems.
...
Handle that, so --ignore-fail-on-non-empty works.
(EEXIST): Define to zero if not defined.
(ENOTEMPTY): Likewise.
1998-07-26 00:29:30 +00:00
Jim Meyering
69835e9fb6
(SAME_INODE): Define it here instead.
1998-07-25 15:31:23 +00:00
Jim Meyering
3ba948db7e
(SAME_INODE): Remove definition.
1998-07-25 15:30:08 +00:00
Jim Meyering
d04604664a
(same_file): New function
...
(remove_dir): Use it to give a better diagnostic when rmdir fails
because it can't remove the current directory.
1998-07-25 15:27:55 +00:00
Jim Meyering
4e9a99dd9a
(long_options): Changes table entries not to use this form:
...
{"all", no_argument, &show_all_fs, 1},
but rather this form:
{"all", no_argument, NULL, 'a'},
Using the latter, all the option handling in one place: the getopt loop.
1998-07-25 15:14:16 +00:00
Jim Meyering
0f4fcb1fbd
(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.
1998-07-25 14:36:07 +00:00
Jim Meyering
fc13bb65df
(utime_now): Moved into m4/utimes.m4.
...
(touch) [!HAVE_UTIME_NULL]: Remove #ifdef and use of utime_now in if-block.
1998-07-25 13:20:49 +00:00
Jim Meyering
a97f821233
(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.
1998-07-19 04:14:52 +00:00
Jim Meyering
7ac1d190bc
Include lchown.h.
1998-07-16 23:41:03 +00:00
Jim Meyering
75b6b90fe1
[!ENOSYS] (ENOSYS): Define to ENOTSUP or ENOMSG.
1998-07-16 23:20:03 +00:00
Jim Meyering
8d4d2c4cf4
(check_format): Add `5' to the list of digits.
...
Reported by Donni Erpel.
1998-07-15 12:39:58 +00:00
Jim Meyering
6cdd12a9f2
(print_header): Print "1k-blocks", not "1.0k-blocks".
1998-07-13 00:17:57 +00:00
Jim Meyering
a4e98775a4
Remove FCLOSE_UNLOCKED block.
1998-07-08 01:07:39 +00:00
Jim Meyering
73b7370917
(parse_line): Add casts to avoid errors from Irix4's `cc' C compiler.
...
From Kaveh Ghazi.
1998-07-05 00:25:10 +00:00
Jim Meyering
218c464b91
tweak comment
1998-07-04 15:46:38 +00:00
Jim Meyering
52fa9ac235
Remove #ifdef around <regex.h> inclusion.
1998-07-04 14:45:29 +00:00
Jim Meyering
9b809393be
Remove #ifdef around <regex.h> inclusion.
...
(extract_regexp): Remove #if !WITH_REGEX...#endif block.
1998-07-04 14:45:12 +00:00
Jim Meyering
4475ffda48
(remove_dir): Use fprintf, not error to avoid newline in prompt.
1998-07-04 03:59:34 +00:00
Jim Meyering
345c323ffd
(copy_internal): Rename variable and reverse sense of tests
...
to make the code a little clearer.
1998-07-03 23:56:44 +00:00
Jim Meyering
1f682431ae
(df_readable): Rename local so as not to shadow global.
1998-07-03 21:05:06 +00:00
Jim Meyering
698a43f363
(SAME_INODE): New macro.
...
Use it to replace open-coded equivalents.
1998-07-03 20:57:31 +00:00
Jim Meyering
def9c2bf0b
(copy_internal): Try harder identifying a relative
...
symbolic link in the current directory.
From Andreas Schwab.
1998-07-03 20:32:37 +00:00