1 Sun Dec 22 23:29:10 1996 Jim Meyering <meyering@na-net.ornl.gov>
3 * acinclude.m4: Move macros to individual files in new directory, m4/.
4 See ChangeLog entries in sh-utils for the details.
6 Wed Dec 18 23:09:19 1996 Jim Meyering <meyering@na-net.ornl.gov>
8 * src/dircolors.hin (ORPHAN): By default, color orphans red on
11 * src/dircolors.c (usage): Remove --print-data-base.
12 Now only --print-database remains. Although it wasn't documented,
13 --print-data-base was still accepted. But it made `--p', `--print',
14 `--print-data', etc. ambiguous.
16 * src/ls.c (gobble_file): Stat symlinks also when printing with
17 color and set linkok to reflect existence of referent.
18 Patches from Joakim Rosqvist, James Antill, and Jesse Thilo.
20 Tue Dec 17 21:03:40 1996 Jim Meyering <meyering@na-net.ornl.gov>
22 * src/system.h (ISDIGIT): Replace with smaller, faster edition
23 that yields nonzero only on ASCII digits.
24 (ISDIGIT_LOCALE): New macro, with same meaning that ISDIGIT
25 used to have. From Paul Eggert.
26 * lib/backupfile.c (ISDIGIT): Likewise.
27 * lib/getdate.y (ISDIGIT): Likewise.
29 * src/cp.c (ROOT_CHOWN_AFFECTS_SYMLINKS): New macro.
30 (DO_CHOWN): Take an additional parameter.
31 (LINK_CHOWN): Remove macro.
32 (copy): When preserving owner and group of a symlink, use
33 chown only if ROOT_CHOWN_AFFECTS_SYMLINKS and EUID == 0.
34 Otherwise, the chown would affect the file referenced through
37 Sat Dec 14 14:51:50 1996 Jim Meyering <meyering@na-net.ornl.gov>
39 * acinclude.m4 (jm_SYS_PROC_UPTIME): Fix typo in cache variable
40 name for cross compiling.
41 Remove definitions of gettext-related macros. The gettext
42 installation procedure installs corresponding .m4 files so that
43 aclocal will use them.
45 Wed Dec 11 19:34:22 1996 Jim Meyering <meyering@na-net.ornl.gov>
49 Tue Dec 10 00:14:24 1996 Jim Meyering <meyering@na-net.ornl.gov>
51 * configure.in: Bump version to 3.13k.
53 * src/install.c [_POSIX_VERSION]: Don't declare wait. That
54 declaration conflicted with one in a system header file on
55 i386-pc-isc3.0, now that I've removed the AC_ISC_POSIX macro
56 and _POSIX_VERSION is no longer defined.
57 Reported by Karl Heuer.
59 * configure.in (AC_ISC_POSIX): Remove kludgy macro.
60 Use this test instead:
61 (LIBS): Add -lcposix if it contains strerror.
62 Patch from Karl Heuer.
64 * lib/Makefile.am (EXTRA_DIST): Add mktime.c.
65 Reported by Thomas Bushnell.
66 * (EXTRA_DIST): Add strftime.c to appease automake.
67 Although it's not used yet, it'll be used by ls's (to-be-done)
68 --format=FORMAT option.
70 Mon Dec 9 18:26:54 1996 Jim Meyering <meyering@na-net.ornl.gov>
72 * lib/obstack.h: Include config.h.
73 [!HAVE_BCOPY && HAVE_MEMCPY && !defined (bcopy)]: Define bcopy
74 in terms of memcpy. Reported by Marcus Daniels.
76 * configure.in (LIBOBJS): After AC_FUNC_FNMATCH, add fnmatch.o
77 and define fnmatch to rpl_fnmatch if necessary.
79 * acconfig.h (fnmatch): Add undef.
81 * src/df.c (find_mount_point): Convert from K&R style header to ANSI.
82 Patch from Kaveh Ghazi.
84 Sun Dec 8 07:22:38 1996 Jim Meyering <meyering@na-net.ornl.gov>
86 =========== Update for automake-1.1k.
87 * Makefile.am (AUTOMAKE_OPTIONS): Require 1.1k.
88 * configure.in (AM_CONFIG_HEADER): Use it.
89 (AC_OUTPUT): Remove stamp-h timestamping statement.
90 Now, AM_CONFIG_HEADER does it automatically.
91 * lib/Makefile.am (noinst_LIBRARIES): Rename to libfu.a as per
92 new automake requirement.
93 Rename fu_* variables to libfu_a_*.
95 Mon Dec 2 20:30:20 1996 Jim Meyering <meyering@na-net.ornl.gov>
97 * configure.in (jm_FUNC_MKTIME): Use this instead of AM_FUNC_MKTIME.
99 * src/system.h [!S_IXUGO] (S_IXUGO): Define it.
101 * src/ls.c (print_color_indicator): Check the file's suffix only
102 if it's a regular file.
103 Reported by Santiago Vila Doncel.
104 (print_type_indicator): Use S_IXUGO instead of writing out
105 (S_IEXEC | S_IXGRP | S_IXOTH).
106 (length_of_file_name_and_frills): Likewise.
108 Sun Dec 1 13:07:39 1996 Jim Meyering <meyering@na-net.ornl.gov>
110 * lib/getdate.y (date): Interpret the date, L/M/N, as YYYY/MM/DD
111 if L >= 1000, otherwise as MM/DD/YY. With this change,
112 date --date=DATE accepts dates like those in an RCS log listing.
114 Sat Nov 30 22:11:42 1996 Jim Meyering <meyering@na-net.ornl.gov>
116 * acinclude.m4: (jm_FUNC_MKTIME): New macro. This is like
117 AM_FUNC_MKTIME, but with one addition: when it replaces the
118 function, it also redefines mktime to gnu_mktime.
120 Fri Nov 29 21:19:13 1996 Jim Meyering <meyering@na-net.ornl.gov>
122 * src/install.c (copy_file): Allow installation from non-directory
123 (rather than only regular) files. Suggestion from Charles Karney.
125 * src/df.c (main): Accept -F as a synonym for -t for compatibility
126 with Solaris. From Peter Eriksson.
128 * src/ls.c (main): Close stdout and check result, in case any
129 deferred writes fail.
130 Use EXIT_SUCCESS and EXIT_FAILURE in exit and usage calls.
132 Thu Nov 28 13:10:22 1996 Jim Meyering <meyering@na-net.ornl.gov>
134 * src/df.c (find_mount_point): Use strip_trailing_slashes and dirname
135 instead of open-coding them. When given FILE containing no slashes,
136 chdir to the directory containing it (the current directory) rather
139 Tue Nov 5 14:51:56 1996 Miles Bader <miles@gnu.ai.mit.edu>
141 * src/df.c (find_mount_point): Use save_cwd/restore_cwd.
142 "save-cwd.h": New include.
144 Wed Oct 30 00:21:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
146 * lib/fsusage.c (get_fs_usage): If DISK is 0 and we needed to use
147 it, return -1 with 0 in ERRNO.
148 * src/df.c (show_dev): Deal with null values for DISK and FSTYPE,
149 including interpreting special 0 errno return from get_fs_usage.
150 (show_point): Don't fail if we can't find a mount entry for POINT,
151 just call show_dev with 0 values and let it fail if necessary.
152 (main): Require a non-zero MOUNT_LIST only if showing all filesystems.
153 (find_mount_point): New function.
154 (xgetcwd): New declaration.
156 Thu Nov 28 00:31:11 1996 Jim Meyering <meyering@na-net.ornl.gov>
158 * configure.in (AM_GNU_GETTEXT): Renamed from ud_GNU_GETTEXT
161 Tue Nov 26 23:24:13 1996 Jim Meyering <meyering@na-net.ornl.gov>
163 * acinclude.m4: Update with macros from gettext-0.10.25.
165 Sun Nov 24 22:43:24 1996 Jim Meyering <meyering@na-net.ornl.gov>
167 * acconfig.h (mktime): Add undef for my enhanced (beyond automake's
168 1.1g version of) AM_FUNC_MKTIME.
170 * acinclude.m4 (AM_FUNC_GETLINE): Use am_, not su_ prefix for
171 local/cache variables.
173 Sat Nov 23 16:11:59 1996 Jim Meyering <meyering@na-net.ornl.gov>
175 * lib/Makefile.am (EXTRA_DIST): Add getline.c now that getline
176 isn't mentioned in AC_REPLACE_FUNCS.
178 * lib/Makefile.am (EXTRA_DIST):
180 * chgrp.c (usage): Alphabetize option descriptions the way
182 * chown.c (usage): Likewise.
183 * cp-aux.c (usage): Likewise.
184 * df.c (usage): Likewise.
185 * install.c (usage): Likewise.
186 * ln.c (usage): Likewise.
187 * ls.c (usage): Likewise.
188 * mkdir.c (usage): Likewise.
189 * mv.c (usage): Likewise.
190 * rm.c (usage): Likewise.
193 Fri Nov 22 22:14:10 1996 Jim Meyering <meyering@na-net.ornl.gov>
195 * configure.in (AC_REPLACE_FUNCS): Don't try to replace getline this
196 way. AM_FUNC_GETLINE does it now.
197 (AM_FUNC_GETLINE): Use it here.
199 * src/cp.c (copy): With -i and not -f, prompt for any type of
200 (non-directory) source file before overwriting an existing target.
201 Reported by Mark A. Thomas and Emile LeBlanc.
203 Tue Nov 19 23:10:32 1996 Jim Meyering <meyering@na-net.ornl.gov>
205 * configure.in (AM_SANITY_CHECK_CC): Remove it. Autoconf-2.11
207 (AC_FUNC_FNMATCH): Use this macro (new with autoconf-2.11) instead
210 Sun Nov 17 20:53:00 1996 Jim Meyering <meyering@na-net.ornl.gov>
212 * src/touch.c: Remove unused declaration of mktime. From Tony Leneis.
214 Mon Nov 4 23:18:03 1996 Jim Meyering <meyering@na-net.ornl.gov>
216 * configure.in (test for group_member): Handle it separately
217 so I can keep the hyphen (not the underscore) in the filename.
219 * lib/rename.c: New version from François Pinard.
221 Sat Nov 2 07:05:36 1996 Jim Meyering <meyering@na-net.ornl.gov>
223 * src/ls.c (gobble_file): Set linkok for non-orphaned symlinks.
224 From Bauke Jan Douma.
225 (gobble_file): Initialize linkok.
226 With these two changes, ls --color should display orphaned symlinks
227 as blinking text on terminals that support it.
229 * configure.in (ALL_LINGUAS): Add Spanish (es).
231 * doc/Makefile.am (MAKEINFO): Set to makeinfo --no-split.
232 Otherwise, the generated info files have names longer than
233 the 14-byte max of some old systems.
234 Reported by Karl Heuer.
236 Tue Oct 29 06:49:16 1996 Jim Meyering <meyering@na-net.ornl.gov>
238 * src/ls.c (decode_switches): Make -A set really_all_files to zero
239 as well as setting all_files to 1. With this change, ls -f -A prints
240 everything but . and .., unsorted. Before, the -A was effectively
241 ignored. From Karl Berry.
243 Tue Oct 22 07:00:00 1996 Jim Meyering <meyering@na-net.ornl.gov>
245 * src/Makefile.am (dircolors.h): Depend on dcgen only in maintainer
248 Mon Oct 21 16:52:28 1996 Jim Meyering <meyering@na-net.ornl.gov>
250 * lib/Makefile.am (EXTRA_DIST): Remove group-member.c.
251 Add (temporary hack to work around bug in automake-1.1f) mvdir.c and
254 * configure.in: Remove hack that created link from group_member.c
257 * lib/group_member.c: New file. Renamed from group-member.c.
258 * lib/group-member.c: Delete.
260 * src/dircolors.hin: Comment out DOS-style suffixes.
262 Sun Oct 20 13:49:25 1996 Jim Meyering <meyering@na-net.ornl.gov>
264 * lib/Makefile.am (INCLUDES): Add -I../intl. Reported by Eric Backus.
266 * Makefile.am (AUTOMAKE_OPTIONS): Set to `gnits'.
267 (EXTRA_DIST): Remove.
269 * configure.in: Remove README_ALPHA related code. Automake takes
270 care of it automatically now when in gnits mode.
272 Sun Oct 13 14:02:41 1996 Jim Meyering <meyering@na-net.ornl.gov>
274 * src/ls.c (print_long_format): Use strftime of localtime
275 (not ctime) to produce the date/time in long listings.
276 From Rafal Maszkowski.
278 Sat Oct 12 18:20:38 1996 Jim Meyering <meyering@na-net.ornl.gov>
280 * lib/mountlist.c (fstype_to_string): Handle fstypes of freebsd.
281 From Arne Henrik Juul.
283 Thu Oct 10 23:47:34 1996 Jim Meyering <meyering@na-net.ornl.gov>
285 * lib/Makefile.am (EXTRA_DIST): Remove posixtm.y and getdate.y.
286 (fu_SOURCES): Put them here instead.
287 Remove rules for building getdate.c and posixtm.c; now automake
288 generates those rules.
289 * lib/ylwrap: New file.
290 * lib/interlock: New file.
292 Wed Oct 9 06:51:47 1996 Jim Meyering <meyering@na-net.ornl.gov>
294 * src/ls.c (usage): Improve brief descriptions of --sort and --time.
295 From François Pinard.
297 * lib/rpmatch.c [!WITH_REGEX]: Include rx.h.
300 Mon Oct 7 23:31:10 1996 Jim Meyering <meyering@na-net.ornl.gov>
302 * lib/Makefile.am (EXTRA_DIST): Remove names of several files
303 that automake adds automatically.
304 (fu_SOURCES): Likewise.
305 (fu_DEPENDENCIES): Depend on fu_LIBADD.
307 * src/chown.c (usage): Improve usage message.
308 * src/cp-aux.c (usage): Likewise.
309 * src/ls.c (usage): Likewise.
310 * src/install.c (strip): Improve diagnostic.
313 * src/Makefile.am (noinst_HEADERS): Add dircolors.h.
314 (dircolors.h): Always depend on dcgen.
316 Sat Oct 5 08:07:03 1996 Jim Meyering <meyering@na-net.ornl.gov>
318 * acinclude.m4 (AM_FUNC_ERROR_AT_LINE): New macro.
319 (AM_FUNC_OBSTACK): New macro.
321 * configure.in (AM_FUNC_ERROR_AT_LINE): Use this instead of
323 (AM_FUNC_OBSTACK): Likewise.
325 * lib/filemode.c (ftypelet) [HAVE_ST_DM_MODE]: Add support for
326 Cray's migrated dmf files.
327 * src/ls.c (print_long_format) [HAVE_ST_DM_MODE]: Likewise.
328 * acconfig.h [HAVE_ST_DM_MODE]: New macro.
329 From Johan Danielsson.
331 * acinclude.m4 (AC_HEADER_SYS_TIME_H): New macro.
332 (AM_FUNC_MKTIME): Require AC_HEADER_SYS_TIME_H so that configure's
333 checking... messages don't get nested.
335 * configure.in (GNU_PACKAGE): New variable.
336 (PACKAGE_VERSION): Remove it.
338 * acconfig.h (GNU_PACKAGE): New variable.
339 (PACKAGE_VERSION): Remove now-unused variable.
341 * src/*.c: Update --version output to conform to the coding standard.
343 Wed Oct 2 21:44:36 1996 Jim Meyering <meyering@na-net.ornl.gov>
345 * src/dircolors.c (usage): Deprecate --print-data-base even though
346 that's the way GNU make writes it. `database' is one word.
347 Add description of FILE argument.
349 Tue Oct 1 12:56:23 1996 Jim Meyering <meyering@na-net.ornl.gov>
351 * lib/Makefile.am (fu_SOURCES): Remove getline.c.
352 (EXTRA_DIST): Add getline.c.
353 Reported by François Pinard.
355 Mon Sep 30 20:08:45 1996 Jim Meyering <meyering@na-net.ornl.gov>
357 * src/Makefile.am (dircolors.h): Don't depend on anything unless
358 in maintainer-mode. Reported by Marcus Daniels.
360 * lib/path-concat.c (path_concat): Use K&R style function definition.
362 Sun Sep 29 22:00:44 1996 Jim Meyering <meyering@na-net.ornl.gov>
364 * configure.in (ALL_LINGUAS): Add slovenian (sl).
366 * src/cp-aux.c (usage): Take only one argument -- like all the other
369 * src/cp.c (do_copy): Give better error message when copying multiple
370 files and the last one is not a directory. From Karl Berry.
371 Call error (0, 0, ... then usage (1) -- instead of calling usage
374 Sat Sep 28 13:16:29 1996 Jim Meyering <meyering@na-net.ornl.gov>
376 * lib/getversion.c (backup_types): Declare const.
377 (backup_args): Likewise.
379 Sat Sep 21 10:22:28 1996 Jim Meyering <meyering@na-net.ornl.gov>
381 * src/dircolors.c (xstrndup): Use message that's the same as the one
382 you get from e.g., xmalloc. Reported by Santiago Vila.
384 Thu Sep 19 22:13:31 1996 Jim Meyering <meyering@na-net.ornl.gov>
386 * lib/Makefile.am (fu_SOURCES): Remove regex.c and rx.c.
387 (EXTRA_DIST): Put them here instead.
389 * configure.in ($PACKAGE, $VERSION): Don't AC_DEFINE_UNQUOTED these.
390 AM_INIT_AUTOMAKE now does it (as of automake-1.1e).
392 * lib/Makefile.am (fu_SOURCES): Move getopt.c and getopt1.c back to
394 * configure.in (AC_REPLACE_GNU_GETOPT): Remove it -- it's not
397 * acinclude.m4 (AM_SANITY_CHECK_CC, AC_SYS_POSIX_TERMIOS,
398 AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Remove definitions.
399 Now automake's aclocal includes them.
401 Sun Sep 15 23:08:48 1996 Jim Meyering <meyering@na-net.ornl.gov>
403 * Makefile.am (EXTRA_DIST): Remove acinclude.m4.
405 Mon Sep 9 21:39:49 1996 Jim Meyering <meyering@na-net.ornl.gov>
407 * src/cp.c (do_copy): Describe in a little more detail the code
408 that makes `cp non-directory file/' (eventually) fail.
410 Sun Sep 8 12:54:31 1996 Jim Meyering <meyering@na-net.ornl.gov>
412 * src/dircolors.c (usage): Refer to LS_COLORS, not LS_COLOR.
413 From Santiago Vila Doncel.
415 * src/cp.c (do_copy): Set backup_type to `none' only *after*
416 calling to find_backup_file_name. Reported by Eli Zaretskii.
418 Sat Sep 7 12:25:42 1996 Jim Meyering <meyering@na-net.ornl.gov>
420 * lib/regex.c, lib/regex.h: New files.
421 * lib/rx.c, lib/rx.h: New files.
423 * lib/Makefile.am (INCLUDES): Add -I../intl so compiler will find
424 libintl.h for rpmatch.c.
426 * src/system.h: Add comments justifying IS* versions of ctype.h macros.
428 Thu Sep 5 18:12:44 1996 Jim Meyering <meyering@na-net.ornl.gov>
430 * src/chmod.c (main): Don't set verbose flag for --changes.
431 (change_file_mode): If chmod succeeds and --changes was given,
432 give a diagnostic describing the new permissions.
433 Reported by Philippe Schnoebelen (phs@fing.edu.uy).
435 * src/cp.c (do_copy): When concatenating DEST (with a trailing `/')
436 and the basename part of non-directory SOURCE, don't add a slash
439 Wed Sep 4 21:42:32 1996 Jim Meyering <meyering@na-net.ornl.gov>
441 * lib/rpmatch.c: Make sure NULL is defined by including stddef.h
442 (if STDC_HEADERS || _LIBC) or simply defining it (otherwise).
443 Include sys/types.h for definition of size_t needed by regex.h.
445 * lib/Makefile.am (fu_SOURCES): Add regex.c and rx.c.
446 (noinst_HEADERS): Add regex.h and rx.h.
448 * configure.in (AM_SANITY_CHECK_CC): Use it.
449 (AM_WITH_REGEX): Use it.
451 * acconfig.h (WITH_REGEX): Add it.
453 Tue Sep 3 08:13:09 1996 Jim Meyering <meyering@na-net.ornl.gov>
455 * lib/rpmatch.c (rpmatch): Set yesexpr to "^[yY]" and noexpr to
456 "^[nN]"; this conforms to POSIX.2. From Paul Eggert
457 <eggert@twinsun.com>.
459 Mon Sep 2 10:59:10 1996 Jim Meyering <meyering@na-net.ornl.gov>
461 * POTFILES.in: Add lib/rpmatch.c.
463 * lib/rpmatch.c (ENABLE_NLS): Include libintl.h and define _ to
466 * src/*.c (usage): Tell where to report bugs.
468 Sat Aug 31 18:48:18 1996 Jim Meyering <meyering@na-net.ornl.gov>
470 * src/touch.c (utime_now): Protoize.
471 Reported by David S. Miller (davem@caip.rutgers.edu).
473 Sun Aug 25 22:43:15 1996 Jim Meyering <meyering@na-net.ornl.gov>
475 * acinclude.m4 (AM_FUNC_MKTIME): New macro.
476 * configure.in (AM_FUNC_MKTIME): Use it.
477 (AC_REPLACE_FUNCS): Remove mktime.
479 Wed Aug 21 23:17:04 1996 Jim Meyering <meyering@na-net.ornl.gov>
481 * src/Makefile.am (EXTRA_DIST): Remove ansi2knr.1 and ansi2knr.c.
482 Automake includes them automatically.
484 * configure.in (AM_INIT_AUTOMAKE): Use it.
485 (AM_PROG_INSTALL): Remove. AM_INIT_AUTOMAKE does this.
486 (AC_PROG_MAKE_SET): Likewise.
488 Sun Aug 18 09:52:39 1996 Jim Meyering <meyering@na-net.ornl.gov>
490 * configure.in (jm_MAINTAINER_MODE, fp_C_PROTOTYPES): Rename with
491 AM_ prefix for latest automake/aclocal.
493 * lib/Makefile.am (noinst_HEADERS): Add path-concat.h.
494 (fu_SOURCES): Add path-concat.c.
496 * src/mv.c: Include path-concat.h.
497 (movefile): Use path_concat instead of open-coding its functionality.
498 Declare pointer parameters const as appropriate.
500 * src/cp.c: Include path-concat.h.
501 (do_copy): Check path_concat return value.
502 (path_concat): Remove function.
504 * lib/path-concat.h: New file.
505 * lib/path-concat.c (path_concat): New file. Just like the function
506 from cp.c except the stand-alone version uses malloc instead of
509 * configure.in (ALL_LINGUAS): Add Dutch (nl).
511 Fri Aug 16 21:59:24 1996 Jim Meyering <meyering@na-net.ornl.gov>
513 * src/chgrp.c (parse_group): Don't abort when given a group number
514 larger than INT_MAX. Fix bug whereby root could run
515 `chgrp INVALID-GROUP FILE' and it wouldn't fail, but rather would
516 change FILE's group to some indeterminate value. This problem
517 was reported as Debian Bug#4119 via Erick Branderhorst
519 Declare pointer parameters const as appropriate.
521 Thu Aug 1 22:12:15 1996 Jim Meyering <meyering@na-net.ornl.gov>
523 * src/system.h (ST_NBLOCKS) [_CRAY]: Special case for Cray.
524 * lib/fsusage.c (get_fs_usage) [STAT_STATFS4] [_CRAY]: Define
526 From Johan Danielsson.
528 Wed Jul 31 23:39:23 1996 Jim Meyering <meyering@na-net.ornl.gov>
530 * src/ln.c [LINK_TYPE]: Remove macro. NLS messages aren't
531 extracted from macros. Reported by Santiago Vila.
532 (link_type_string): New global variable to be used instead of
535 (do_link): Use it (instead of macro) here.
537 Tue Jul 30 23:24:18 1996 Jim Meyering <meyering@na-net.ornl.gov>
539 * configure.in (AC_CHECK_HEADERS): Add sys/fs/s5param.h.
540 * lib/fsusage.c [HAVE_SYS_FS_S5PARAM_H]: Include sys/fs/s5param.h
541 to work around bug in sys/filsys.h of Fujitsu UXP/V.
542 From by Johan Danielsson.
544 * src/cp.c (DO_CHOWN): New macro -- derived from code in copy.
545 (copy): Use DO_CHOWN to assure that any newly-created symbolic
546 links have proper owner and group.
548 Sat Jul 27 17:22:14 1996 Jim Meyering <meyering@na-net.ornl.gov>
550 * src/system.h (bindtextdomain) [!ENABLE_NLS]: Undefine to avoid
551 redefinition warnings on solaris.
552 (textdomain) [!ENABLE_NLS]: Likewise.
554 Thu Jul 25 21:10:42 1996 Jim Meyering <meyering@na-net.ornl.gov>
556 * src/chgrp.c (main): Fix typo in getopt_long string: s/n/h/.
557 Reported by Ken Pizzini.
559 Wed Jul 24 22:24:37 1996 Jim Meyering <meyering@na-net.ornl.gov>
561 * src/dircolors.c (usage): Remove -h. It is not an option.
562 Reported by Ulrich Drepper.
564 Sun Jul 21 11:58:48 1996 Jim Meyering <meyering@na-net.ornl.gov>
566 * configure.in (AC_CHECK_HEADERS): Add sys/timeb.h for lib/getdate.y.
567 This was a problem for SCO OSR5. From Bela Lubkin <belal@sco.com>.
568 (statvfs test): Arrange for this test to fail (as it should) for
569 SCO OSR5. Suggestion from Bela Lubkin.
571 * src/Makefile.am (BUILT_SOURCES): Remove @MAINT@.
572 (dircolors.h): Remove @MAINT@. These prevented `make distcheck'
573 from working sometimes.
575 * lib/yesno.c (yesno) [!HAVE_RPMATCH]: Remove function since we'll
576 always use the rpmatch-based version.
579 * lib/rpmatch.c [STDC_HEADERS]: Guard inclusion of stdlib.h.
581 (try): Add RESPONSE parameter.
582 (rpmatch): Update caller.
583 Anchor regular expressions to beginning of string.
585 * configure.in (AC_CHECK_FUNCS): Don't check rpmatch.
587 * acconfig.h (HAVE_OBSTACK): Undef it.
589 The following is from Ulrich Drepper.
591 * configure.in (AC_REPLACE_FUNCS): Add rpmatch.
592 * lib/Makefile.am (EXTRA_DIST): Add rpmatch.c.
593 * lib/rpmatch.c: New file.
594 * lib/yesno.c (yesno): New rpmatch-based version of the function.
595 * config.h.in (HAVE_RPMATCH): Undef it.
597 * lib/Makefile.am (EXTRA_DIST): Put error.c and obstack.c here...
598 (fu_SOURCES): Instead of here.
600 * configure.in (AC_CHECK_FUNCS): Add rpmatch.
601 Add checks for error_at_line and obstacks so systems with GNU libc
602 don't compile and link with distributed error.c and obstack.c.
604 * configure.in (AC_REPLACE_FUNCS): Replace getline.c.
605 Add related check for the getdelim function. As done in gettext.
607 Sat Jul 20 17:01:56 1996 Jim Meyering <meyering@na-net.ornl.gov>
609 * lib/Makefile.am (fu_SOURCES): Remove error.c, and obstack.c.
610 (EXTRA_DIST): Add error.c, and obstack.c.
612 * configure.in (PACKAGE_VERSION): Use space instead of hyphen to
613 separate PACKAGE and VERSION.
615 Fri Jul 19 23:28:36 1996 Jim Meyering <meyering@na-net.ornl.gov>
617 * src/cp.c (path_concat): Rewrite to return new parameter.
618 (do_copy): Update uses of path_concat to use new parameter.
619 Use that new pointer to compute correct offset for make_path_private.
620 Before, cp --recursive --parents SRC DEST failed when SRC was
621 an absolute file name. E.g.,
622 % cd /tmp; rm -rf d f; mkdir d; touch f; cp -PR /tmp/f d
623 cp: tmp: No such file or directory
624 Reported by Horst von Brand vonbrand@sleipnir.valparaiso.cl.
626 Thu Jul 18 21:58:51 1996 Jim Meyering <meyering@na-net.ornl.gov>
628 * src/install.c [_AIX]: Add #pragma alloca.
629 From Bernd Leibing <bernd.leibing@rz.uni-ulm.de>.
631 * src/chgrp.c (main): Initialize for internationalized message support:
632 call setlocale, bindtextdomain, and textdomain. Reported by
633 Michel Robitaille <robitail@IRO.UMontreal.CA>.
635 Wed Jul 17 22:37:40 1996 Jim Meyering <meyering@na-net.ornl.gov>
637 * configure.in (ALL_LINGUAS): Add polish (pl).
639 Mon Jul 15 23:42:57 1996 Jim Meyering <meyering@na-net.ornl.gov>
641 * Many files: Update FSF address.
643 Sun Jul 14 07:53:45 1996 Jim Meyering <meyering@na-net.ornl.gov>
645 * src/du.c (usage): Sort option descriptions in dictionary order.
647 Sat Jul 13 07:34:24 1996 Jim Meyering <meyering@na-net.ornl.gov>
649 * src/dircolors.c (long_options): Add missing last line of NULL
650 entries. From Ralph Loader <loader@maths.ox.ac.uk>.
652 Thu Jul 11 21:50:48 1996 Jim Meyering <meyering@na-net.ornl.gov>
656 * dircolors.1: New file -- but just a pointer to texinfo docs.
657 * man/Makefile.am (man_MANS): Add dircolors.1.
659 * configure.in (VERSION): Bump to 3.13.
661 Wed Jul 10 22:57:29 1996 Jim Meyering <meyering@na-net.ornl.gov>
663 * aclocal.m4 (fp_PROG_CC_STDC): Include sys/stat.h in test program
664 so that DYNIX/ptx V4.1.3 doesn't use `-Xc -D__EXTENSIONS__' -- with
665 those options on that system, sys/stat.h gets compile errors.
666 With help from Marcus Daniels.
668 * getopt.c: Update from gettext-0.10.23.
669 * getopt1.c: Likewise.
670 * getopt.h: Likewise.
672 Tue Jul 9 20:19:44 1996 Jim Meyering <meyering@na-net.ornl.gov>
674 * src/dircolors.c (usage): Improve --help message. From Karl Berry.
675 (long_options): Add print-data-base and print-database.
677 * src/dircolors.c (dc_parse_stream): Don't give `unrecognized keyword'
678 message unless we've processed a matching TERM directive. Reported
679 by Karl Berry and François Pinard.
681 * src/install.c (UID_T_MAX): Use `(unsigned long)1' rather than
682 `(uid_t)1' to avoid problems on systems where uid_t is signed.
683 (GID_T_MAX): Likewise for gid_t.
684 From Kjetil Torgrim Homme <kjetilho@ifi.uio.no>.
686 Sun Jul 7 22:40:08 1996 Jim Meyering <meyering@na-net.ornl.gov>
688 * src/ls.c: Change initial colors for `color_indicator' to match
689 those currently in dircolors.hin. From Joshua Cowan.
691 * src/dircolors.hin: Recognize more filename extensions.
694 * src/Makefile.am (CLEANFILES): Add dcgen. From Joshua Cowan
695 <jcowan@jcowan.reslife.okstate.edu>.
697 * src/Makefile.am (MAINTAINERCLEANFILES): Add dircolors.h.
699 * configure.in (AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Use it.
700 * acconfig.h [GWINSZ_IN_SYS_IOCTL]: Add #undef.
702 * src/ls.c: Include termios.h.
703 Guard inclusion of sys/ioctl.h with #ifdef GWINSZ_IN_SYS_IOCTL,
704 rather than HAVE_SYS_IOCTL_H. Modelled after sh-utils' stty.c
705 at suggestion from Chip Bennett <BennettC@j64.stratcom.af.mil>
706 to make ls adjust its idea of screen width upon window resize
707 on systems (SunOS, Solaris) where TIOCGWINSZ is defined in
708 termios.h, and not sys/ioctl.h.
710 * aclocal.m4 (AM_SYS_POSIX_TERMIOS): New macro, derived from test
711 in the configure.in from sh-utils.
712 (AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
714 Sat Jul 6 12:46:27 1996 Jim Meyering <meyering@na-net.ornl.gov>
716 * src/cp-aux.c (usage): Factor out backup-related text into
717 separate string/printf statement so translators deal with only
718 one corresponding string in .pot file.
719 * src/install.c (usage): Likewise.
720 * src/ln.c (usage): Likewise.
721 * src/mv.c (usage): Likewise.
722 Suggestion from Santiago Vila Doncel.
724 * configure.in (AC_REPLACE_FUNCS): Add group_member.
725 (AC_LINK_FILES): Create link lib/group_member.c to lib/group-member.c.
726 * lib/Makefile.am (fu_SOURCES): Remove group-member.c.
727 (EXTRA_DIST): Add group-member.c here.
729 Fri Jul 5 22:16:13 1996 Jim Meyering <meyering@na-net.ornl.gov>
731 * src/dircolors.c [!STDC_HEADERS]: Declare free.
734 Thu Jul 4 12:34:50 1996 Jim Meyering <meyering@na-net.ornl.gov>
736 * src/dd.c (usage): Remove space before newline in usage message.
737 * src/mknod.c (usage): Likewise.
738 * src/mv.c (usage): Likewise.
740 * src/Makefile.am (libexec_PROGRAMS): Regenerate using patched
741 automake-1.0 to work around rm -f bug on Solaris2.4.
742 Reported by Kaveh Ghazi.
744 * src/ls.c: Make `dir --version' and `vdir --version' print their
746 Reported by Ulrich Drepper.
748 Wed Jul 3 17:41:15 1996 Jim Meyering <meyering@na-net.ornl.gov>
750 * src/dircolors.c: Include sys/types.h before system.h.
751 From Jim Blandy (jimb@cyclic.com).
753 * src/chgrp.c [!MAXUID]: Define after inclusion of system.h to avoid
754 warning about redefinition on SunOS4, Solaris2.4 and SGI-irix5.3.
755 From Kaveh Ghazi. Also, Santiago Vila Doncel reported that defining
756 MAXUID before including system.h caused a compilation failure on some
759 Tue Jul 2 22:56:03 1996 Jim Meyering <meyering@na-net.ornl.gov>
761 * configure.in (VERSION): Bump to 3.12q.
763 * src/system.h [!EXIT_SUCCESS]: Define it.
764 [!EXIT_FAILURE]: Define it.
766 * lib/strndup.c (strndup): Include stdio.h and sys/types.h to
767 get definition of NULL and size_t on SunOS4.1.3.
769 Mon Jul 1 23:47:29 1996 Jim Meyering <meyering@na-net.ornl.gov>
771 * src/ln.c (do_link): Update messages to ease translation.
772 Suggestion from Santiago Vila.
774 Sun Jun 30 16:41:45 1996 Jim Meyering <meyering@na-net.ornl.gov>
776 * src/install.c (usage): Fix typo, 3nd->3rd, in usage message.
777 From Santiago Vila Doncel.
779 Sat Jun 29 00:33:31 1996 Jim Meyering <meyering@na-net.ornl.gov>
781 * configure.in (PACKAGE_VERSION): Add `GNU ' prefix so we see
782 it in the output of --version. Reported by RMS.
784 * src/Makefile.am (BUILT_SOURCES): Guard dependency on dircolors.h
785 with @MAINT@ so it won't be removed with a casual disctlean.
786 (EXTRA_DIST): Add dcgen.pl and dircolors.hin.
788 Fri Jun 28 22:56:00 1996 Jim Meyering <meyering@na-net.ornl.gov>
790 * src/dircolors.c (dc_parse_stream): Move `enum states' dcl into
793 * src/ln.c (do_link): Allow `ln -sf --backup k k' to succeed in
794 creating the self-referential symlink, since doing so doesn't
795 remove the source but merely renames it.
797 Wed Jun 26 06:58:58 1996 Jim Meyering <meyering@na-net.ornl.gov>
799 * ln.c (same_name): New function.
800 (do_link): Use it to test reliably whether A and B (from
801 ln --force A B) are hard links to the same file.
804 Tue Jun 25 00:03:43 1996 Jim Meyering <meyering@na-net.ornl.gov>
806 * lib/getline.c: New file.
807 * lib/getline.h: New file.
808 * lib/Makefile.am (fu_SOURCES): Add getline.c.
809 (noinst_HEADERS): Add getline.h.
811 Mon Jun 24 22:39:02 1996 Jim Meyering <meyering@na-net.ornl.gov>
813 * configure.in (AC_REPLACE_FUNCS): Add strndup.
814 (AC_PATH_PROG): Check for perl.
816 * ls.c (decode_switches): Allow 0 as argument to --tabsize (-T) option.
817 Interpret as a directive to use no TAB characters to separate columns.
818 (indent): Handle TABSIZE == 0.
820 * dircolors.c (dc_parse_stream): Remove spurious newline in
822 (dc_parse_stream): Give `unrecognized keyword' diagnostic for
823 misspelled `TERM' keyword as well as for others.
825 Sun Jun 23 12:58:32 1996 Jim Meyering <meyering@na-net.ornl.gov>
827 * dircolors.hin: New file.
828 * dcgen.pl: New file.
829 * src/Makefile.am (dircolors.h): Add a rule to create this file.
832 * dircolors.c (parse_line): Rewrite to avoid modifying LINE.
833 Put LINE first in parameter list.
835 (dc_parse_stream): Free KEYWD and ARG.
836 (main): Give diagnostic for unreasonable combinations of
839 * lib/Makefile.am (EXTRA_DIST): Add strndup.c.
840 * configure.in (AC_REPLACE_FUNCS): Add strndup.
841 * strndup.c: New file. From id-utils-3.0k.
843 [!STDC_HEADERS]: Include string.h and stdlib.h.
845 Sat Jun 22 16:57:53 1996 Jim Meyering <meyering@na-net.ornl.gov>
847 * dircolors.c: Major overhaul. No longer read from /etc/DIR_COLORS
848 or from ~/.dircolors. Defaults are now compiled in. If you specify
849 a file on the command line, it is used instead of the compiled-in
851 (main): New option --print-database (-p).
852 Detect write failure.
853 Add --bourne-shell and --c-shell aliases for --sh and --csh resp.
855 Tue Jun 18 20:54:05 1996 Jim Meyering <meyering@na-net.ornl.gov>
857 * cp.c (copy_reg): Cast both sides of comparison to size_t
858 to avoid a warning about `comparison between signed and unsigned'
860 Declare pointer parameters const as appropriate.
862 * ln.c (do_link): Refine last change so we don't disallow commands
863 like `ln --force A B' when A and B are hard links to the same file.
864 See comments in the source. Reported by Erik Naggum <erik@naggum.no>
867 * ls.c (decode_switches): Correct typo in error messages:
868 enironment -> environment. From Santiago Vila Doncel
871 * aclocal.m4: Update from gettext-0.10.20.
872 * ABOUT-NLS: Likewise.
875 * cp.c (do_copy): Change message from `missing file argument' to
876 more precise `missing destination file'. From Karl Berry.
878 * ln.c (STREQ): Remove macro definition
879 * system.h (STREQ): Add it here instead.
880 * cp.c (do_copy): Use STREQ here instead of strcmp(...) == 0.
881 * ls.c (parse_ls_color): Likewise.
882 * df.c (selected_fstype, excluded_fstype, show_disk, main): Likewise.
884 * cp.c (do_copy): When the force and backup options have been
885 specified and the source and destination are the same name for an
886 existing, regular file, convert the user's command, e.g.
887 `cp --force --backup foo foo' to `cp --force foo fooSUFFIX'
888 where SUFFIX is determined by any version control options used.
889 (usage): Update --help message.
890 At urging of (most recently) Karl Berry.
892 Sun Jun 16 13:40:22 1996 Jim Meyering <meyering@na-net.ornl.gov>
894 * doc/Makefile.am (EXTRA_DIST): Add texinfo.tex.
896 * Makefile.am (cvs-dist): Use -c option in cvs tag command.
898 Sat Jun 15 22:21:09 1996 Jim Meyering <meyering@na-net.ornl.gov>
900 * configure.in (ALL_LINGUAS): Add pt.
901 (AC_REPLACE_FUNCS): Add basename.
903 * Makefile.am (EXTRA_DIST): Add basename.c.
904 (fu_SOURCES): Remove basename.c.
906 Thu Jun 6 21:57:08 1996 Jim Meyering <meyering@na-net.ornl.gov>
908 * po/Makefile.in.in: Update from gettext-0.10.16.
910 * ABOUT-NLS: Likewise.
911 * aclocal.m4 (AC_REPLACE_GNU_GETOPT): Move definition to precede
912 gettext-related ones.
913 Update from gettext-0.10.16.
915 Sat Jun 1 12:44:51 1996 Jim Meyering <meyering@na-net.ornl.gov>
917 * ls.c: Rename options and internal variables to reflect change to
918 --color=WHEN where WHEN is never, always, or auto (for consistency
919 with e.g. cp --sparse=WHEN. For at least a while, the original
920 slackware-supported arguments `none', `force', `yes', etc will be
921 supported but deprecated by lack of documentation.
922 (decode_switches): Use STDOUT_FILENO instead of `1' in isatty test.
923 (usage): Update/add description of the --color option.
925 * ls.c: Declare pointer parameters const as appropriate.
927 Tue May 28 18:39:49 1996 Jim Meyering <meyering@na-net.ornl.gov>
929 * dd.c (print_stats): Don't mark "%u %s" as a translatable string.
930 * mv.c (main): Don't mark "%s" as a translatable string.
933 Thu May 23 07:50:38 1996 Jim Meyering <meyering@na-net.ornl.gov>
935 * ls.c (usage): Make --literal (-N) description clearer.
937 * acconfig.h (MOUNTED_LISTMNTENT): Add it.
938 * fsusage [_CRAY]: Don't include sys/filsys.h because although
939 Unicos-9 has it, it's not needed and would cause other problems
940 because it requires inclusion of other, non-standard headers.
941 * mountlist.c (read_filesystem_list) [MOUNTED_LISTMNTENT]: New
943 From Johan Danielsson (joda@pdc.kth.se).
945 * configure.in (AC_CHECK_FUNCS): Add listmntent for Unicos-9.
946 Define MOUNTED_LISTMNTENT #ifdef _CRAY and HAVE_GETMNTENT.
947 With an initial patch from Johan Danielsson.
949 Wed May 22 18:58:01 1996 Jim Meyering <meyering@na-net.ornl.gov>
951 * configure.in (LINGUAS): Add sv.
953 Tue May 21 07:06:30 1996 Jim Meyering <meyering@na-net.ornl.gov>
955 * lib/euidaccess.c (euidaccess) [!S_IROTH]: Define.
958 Marcus Daniels <marcus@sysc.pdx.edu> reported that m68k NEXTSTEP 3.2
959 doesn't define S_IROTH or S_IWOTH unless some posix compile option
960 is used and associated symbols defined.
962 Sun May 19 09:32:51 1996 Jim Meyering (meyering@na-net.ornl.gov)
964 * chown.c: New option: --no-dereference (-h). Solaris 5.4's chown
966 (change_file_owner): Use lchown if --no-dereference (-h) was given.
968 (main): Fail if user requests --no-dereference on a system that
969 doesn't have support for it.
971 * chgrp.c: New option: --no-dereference (-h).
972 [!MAXUID]: Define to INT_MAX.
973 (change_file_group): Use lchown if --no-dereference (-h) was given.
975 (main): Fail if user requests --no-dereference on a system that
976 doesn't have support for it.
978 Wed May 15 22:54:31 1996 Jim Meyering (meyering@na-net.ornl.gov)
980 * fsusage.c (get_fs_usage): Declare parameter PATH to be const.
981 * fsusage.h: Update prototype to match.
983 * chmod.c (describe_change): Declare pointer parameters to be const.
984 (change_file_mode): Likewise.
985 (change_dir_mode): Likewise.
987 * ln.c (do_link): Declare pointer parameters to be const.
989 * df.c (main): Fail with a diagnostic if both --human-readable and
990 --portability are used.
991 Likewise if --megabytes and --portability are used.
992 Rearrange function definitions to precede respective uses to obviate
993 all forward dcls. Remove forward dcls.
994 Declare parameters const as appropriate.
996 * modechange.c (mode_compile): Declare parameter MODE_STRING const.
997 Remove register attribute.
998 (mode_adjust): Likewise for CHANGES.
999 * modechange.h: Reflect above changes in prototypes.
1001 * lib/Makefile.am (getdate.c): Disable dependencies that can
1002 require rerunning YACC when not in maintainer mode.
1003 (posixtm.c): Likewise.
1005 Tue May 14 23:36:54 1996 Jim Meyering (meyering@na-net.ornl.gov)
1007 * dd.c (print_stats): Restructure pluralization of error message
1008 so it's easier to translate. Reported by Göran Uddeborg
1009 <gvran@uddeborg.pp.se>.
1010 * mv.c (main): Likewise.
1012 Tue May 7 22:10:20 1996 Jim Meyering (meyering@na-net.ornl.gov)
1014 * configure.in: Require autoconf-2.10.
1016 * aclocal.m4 (jm_MAINTAINER_MODE): New macro.
1017 * configure.in (jm_MAINTAINER_MODE): Use it.
1019 Sun May 5 20:27:47 1996 Jim Meyering (meyering@na-net.ornl.gov)
1021 * src/Makefile.am (bin_PROGRAMS): Add dircolors.
1022 (DEFS): Add -DSHAREDIR=\"$(datadir)\".
1023 (GNUVER): Remove definition of unused variable.
1025 Sat May 4 20:54:32 1996 Jim Meyering (meyering@na-net.ornl.gov)
1027 * system.h [IN_CTYPE_DOMAIN]: Rename from ISASCII.
1028 * backupfile.c [IN_CTYPE_DOMAIN]: Rename from ISASCII.
1030 * dircolors.c: Make enumerated constants upper case.
1031 (main): Don't use ANSI-style string concatenation.
1032 Add `static' and/or `const' to some file scope variables.
1034 Wed May 1 00:20:00 1996 Jim Meyering (meyering@na-net.ornl.gov)
1036 * lib/Makefile.am (EXTRA_DIST): Add strcasecmp.c.
1037 * configure.in (AC_REPLACE_FUNCS): Add strcasecmp.
1039 * ls.c (parse_ls_color, usage): Remove support for alternate spellings:
1040 --colours and LS_COLOURS.
1041 (parse_ls_color): Reverse sense of test for LS_COLORS environment
1042 variable and return -- save a level of indentation on a 100+-line
1045 Mon Apr 29 22:07:41 1996 Jim Meyering (meyering@na-net.ornl.gov)
1047 * POTFILES.in: Add chgrp.c. From François Pinard.
1049 * dircolors.c: New file. Written by H. Peter Anvin.
1051 Sun Apr 28 16:32:38 1996 Jim Meyering (meyering@na-net.ornl.gov)
1053 * ls.c: Apply color ls changes by Peter Anvin <Peter.Anvin@linux.org>
1054 and Dennis Flaherty <dennisf@denix.elk.miles.com> based on original
1055 patches by Greg Lee <lee@uhunix.uhcc.hawaii.edu>. And on top of all
1056 that, a few changes from Ulrich Drepper.
1058 * ls.c (parse_ls_color): Use strcpy to initialize 3-character array.
1059 Automatic aggregate initialization isn't portable.
1061 (get_funky_string): Declare static and move to precede single
1062 caller: parse_ls_color.
1063 Make some globals `static' and/or `const'.
1064 (LEN_STR_PAIR): New macro.
1065 (color_indicator): Use it in this declaration.
1066 (parse_ls_color): Use error, not fprintf.
1067 (decode_switches): Add a comment.
1068 (print_name_with_quoting): Add braces around inner if-else
1069 statement to clarify.
1071 * configure.in: Add a comment that fp_C_PROTOTYPES must precede
1072 AC_C_INLINE. Otherwise, some systems lose because the value
1073 AC_C_INLINE choses with plain `cc' is different from that chosen
1074 when using the ANSI-mode C compiler. From Kaveh Ghazi.
1076 * fileblocks.c [HAVE_ST_BLOCKS || _POSIX_VERSION]: Add extern dcl
1077 of unused variable so that after preprocessing, the file will never
1078 be empty. Otherwise, some compilers in ANSI mode (among them, the
1079 Dec Alpha OSF 2.0 C compiler) reject empty files. From Kaveh Ghazi.
1080 Indent CPP conditionals.
1082 Fri Apr 26 05:52:03 1996 Karl Eichwalder <ke@ke.Central.DE>
1084 * ls.c (usage): Add newline at end of printf format string.
1086 Wed Apr 24 21:33:43 1996 Jim Meyering (meyering@na-net.ornl.gov)
1088 * ln.c (do_link): Remove duplicate `if (lstat(...' block.
1090 * ln.c (do_link): With --force, don't remove DEST when it's
1091 the same as SOURCE. Before, `ln -f FILE FILE' would remove FILE.
1092 Reported by Bruno Haible (haible@ilog.fr).
1094 * mkdir.c (main): Use verbose_fmt_string, not string literal in
1095 call to make_path for --parents. Reported by Ulrich Drepper.
1097 * doc/mdate-sh: Get year as last rather than 6th field in output
1098 of date. Otherwise, people with 2-word TZ (like `MET DST') lost.
1099 From Andreas Schwab.
1101 Tue Apr 23 22:05:35 1996 Jim Meyering (meyering@na-net.ornl.gov)
1103 * src/*.c, src/*.h: Update Copyright years to include 1996.
1105 * aclocal.m4 (AC_REPLACE_GNU_GETOPT): New macro.
1106 * configure.in: Use it.
1107 * lib/Makefile.am (fu_SOURCES): Remove getopt.c and getopt1.c.
1108 (EXTRA_DIST): Add getopt.c and getopt1.c
1110 * configure.in (AC_CHECK_FUNCS): Add lchown.
1111 * chgrp.c [HAVE_LCHOWN]: Define chown to lchown.
1112 * chown.c [HAVE_LCHOWN]: Likewise.
1113 * cp.c [HAVE_LCHOWN]: Likewise.
1114 * mv.c [HAVE_LCHOWN]: Likewise.
1115 Suggested by François Pinard.
1117 * backupfile.c (find_backup_file_name, max_backup_version,
1118 make_version_name, version_number, concat): Const-ify decls of
1120 * backupfile.h: Likewise.
1122 * du.c (usage): The long-named arg is --human-readable, not --human.
1123 * df.c: Be consistent. Accept --human-readable, not just --human.
1124 (usage): Reflect the change.
1127 Sun Apr 21 08:04:51 1996 Jim Meyering (meyering@na-net.ornl.gov)
1129 * df.c (usage): Reflect that now --no-sync is the default.
1131 * Makefile.am (LDADD): Put @INTLLIBS@ before package library.
1133 Sat Apr 20 22:48:59 1996 Jim Meyering (meyering@na-net.ornl.gov)
1135 * ls.c: Include xstrtol.h.
1136 (decode_switches): Use xstrtol, not atoi.
1137 Detect and ignore invalid value for COLUMNS environment variable.
1138 In error about invalid TABSIZE, don't reference optarg!
1139 [!POSIXLY_CORRECT]: Don't consider TABSIZE environment variable.
1141 * install.c: Include xstrtol.h.
1142 [HAVE_VALUES_H]: Include <values.h>.
1143 [!BITSPERBYTE]: Define.
1144 [!UID_T_MAX]: Define.
1145 [!GID_T_MAX]: Define.
1146 (get_ids): Use xstrtol, not atoi.
1147 (is_number): Remove now-unused function.
1148 * configure.in (AC_CHECK_HEADERS): Add values.h.
1150 Fri Apr 19 00:06:02 1996 Jim Meyering (meyering@na-net.ornl.gov)
1152 * Makefile.am (cvs-dist): New rule. Based on the one from
1153 Tom Tromey's automake.
1155 * df.c: No longer call sync by default.
1157 * cp.c (copy_reg): Rearrange arithmetic in conditional to avoid
1158 integer overflow with large files.
1160 Fri Apr 12 21:40:44 1996 Jim Meyering (meyering@na-net.ornl.gov)
1162 * mkdir.c (main): Add new option: --verbose.
1163 Remove long-deprecated and nowhere-documented --path, a synonym
1164 for --parents. It was confusing to get an error about `--p'
1167 Thu Apr 4 21:28:03 1996 Jim Meyering (meyering@na-net.ornl.gov)
1169 * configure.in (LINGUAS): Add de.
1170 * po/de.po: New file.
1172 * src/Makefile.am (EXTRAdir): Set to $(bindir).
1174 Wed Apr 3 06:12:23 1996 Jim Meyering (meyering@na-net.ornl.gov)
1176 * cp.c (copy_reg): Use `ST_NBLOCKS (sb) * 512', not `sb.st_blocks *
1177 DEV_BSIZE.' From H.J. Lu (hjl@lucon.org).
1179 * mvdir.c: Protoize.
1181 (fullpath): Rewrite to use save_cwd, xgetcwd, and restore_cwd
1182 rather than explicit chdir/getcwd calls.
1184 * src/Makefile.am (INCLUDES): Add -I$(srcdir) to get system.h
1185 when srcdir != builddir. From Kaveh Ghazi.
1187 Mon Apr 1 23:50:29 1996 Jim Meyering (meyering@na-net.ornl.gov)
1189 * cp.c: Include assert.h (disabled).
1190 (path_concat): New function.
1191 (do_copy): Use path_concat instead of open-coding part of its
1192 functionality in two places. This has the additional benefit
1193 of avoiding forming destination names like `D//file' when the
1194 destination directory D includes a trailing slash -- as would
1195 happen when cp is used like this:
1196 mkdir D; touch file D/file; cp -i file D/
1197 Reported by François Pinard.
1199 Sun Mar 31 11:18:09 1996 Jim Meyering (meyering@na-net.ornl.gov)
1201 * ls.c (quote_filename): Use ISGRAPH and ISPRINT in place of
1202 ASCII-centric tests against literals.
1203 (length_of_file_name_and_frills): Likewise.
1205 Thu Mar 21 16:43:13 1996 Jim Meyering (meyering@na-net.ornl.gov)
1207 * src/*.c (main): Declare to be of type int, not void.
1209 Sat Mar 16 10:46:23 1996 Jim Meyering (meyering@na-net.ornl.gov)
1211 * configure.in (PACKAGE_VERSION): New macro.
1212 * acconfig.h (PACKAGE_VERSION): Add it.
1213 * src/Makefile.am: Remove rules for generating version.c.
1214 Remove references to version.o, version.h, and stamp-v.
1215 * version.c: Remove file.
1216 * version.h: Remove file.
1217 * chgrp.c chmod.c chown.c cp.c dd.c df.c du.c install.c ln.c
1218 ls.c mkdir.c mkfifo.c mknod.c mv.c mvdir.c rm.c rmdir.c sync.c
1219 touch.c: Don't include version.h.
1220 (main): Use PACKAGE_VERSION instead of version_string.
1222 Sun Mar 10 22:36:11 1996 Jim Meyering (meyering@na-net.ornl.gov)
1224 * backupfile.c (max_backup_version): Declare file_name_length to
1225 be of type size_t. This avoids a warning from gcc -Wall.
1227 * chmod.c chown.c cp.c dd.c df.c du.c install.c ln.c ls.c
1228 mkdir.c mkfifo.c mknod.c mv.c mvdir.c rm.c rmdir.c sync.c
1229 touch.c (main): Initialize for internationalized message support:
1230 call setlocale, bindtextdomain, and textdomain.
1231 * system.h: Add definitions and includes for NLS.
1232 * Makefile.am (SUBDIRS): Add intl and po.
1233 * src/Makefile.am (datadir): Define.
1234 (localedir): Define.
1235 (DEFS): Add LOCALEDIR definition.
1236 (LDADD): Add @INTLLIBS@.
1237 * aclocal.m4: Add NLS-related macro definitions from
1238 gettext distribution.
1239 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_LC_MESSAGES,
1240 HAVE_STPCPY): New macros.
1241 Add PACKAGE and VERSION.
1242 * configure.in (PACKAGE): Define with AC_DEFINE_UNQUOTED.
1243 (VERSION): Likewise.
1244 (ALL_LINGUAS): Define.
1245 (ud_GNU_GETTEXT): Use it.
1247 (AC_OUTPUT): Reflect addition of two new directories, intl and po.
1249 From François Pinard.
1251 Thu Mar 7 20:26:07 1996 Jim Meyering (meyering@na-net.ornl.gov)
1253 * df.c (main): Tell read_filesystem_list that it should determine
1254 file system type when the user specifies --print-type or -T.
1255 From Michael Rendell <michael@cs.mun.ca>.
1257 Tue Feb 27 23:13:46 1996 Jim Meyering (meyering@na-net.ornl.gov)
1259 * src/Makefile.am: Adapt for automake-0.30.
1260 (noinst_HEADERS): Rename from HEADERS.
1261 (EXTRA_PROGRAMS): Set to `df mvdir'.
1262 (PROGRAMS): Remove definition.
1263 (bin_PROGRAMS): Remove hard-coded df. Use @DF_PROG@ instead.
1264 (libexec_PROGRAMS): Remove hard-coded mvdir. Use @MVDIR_PROG@ instead.
1265 * lib/Makefile.am: (noinst_HEADERS): Rename from HEADERS.
1267 * configure.in (DF_PROG, MVDIR_PROG): Use these instead of bundling
1270 Mon Feb 26 21:23:58 1996 Jim Meyering (meyering@na-net.ornl.gov)
1272 * dd.c (copy): Remove bogus (now that we're using full_write)
1273 increment of w_partial.
1274 Change sense of the tests (though they're equivalent) that check
1275 the value returned by full_write. making it clearer where errno
1276 is valid. full_write always writes the full amount or fails.
1278 Thu Feb 15 23:08:41 1996 Jim Meyering (meyering@na-net.ornl.gov)
1280 * cp.c (copy): Detect (and fail) when creating backup file would
1281 destroy the source file. Before, running the commands
1282 cd /tmp; rm -f a a~; : > a; echo A > a~; cp -b -V simple a~ a
1283 would leave two zero-length files: a and a~.
1284 Reported by Martin C. Martin <mcm@cs.cmu.edu>.
1286 Mon Feb 12 23:23:25 1996 Jim Meyering (meyering@na-net.ornl.gov)
1288 * configure.in (LIBOBJS): Split assignment into two statements to
1289 accomodate automake-0.29 buglet.
1291 Update for automake-0.29.
1292 * Makefile.am (CONFIG_HEADER): Don't define. Automake now does it.
1293 * src/Makefile.am: Likewise.
1294 * lib/Makefile.am: Likewise.
1295 * doc/Makefile.am (info_TEXINFOS): Renamed from TEXINFOS.
1296 * man/Makefile.am (man_MANS): Renamed from MANS.
1298 Wed Jan 31 21:50:41 1996 Jim Meyering (meyering@na-net.ornl.gov)
1300 * dd.c (skip): Change type of parameter #5 from char* to
1301 unsigned char* to match type of argument.
1302 (copy): Cast first arg in memset call to char* to avoid warnings
1304 (copy_simple): Likewise.
1306 * du.c: Remove comma after last item in enum.
1308 * df.c: Remove block of usage comments at beginning of file.
1310 * df.c (main): New options --human-readable (-h) and --megabytes (-m).
1311 (human_readable_1k_blocks): New function.
1312 (print_header): Honor new options.
1313 (show_dev): Honor new options.
1314 Add ifdef'd-out code to avoid printing lines for mount points that
1315 match ^/auto/.* and ^/tmp_mnt.*. Rather than hard-coding those
1316 two prefixes, the code should allow the user to specify a regular
1317 expression. From Larry McVoy (lm@sgi.com).
1319 * du.c (human_readable): Fix off-by-one error that converted
1320 1024*1024 to 1024K rather than 1G. Describe the function.
1321 * df.c (human_readable_1k_blocks): Likewise
1322 (usage): Update usage message to reflect additions.
1324 Sat Jan 20 06:00:09 1996 Jim Meyering (meyering@na-net.ornl.gov)
1326 * cp-aux.c (usage): Fix description of --archive. From Andreas Schwab.
1328 * install.c (copy_files): Accept backup/suffix options just as cp,
1329 ln, and mv do. From Marty Leisner <leisner@sdsp.mc.xerox.com>.
1331 * src/Makefile.am (DISTCLEANFILES): Set to stamp-v version.c.
1332 (version.c): Update with rules from textutils.
1333 (transform): Add `s/ginstall/install/;' prefix.
1335 * lib/Makefile.am (BUILT_SOURCES): Set to posixtm.c getdate.c so
1336 autodependencies work after `make maintainer-clean.'
1338 * du.c (main): New options --human-readable (-h) and --megabytes (-m).
1339 (human_readable): New function.
1340 From Larry McVoy (lm@sgi.com).
1342 Fri Dec 22 21:34:55 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1344 * configure.in: Touch stamp-h only if config.h is remade.
1346 Sat Dec 23 11:33:19 1995 Jim Meyering (meyering@comco.com)
1348 * ls.c (decode_switches): Make -o a synonym for -lG for compatibility
1349 with most other versions of ls. Reported by Karl Berry.
1352 Fri Dec 22 00:48:01 1995 Jim Meyering (meyering@comco.com)
1354 * dd.c (cleanup): New function -- broken out from quit.
1355 (interrupt_handler): Rewrite to reset default signal handler,
1356 call cleanup, then repost caught signal.
1358 Thu Dec 21 23:15:06 1995 Jim Meyering (meyering@comco.com)
1360 * argmatch.h: New file.
1361 * lib/Makefile.am (HEADERS): Add argmatch.h.
1362 * argmatch.c: (argmatch): Add const attribute to parameters.
1363 (invalid_arg): Add const attribute to parameters.
1365 * cp.c: Include argmatch.h.
1367 * touch.c: Likewise.
1369 * cp.c (main): Accept new option, --sparse={never,auto,always},
1370 to control creation of sparse files.
1371 (copy_reg): Set local, make_holes, from global flag_sparse.
1372 * cp-aux (usage): Describe new option.
1374 Mon Dec 18 22:29:49 1995 Jim Meyering (meyering@comco.com)
1376 * ln.c: [SYMBOLIC_SPACE_STRING]: New macro.
1377 (do_link): Use SYMBOLIC_SPACE_STRING instead of open-coded #ifdef.
1378 For --verbose, output `create [symbolic ]link DEST to SRC' instead
1379 of ambiguous (or inconsistent with cp -v and mv -v) `SRC -> DEST.'
1381 Tue Dec 5 17:38:11 1995 Jim Meyering (meyering@comco.com)
1383 * rm.c (rm): Work around SunOS 4 bug whereby lstat doesn't fail
1384 when given a zero-length file name argument. Reported by
1385 Mark Calabretta <mcalabre@atnf.csiro.au>.
1387 Wed Nov 22 23:12:47 1995 Jim Meyering (meyering@comco.com)
1389 * Makefile.in (all et. al.): If make was invoked with -k and a
1390 sub-make fails, fail after the loop rather than exiting right away.
1391 Otherwise, make's -k option could be ineffective.
1393 Thu Nov 16 21:25:45 1995 Jim Meyering (meyering@comco.com)
1395 * Makefile.in (default): New default target. Depend on `all' to work
1396 around bug in AIX-3.2.5's /bin/make. Reported by Andreas Luik
1399 Fri Nov 10 23:31:46 1995 Jim Meyering (meyering@comco.com)
1401 * src/Makefile.in (.c._o, ._c._o): Remove temporary source files.
1402 (.c._c): Don't redirect directly to $@.
1404 * src/Makefile.in (DISTFILES): Include ansi2knr.c and ansi2knr.1.
1405 (clean): Remove temp files generated by ansi2knr rules.
1406 (ansi2knr): New rule.
1407 Add suffixes, dependencies, and rules to convert ANSI source to K&R
1409 ($(OBJECTS)): Depend on $(ANSI2KNR)
1411 * configure.in: Add fp_C_PROTOTYPES.
1413 * Makefile.in (DISTFILES): Add aclocal.m4.
1414 (configure): Depend on aclocal.m4.
1415 (stamp.h.in): Depend on aclocal.m4 and acconfig.h.
1416 * acconfig.h: Add PROTOTYPES.
1418 * cp.h: Remove declaration of error. Include error.h instead.
1419 Protoize forward dcls of functions in cp-hash.c and cp-aux.c
1420 * cp-aux.c: Protoize and add const attribute to parameters.
1421 * cp-hash.c: Likewise.
1423 Thu Nov 9 23:27:05 1995 Jim Meyering (meyering@comco.com)
1425 * system.h [__P]: Define it.
1427 * src/*.c: Protoize.
1429 * ls.c (enum filetype): Move dcl to precede prototypes.
1430 (struct fileinfo): Likewise.
1431 Add const attribute to some parameters.
1433 * rm.c (struct pathstack): Move dcl to precede prototypes.
1435 * dd.c (translate_charset): Make parameter `const'.
1437 * ln.c (main): Move to the end.
1438 Remove most fwd dcls.
1439 * chmod.c: Likewise.
1440 * chown.c: Likewise.
1441 * chgrp.c: Likewise.
1442 * mkdir.c: Likewise.
1443 * mkfifo.c: Likewise.
1444 * mknod.c: Likewise.
1445 * mvdir.c: Likewise.
1446 * touch.c: Likewise.
1448 * mv.c: Rearrange functions to obviate forward dcls.
1449 Remove forward dcls.
1451 * cp.c: Protect prototyped forward dcls with __P.
1455 * install.c: Likewise.
1459 Wed Nov 1 23:11:05 1995 Jim Meyering (meyering@comco.com)
1461 * cp.c (copy): Use euidaccess instead of euidaccess_stat.
1462 * mv.c (do_move): Likewise.
1463 * rm.c (remove_file, remove_dir): Likewise.
1465 Sun Oct 29 06:06:13 1995 Jim Meyering (meyering@comco.com)
1467 * aclocal.m4 (jm_WITH_AUTODEPS): New directive.
1468 * configure.in: Use it.
1470 * lib/Makefile.in (INCLUDE, COMPILE): New variables.
1471 (.c.o): Rewrite to be more like src/Makefile.in.
1472 Add line that (--with-autodeps) will include mkdep-Makefile.
1473 (distclean): Remove .deps.
1474 * src/Makefile.in: Likewise.
1476 * src/Makefile.in (test.o): Remove special rule.
1478 * mkdep-Makefile: New file.
1479 * Makefile.in (DISTFILES): Add mkdep-Makefile.
1481 * doc/Makefile.in (mostlyclean): Remove *.info.
1483 * touch.c: Change long option name `--file' to `--reference'.
1484 Leave --file as an alias, for now. It will be removed later.
1485 (usage): Reflect option name change. From Franc,ois Pinard.
1487 Wed Oct 18 23:09:55 1995 Jim Meyering (meyering@comco.com)
1489 * configure.in (AC_CHECK_HEADERS): Add sys/wait.h and sys/ioctl.h.
1490 (AC_CHECK_FUNCS): Add endpwent.
1492 * fileblocks.c: Use _POSIX_VERSION, not _POSIX_SOURCE.
1494 * userspec.c [endgrent]: Test !HAVE_ENDGRENT rather than _POSIX_SOURCE.
1495 [endpwent]: Test !HAVE_ENDPWENT rather than _POSIX_SOURCE.
1497 * chgrp.c [endgrent]: Test !HAVE_ENDGRENT rather than _POSIX_SOURCE.
1499 * chown.c [endpwent]: Test !HAVE_ENDPWENT rather than _POSIX_SOURCE.
1500 [endgrent]: Remove unused definition.
1502 * df.c (main): Fail if the same file system type was both selected
1503 and excluded. Reported by Paul Close pdc@lunch.engr.sgi.com.
1505 * rm.c (duplicate_entry): Always return 0 if !D_INO_IN_DIRENT,
1506 rather than if _POSIX_SOURCE.
1508 * install.c: Use HAVE_SYS_WAIT_H, not _POSIX_VERSION in conditional
1509 inclusion of sys/wait.h.
1510 [endgrent]: Test !HAVE_ENDGRENT rather than _POSIX_SOURCE.
1511 [endpwent]: Test !HAVE_ENDPWENT rather than _POSIX_SOURCE.
1513 * ls.c Use HAVE_SYS_IOCTL_H, rather than !_POSIX_SOURCE || _AIX.
1515 Thu Oct 5 21:49:34 1995 Jim Meyering (meyering@comco.com)
1517 * configure.in (HAVE_STRUCT_UTIMBUF): Add new test. Testing for
1518 the existence of <utime.h> is insufficient on some Next systems.
1519 * acconfig.h (HAVE_STRUCT_UTIMBUF): Add it.
1520 * system.h [!HAVE_UTIME_H]: Don't declare struct utimbuf here.
1521 [!HAVE_STRUCT_UTIMBUF]: Declare struct utimbuf here instead.
1523 * chgrp.c: Include limits.h.
1524 [!INT_MAX]: Define it.
1526 * df.c (show_point): Cast -2 to dev_t before assignment.
1527 * mountlist.c (read_filesystem_list): Cast -1 to dev_t before
1530 Sun Oct 1 13:22:36 1995 Jim Meyering (meyering@comco.com)
1532 * configure.in (AC_REPLACE_FUNCS): Add strtoul.
1533 * strtoul.c: New file.
1534 * lib/Makefile.in (SOURCES): Add strtoul.c.
1536 * acconfig.h (STATFS_TRUNCATES_BLOCK_COUNTS): Add it.
1537 * configure.in (STATFS_TRUNCATES_BLOCK_COUNTS): New check to enable
1538 workaround for SunOS statfs brokenness. Block counts in struct
1539 statfs for partitions 2GB and larger are truncated, but correct
1540 values are stored in f_spare array member.
1542 * fsusage.c (get_fs_usage) [STATFS_TRUNCATES_BLOCK_COUNTS]: Copy
1543 untruncated block counts from f_spare array into proper members
1544 of struct statfs. From Eirik Fuller (eirik@netapp.com);
1546 * ls.c (dired_dump_obstack): Don't generate any output if the
1548 (main): Always initialize and dump subdired_obstack, not just if -R.
1549 `ls -lDR dir dir2' was using uninitialized subdired_obstack.
1550 Reported by Samuli K{rkk{inen <hskarkka@snakemail.hut.fi>.
1552 Tue Sep 26 23:05:01 1995 Jim Meyering (meyering@comco.com)
1554 * man/Makefile.in (install-data, uninstall): Use sed not basename.
1555 The GNU Coding Standard suggests that only a select set of
1556 relatively standard utilities be used in Makefiles. basename is
1557 not among them. Suggested by Ulrich Drepper.
1559 Mon Sep 25 23:12:37 1995 Jim Meyering <meyering@gremlin.comco.com>
1561 * src/df.c (show_point): Ignore mtab entries with either
1562 nonexistent mount points or with inconsistent device number.
1563 From Eirik Fuller <eirik@synopsys.com>.
1565 Wed Aug 9 00:33:05 1995 Jim Meyering (meyering@comco.com)
1567 * mknod.c (my_strtol): Remove function.
1568 (main): Use xstrtol instead.
1570 Mon Aug 7 23:27:54 1995 Jim Meyering (meyering@comco.com)
1572 * Makefile.in (DISTFILES): Don't distribute unneeded COPYING.LIB.
1575 Fri Aug 4 22:11:06 1995 Jim Meyering (meyering@comco.com)
1577 * install.c (isnumber): Rename to is_number to avoid conflict with
1578 FreeBSD 2.0.5 macro definition. Reported by David O'Brien
1579 (obrien@sea.legent.com).
1581 * lib/save-cwd.c: New file.
1582 * lib/save-cwd.h: New file.
1583 * lib/Makefile.in (SOURCES, OBJECTS, DISTFILES): Update for new files.
1585 * configure.in: (AC_REPLACE_FUNCS): Remove fnmatch.
1586 Add check for working fnmatch functions so that
1587 systems providing it don't incur the space overhead of linking
1588 with the version in lib. Cross compiling builds always use the
1591 * ls.c (decode_switches): Set SORT_TYPE. Before, ls -c was sorting
1592 by name, rather than change time. Reported by Ken Estes
1593 (m-ke0082@sparky.cs.nyu.edu).
1595 * du.c: (save_cwd, restore_cwd, free_cwd): Remove functions.
1596 New versions have been broken out into save-cwd.c.
1597 (du_files): Adapt to handle status code returned by new versions
1598 of save_cwd and restore_cwd.
1599 (count_entry): Likewise.
1601 * all programs (main): Include program name in --version output.
1603 * src/Makefile.in (cp.o): Depend on ../lib/obstack.h.
1605 * xstrtol.c, xstrtol.h: New files.
1606 * xstrtoul.c, xstrtoul.h: New files.
1607 * lib/Makefile.in (SOURCES, OBJECTS, DISTFILES): Update for new files.
1609 * chgrp.c (parse_group): Use xstrtoul instead of isnumber; the
1610 latter would silently overflow, accepting a group id larger
1612 (isnumber): Remove now-unused static function.
1613 (change_file_group) [MAXUID]: Give a more descriptive message
1614 when numeric group id is larger than MAXUID.
1616 Sat May 27 00:35:47 1995 Jim Meyering (meyering@comco.com)
1618 * system.h [!STDC_HEADERS && HAVE_MEMORY_H]: Include memory.h.
1619 Without this, SunOS doesn't get type for memchr.
1620 Reported by Kaveh Ghazi.
1622 Sun May 21 07:20:55 1995 Jim Meyering (meyering@comco.com)
1624 * all source files (usage): Include one- or two-line synopsis
1625 in --help output. From Karl Berry.
1627 * Makefile.in (.PHONY): TAGS is not a phony target. From Franc,ois.
1629 * All Makefile.in (install-exec, install-exec): New targets.
1632 * all Makefile.in (maintainer-clean): Renamed from realclean
1635 * euidaccess.c: No longer include safe-l?stat.h.
1636 * fsusage.c: Likewise.
1637 * isdir.c: Likewise.
1638 * makepath.c: Likewise.
1639 * mkdir.c: Likewise.
1640 * rename.c : Likewise.
1641 * rmdir.c: Likewise.
1643 Sat May 13 07:47:44 1995 Jim Meyering (meyering@comco.com)
1645 * lib/Makefile.in: Remove safe-l?stat.[ch]in and related rules.
1646 (maintainer-clean): Rename from realclean.
1647 (.PHONY): New dependencies.
1648 [.c.o]: Remove -I. since safe-l?stat.h are no longer used.
1650 * argmatch.c (argmatch): Include sys/types.h and declare length
1651 argument with type size_t.
1653 * backupfile.c: Remove unnecessary definitions for r?index.
1654 Update definitions for ISDIGIT.
1656 * basename.c (basename): Make argument const.
1658 * euidaccess.c (eaccess_stat): Make statp and path arguments const.
1659 (euidaccess): Make statp argument const. Use stat, not safe_stat.
1661 * fsusage.c (statfs): Use stat, not safe_stat.
1662 * isdir.c (isdir): Likewise.
1663 * mkdir.c (mkdir): Likewise.
1664 * rename.c (rename): Likewise.
1665 * rmdir.c (rmdir): Likewise.
1667 * userspec.c (parse_user_spec): Use strchr, not index.
1668 [!HAVE_STRING_H]: Define strchr in terms of index, not the
1671 * makepath.c: (make_path): Use stat, not SAFE_STAT.
1672 Use strchr, not index. Adjust defines accordingly.
1674 * makepath.h: Undef __P before defining.
1675 Guard definition with simpler `#if __STDC__'.
1677 * chgrp.c: Use stat (lstat), not safe_stat (safe_lstat).
1678 * chmod.c: Likewise.
1679 * chown.c: Likewise.
1680 * cp-hash.c: Likewise.
1684 * install.c: Likewise.
1688 * mvdir.c: Likewise.
1690 * touch.c: Likewise.
1692 Fri May 12 21:21:23 1995 Jim Meyering (meyering@comco.com)
1694 * mv.c (movefile): Remove a single trailing slash from destdir
1695 before concatenating with `/' and filename for `ok to overwrite...'
1696 message. Reported by Franc,ois Pinard.
1698 Mon May 1 23:03:30 1995 Jim Meyering (meyering@comco.com)
1700 * ls.c (quote_filename): Never return NULL when quoting filenames
1701 as C-strings. --quote-name was quoting only strings containing
1702 at least one C-quotable character. Reported by David J. MacKenzie.
1704 Mon Mar 20 21:44:40 1995 Jim Meyering (meyering@comco.com)
1706 * rename.c (rename): Compare src and dest inode numbers rather
1707 than src inode and dest dev when determining whether they refer
1708 to the same file. From marc@math.cornell.edu (Marc Parmet).
1710 * df.c (usage): Add ellipsis after `[OPTION]'. Use FILE,
1711 not deprecated PATH in text of help message. From Karl Berry.
1713 Fri Mar 10 21:13:23 1995 Jim Meyering (meyering@comco.com)
1715 * src/*.c: Update Copyright dates.
1717 * src/Makefile.in (uninstall): Handle case in which LIBPROGS is empty.
1718 Reported by Peter Smidt <smidt@cd.chalmers.se>.
1720 Thu Feb 23 22:29:11 1995 Jim Meyering (meyering@comco.com)
1722 * du.c (save_cwd) [!HAVE_FCHDIR]: Always initialize cwd->desc.
1723 (restore_cwd) [!HAVE_FCHDIR]: Remove unnecessary redefinition
1724 of fchdir. Both from Bruno Haible.
1726 Mon Feb 20 22:54:39 1995 Jim Meyering (meyering@comco.com)
1728 * du.c (save_cwd, restore_cwd): New functions.
1729 (main): Use them instead of open coded versions.
1730 (count_entry): Use them here instead of relying on chdir ("..") --
1731 but only when necessary. Before, with --dereference (-L),
1732 traversing a symlink caused failure because chdir ("..") didn't
1733 work as expected. Reported by Bruno Haible.
1735 Sat Feb 11 07:52:01 1995 Jim Meyering (meyering@comco.com)
1737 * configure.in (AC_REPLACE_FUNCS): Add memcmp, memcpy, and memset.
1738 (AC_CHECK_FUNCS): Add strchr and strrchr.
1739 * lib/Makefile.in (SOURCES): Add memcmp.c, memcpy.c, and memset.c.
1741 * system.h: Remove index/rindex and bcmp/bcopy/bzero references.
1742 Separate errno declaration from STDC_HEADERS.
1744 * dd.c (copy): Use memset, not bzero.
1745 (copy_simple): Use memcpy, not bcopy.
1747 * fsusage.c (get_fs_usage, statfs): Use safe_read, and safe_stat
1748 rather than bare read and stat. From Bruno Haible.
1750 * lib/Makefile.in (DISTFILES): Add error.h.
1752 * chgrp.c, chmod.c, chown.c, cp-hash.c, cp.c, df.c, du.c, install.c,
1753 ln.c, ls.c, mv.c, mvdir.c, rm.c, touch.c: Rename SAFE_STAT and
1754 SAFE_LSTAT to safe_stat and safe_lstat.
1756 * basename.c (basename): Use strrchr, not rindex.
1757 [!STDC_HEADERS && !HAVE_STRING_H]: Define strrchr to rindex.
1759 Tue Dec 27 07:07:53 1994 Jim Meyering (meyering@comco.com)
1761 * src/*.c: Include "error.h" rather than simply declaring
1763 * src/Makefile.in (OBJECTS): Depend on ../lib/error.h.
1765 * sync.c (main): Make error message accurate.
1767 * dd.c (skip): Use safe_read instead of read.
1768 (copy): Use full_write instead of write.
1771 Sat Dec 10 00:02:09 1994 Jim Meyering (meyering@comco.com)
1773 * Makefile.in (install): Install `install' first as transformed
1774 `ginstall,' then remove the target (transformed `install')
1775 and move GNU install into its place. Before, the installation
1776 process failed on systems (e.g. HPUX) that can't overwrite the
1777 executable associated with a running process.
1779 * system.h [!HAVE_STRING_H]: Define strchr to index and strrchr to
1780 rindex instead of the other way around.
1781 * rmdir.c (remove_parents): Use strr?chr instead of r?index.
1782 * mvdir.c (main): Likewise.
1783 * dd.c (parse_conversion, scan_args): Likewise.
1784 * cp.c (copy, make_path_private): Likewise.
1786 * system.h: Include <ctype.h> and define IS* macros.
1787 * touch.c: No longer include <ctype.h>.
1788 * chown.c: Likewise.
1789 * install.c: Likewise.
1790 [isascii, ISDIGIT]: Remove definitions.
1791 * chgrp.c: Likewise.
1794 Sun Dec 4 14:53:12 1994 Jim Meyering (meyering@comco.com)
1796 * doc/Makefile.in (DISTFILES): Add getdate.texi.
1798 Fri Nov 11 11:15:20 1994 Jim Meyering (meyering@comco.com)
1800 * mknod.c (my_strtol): New function.
1801 (main): Use it instead of atoi to convert argument strings to
1802 major and minor device numbers. Now, mknod diagnoses invalid
1803 device numbers and accepts octal and hexadecimal as well as
1804 decimal string arguments. Ralf Lammers
1805 <rlammers@physik.uni-osnabrueck.de> suggested that mknod accept
1806 hex device numbers for compatibility with HPUX's mknod program.
1808 * configure.in (AC_REPLACE_FUNCS): Add strtol.
1809 * lib/Makefile.in (SOURCES): Add strtol.c.
1811 Sun Nov 06 00:18:56 1994 Jim Meyering (meyering@comco.com)
1815 Sat Nov 05 15:20:07 1994 Jim Meyering (meyering@comco.com)
1817 * group-member.c: Use up-to-date version.
1818 * group-member.h: New file.
1819 * lib/Makefile.in (DISTFILES): Add group-member.h.
1820 (group-member.o): Depend on group-member.h.
1824 * src/Makefile.in (obstack.o): Depend on obstack.h.
1825 * makepath.c (makepath) [__STDC__]: Add an ANSI-style prototype.
1828 Fri Nov 04 17:27:55 1994 Jim Meyering (meyering@comco.com)
1832 Thu Nov 03 12:59:34 1994 Jim Meyering (meyering@comco.com)
1834 * makepath.h: New file.
1835 * makepath.c: Include it.
1836 Add an argument: PRESERVE_EXISTING.
1837 Declare char* arguments const.
1838 * install.c, mkdir.c: Update callers. Set it in mkdir.c so
1839 that `mkdir -p' ignores existing directories as POSIX mandates.
1840 Before, it would try to change owner and/or permissions of such
1841 directories. Christopher S. Arthur <csa@halcyon.com> reported
1842 the mkdir -p failure.
1843 * lib/Makefile.in (DISTFILES): Add it.
1844 (makepath.o): Depend on makepath.h.
1845 * src/Makefile.in (install.o, mkdir.o): Depend on makepath.h.
1846 * cp.c (make_path_private): Rename function from make_path to
1848 (do_copy): Update caller.
1850 * ls.c: Include <limits.h> before system.h because limits.h on
1851 some systems undefines PATH_MAX, whereas system.h includes pathmax.h
1852 which sets PATH_MAX. From Kaveh Ghazi.
1854 * euidaccess.c: Define S_IXUSR, S_IXGRP, and S_IXOTH in terms of
1855 S_IEXEC if they're not already defined. Reported by Kaveh Ghazi
1856 and Daniel Hagerty <hag@gnu.ai.mit.edu>.
1858 Tue Nov 01 06:18:20 1994 Jim Meyering (meyering@comco.com)
1860 * eaccess.c (euidaccess): Rename from eaccess to avoid conflict
1861 with like-named, different function in some C libraries.
1862 * euidaccess.c: Renamed from eaccess.c
1863 * lib/Makefile.in (SOURCES): Rename eaccess.c.
1864 Update dependency, too.
1865 * configure.in (AC_REPLACE_FUNCS): Check for euidaccess
1867 Mon Oct 31 08:02:31 1994 Jim Meyering (meyering@comco.com)
1869 * ls.c (dired_dump_obstack): Cast obstack_finish for non-ANSI
1870 compilers. Kaveh Ghazi reported the problem.
1872 Sat Oct 29 00:42:18 1994 Jim Meyering (meyering@comco.com)
1874 * fsusage.c (get_fs_usage) [STAT_STATFS4]: Define CONVERT_BLOCKS
1875 to adjust_blocks for _AIX. Was getting off-by-8x numbers.
1877 * df.c: Make --sync the default.
1878 Add new option: --no-sync.
1879 Remove short option alias for --sync.
1882 * ls.c [!STDC_HEADERS]: Declare free.
1883 (dired_dump_obstack): Cast pos[i] (of type size_t) to int so it
1884 matches %d in printf.
1885 (quote_filename): Fix typo in stpcpy call.
1887 Thu Oct 27 00:02:45 1994 Jim Meyering (meyering@comco.com)
1889 * fsusage.c: Include <sys/stat.h> before safe-stat.h.
1891 * cp.c (make_path): Don't change protections on existing directory.
1892 Reported by Andreas Schwab.
1894 * df.c: New option: --sync. No longer perform sync by default.
1895 Do it only when this option is used. Invoking sync can be very
1896 expensive, and it's not clear that doing so yields more up to date
1897 results. With encouragement/prodding from Paolo Zeppegno
1898 (paolo@to.sem.it), Nick Holloway, and Kaveh Ghazi.
1900 Thu Oct 20 00:52:59 1994 Jim Meyering (meyering@comco.com)
1902 * system.h [!S_IEXEC]: Define as S_IXUSR.
1904 * cp.h [S_IEXEC]: Remove definition. cp.c doesn't use it.
1906 * ls.c [!INT_MAX]: Define to 2^31 - 1 so subsequent #if test works.
1907 [S_IEXEC]: Remove definition. It's in system.h now.
1908 (usage): Sort options, but without segregating upper and lower case.
1910 * ls.c: Support for new option: --dired (-D).
1911 (dired, dired_pos, dired_obstack, subdired_obstack): Global variables.
1912 [PUTCHAR, FPUTS, FPUTS_LITERAL, PUSH_CURRENT_DIRED_POS]: New macros
1913 (dired_dump_obstack, quote_filename): New functions.
1914 (main): Initialize obstacks.
1915 (decode_switches): Recognize -D.
1916 (print_dir): Make arguments `const.'
1917 Record directory name indices in obstack.
1918 (print_dir, print_long_format, print_type_indicator): Use macros
1919 FPUTS, FPUTS_LITERAL, PUTCHAR for output.
1920 (print_long_format): Record file name indices in obstack.
1921 (print_name_with_quoting): Just call quote_filename and output the
1924 Mon Oct 17 23:56:36 1994 Jim Meyering (meyering@comco.com)
1926 * savedir.c: Indent CPP conditionals. Change some #ifdefs to #ifs.
1927 From Franc,ois Pinard.
1929 Mon Oct 17 10:27:26 1994 David J. MacKenzie (djm@duality.gnu.ai.mit.edu)
1931 * lib/dirname.c: Use strrchr, not rindex.
1933 Sun Oct 16 07:53:27 1994 Jim Meyering (meyering@comco.com)
1935 * system.h (S_IXUSR, S_IXGRP, S_IXOTH): Define these in terms of
1936 S_IEXEC if they're not already defined. From Kaveh Ghazi.
1938 * eaccess.c (eaccess_stat): Don't use NULL in comparison.
1939 Some systems don't define it except in stdio.h -- and including
1940 (yes, just including) stdio.h has been known to significantly
1941 increase object code size (though admittedly, that probably
1942 happens only on old systems). Kaveh Ghazi reported the problem.
1944 * src/Makfile.in lib/Makfile.in (DEFS): Remove -Dlint.
1945 It causes problems on broken pyramid system.
1948 Sat Oct 08 10:39:32 1994 Jim Meyering (meyering@comco.com)
1950 * mountlist.c: Always include <sys/param.h> if it exists.
1951 (fstype_to_string) [__NetBSD__]: Don't define this function.
1952 (read_filesystem_list) [__NetBSD__]: Use fsp's f_fstypename field,
1953 rather than fstype_to_string (f_type). With suggestions from
1954 Greg Hudson (ghudson@mit.edu).
1956 * lib/Makefile.in (OBJECTS): Remove eaccess.o.
1957 * configure.in (AC_REPLACE_FUNCS): Add `eaccess' here instead.
1958 The Hurd and Linux will have it.
1960 Fri Oct 07 20:27:48 1994 Jim Meyering (meyering@comco.com)
1962 * (doc): New subdirectory with texinfo documentation.
1963 * fileutils.texi: Thanks to Franc,ois Pinard and Karl Berry!
1965 * Makefile.in (All of them): Update from the ones in sh-utils.
1966 From now on, rules and definitions that are comon to the fileutils,
1967 textutils, and sh-utils will get ChangeLog entries only in the
1970 * Makefile.in (install, uninstall): Prepend ginstall->install
1971 mapping to standard $(transform) sed mapping.
1973 * chgrp.c, chmod.c, chown.c, install.c, mkdir.c, mkfifo.c, mknod.c,
1974 rm.c, rmdir.c (main): Diagnose wrong number of argument -- usually
1975 too few -- instead of just referring the user to the --help option.
1976 * mknod.c (main): Give diagnostics explaining specific problems
1977 instead of just the usage message. Reported by Karl Berry.
1979 * configure.in: Overhaul tests that determine how to get filesystem
1980 usage statistics. Now, most use AC_TRY_RUN and test for the precise
1981 feature that will be used. I know that that will make configuring a
1982 little harder for the people who cross compile, but if one of them
1983 is annoyed enough (or complains loudly enough :-) maybe someone will
1984 find the time to add tests to be used solely when cross compiling.
1985 * acconfig.h (STAT_READ): Rename to STAT_READ_FILSYS.
1986 * fsusage.c: Reorganize accordingly.
1988 Tue Oct 04 20:38:12 1994 Jim Meyering (meyering@comco.com)
1990 * chmod.c (main): Remove trailing slashes from file name arguments.
1991 Otherwise, `chmod 600 foo/; chmod 700 foo/' failed with the error
1992 `chmod: foo/: Permission denied' under Linux 1.1.51. Reported by
1993 Thomas Koenig (ig25@fg70.rz.uni-karlsruhe.de).
1994 * chown.c (main): Likewise.
1996 Thu Oct 2 23:03:32 1994 Jim Meyering (meyering@comco.com)
1998 * configure.in: Replace obsolete AC_DIR_HEADER with AC_HEADER_DIRENT
1999 and AC_FUNC_CLOSEDIR_VOID.
2001 * configure.in: Remove AC_SIZEOF_TYPE(int).
2002 ls.c: Instead of comparing SIZEOF_INT == 2, compare INT_MAX to 2^16.
2003 Suggestion from Roland McGrath.
2005 Sat Oct 01 21:23:27 1994 Jim Meyering (meyering@comco.com)
2007 * src/*.c: Remove CONFIG_BROKETS conditional.
2009 * {*/,}Makefile.in: Revamp to look much like those in sh-utils.
2010 * acconfig.h (HAVE_FTRUNCATE): Remove it.
2011 (ino_t, D_INO_IN_DIRENT): Add these.
2013 * configure.in: Convert for autoconf-2.0.
2014 * backupfile.c: Likewise.
2015 * savedir.c: Likewise.
2017 * mkdir.c, rmdir.c: Split the two functions from old mkdir.c into
2020 * chgrp.c [_POSIX_VERSION]: Test this instead of _POSIX_SOURCE.
2022 * ls.c: Don't use SIZEOF_INT because it would require configure
2023 to run a program -- then cross compilers would lose. Instead,
2024 compare INT_MAX to 64k-1 since all we need to know is whether
2025 an int is 2 bytes or larger.
2027 * rm.c [D_INO]: Use D_INO_IN_DIRENT rather than _POSIX_SOURCE in the
2028 test for how to define this macro.
2030 * system.h: Use HAVE_SYS_PARAM_H (not _POSIX_SOURCE) in test
2031 for whether to include <sys/param.h>.
2032 Likewise for <utime.h>.
2033 Update for DIRENT->HAVE_DIRENT_H etc. autoconf-2.0 changes.
2034 Ditto for VOID_CLOSEDIR->CLOSEDIR_VOID.
2036 * xgetcwd.c [!_POSIX_VERSION && !HAVE_GETCWD]: Remove
2037 !defined (_POSIX_VERSION) conjunct. From Kaveh Ghazi.
2039 Mon Sep 26 17:47:17 1994 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu)
2041 * lib/*.c: Remove CONFIG_BROKETS conditional.
2042 * lib/Makefile.in src/Makefile.in: Don't define it.
2044 Sun Sep 25 12:20:52 1994 Jim Meyering (meyering@comco.com)
2046 * ln.c (do_link): Give a diagnostic when trying to make a hard
2047 link to a nonexistent source file. Before, running the command
2048 `ln -i no-such-file existing-file' and responding `yes' to the
2049 prompt would both remove `existing-file' and fail to make a link.
2050 Karl Berry reported the problem.
2052 Sat Sep 10 04:34:34 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2054 * src/rm.c (remove_dir): Pass pathname to eaccess_stat.
2056 Fri Sep 2 13:54:13 1994 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
2058 * lib/Makefile.in (safe-lstat.c, safe-lstat.h, safe-stat.c,
2059 safe-stat.h): Use $(srcdir) to find source files.
2060 (.c.o): Use -I. to get safe-lstat.h and safe-stat.h from the
2062 * src/Makefile.in (incl): Add -I../lib to get lib/safe-lstat.h and
2063 lib/safe-stat.h from the build directory.
2065 Sat Aug 27 16:33:04 1994 Jim Meyering (meyering@comco.com)
2067 * ln.c (main): Accept new option --no-dereference (-n).
2068 (do_link): If the destination command line argument is a symlink
2069 to a directory and --no-dereference is given, use that as the
2070 destination instead of the file in the directory.
2071 * ln.1: Document this.
2073 * system.h [BROKEN_STAT_MACROS]: Remove unnecessary #ifdef's.
2074 From Francois Pinard.
2076 * isdir.c, makepath.c, rename.c [STAT_MACRO_BROKEN]: Remove
2079 Thu Aug 25 00:12:20 1994 Jim Meyering (meyering@comco.com)
2081 * dd.c (copy): Clean up and fix off-by-one error when freeing
2084 Thu Aug 18 11:41:16 1994 Jim Meyering (meyering@comco.com)
2086 * du.c (du_files) [HAVE_FCHDIR]: Use open (".", ...) and fchdir
2087 instead of xgetcwd and chdir. Otherwise, running du in a subdirectory
2088 of an unreadable directory would fail because xgetcwd fails.
2089 * configure.in (AC_HAVE_FUNCS): Add fchdir. AIX-2.3 (for one)
2092 * lib/Makefile.in (DISTFILES): Include getdate.c and posixtim.c
2093 so one doesn't need $(YACC).
2094 Add dependencies on safe-stat.h.
2096 Sat Jul 30 08:08:02 1994 Jim Meyering (meyering@comco.com)
2098 * du.c (main): Don't initialize automatic array CWD_ONLY in declaration.
2099 Some compilers don't allow that.
2101 * backupfile.c [DIRENT]: Remove spurious `|| defined(_POSIX_VERSION)'.
2104 * safe-xstat.c.in, safe-xstat.h.in: New files.
2105 * lib/Makefile.in: Add rules and dependencies for building safe-stat.c,
2106 safe-stat.h, safe-lstat.c, and safe-lstat.h from them.
2108 * eaccess.c (eaccess): Use SAFE_STAT instead of stat
2109 (and/or SAFE_LSTAT instead of lstat) to avoid unnecessary failure
2110 on systems for which stat (lstat) can return EINTR.
2111 * fsusage.c (statfs): Ditto.
2112 * isdir.c (isdir): Ditto.
2113 * makepath.c (make_path): Ditto.
2114 * rename.c (rename): Ditto.
2115 * chgrp.c (change_file_group): Ditto.
2116 * chmod.c (change_file_mode): Ditto.
2117 * chown.c (change_file_owner): Ditto.
2118 * cp-hash.c (remember_created): Ditto.
2119 * cp.c (main, do_copy): Ditto.
2120 * df.c (main, show_point): Ditto.
2121 * du.c (main, du_files, count_entry): Ditto.
2122 * install.c (copy_file): Ditto.
2123 * ln.c (main, do_link): Ditto.
2124 * ls.c (gobble_file): Ditto.
2125 * mv.c (is_real_dir, do_move): Ditto.
2126 * mvdir.c (main): Ditto.
2128 * touch.c (main, touch): Ditto.
2130 * Makefile.in (install): Tell GNU make that this target is .PHONY
2131 so it doesn't unnecessarily build ./install from install.sh.
2133 Tue Jul 26 11:33:53 1994 Jim Meyering (meyering@comco.com)
2135 * system.h: Remove `|| defined(_POSIX_VERSION)' from test that
2136 decides whether to include <fcntl.h>. From Francois Pinard.
2138 Sun Jul 03 08:44:00 1994 Jim Meyering (meyering@comco.com)
2140 * configure.in [AC_HAVE_HEADERS]: Add sys/param.h, for definition
2141 of HAVE_SYS_PARAM_H, now tested in pathmax.h.
2143 * makepath.c (make_path): Avoid spurious failure for file names
2144 that contain `/.' or `/..'. From Andreas Schwab
2145 <schwab@issan.informatik.uni-dortmund.de>.
2147 * dd.c (main): Handle SIGPIPE like other interrupts.
2148 From Scott L. Burson <gyro@zeta-soft.com>.
2150 * df.c (main, show_dev, usage): New option --print-type=fstype.
2151 From Arne Henrik Juul.
2154 Thu Jun 30 10:28:32 1994 Jim Meyering (meyering@comco.com)
2156 * ls.c (longdiff) [SIZEOF_INT == 2]: Choose which version of this
2157 macro to use based on SIZEOF_INT rather than obsolete INT_16_BITS.
2158 [INODE_DIGITS]: New macro.
2159 (print_long_format): Use it.
2160 (print_file_name_and_frills): Ditto.
2161 (length_of_file_name_and_frills): Ditto.
2162 (print_long_format): Add a couple casts to unsigned types.
2164 * ls.c: Change type name from `struct file' to `struct fileinfo'.
2165 David J. Mackenzie reported a name conflict on HPUX with the former.
2167 * dd.c (copy): Allocate an extra byte so I/O buffer begins on an
2168 even address. This because the ITOS 3000WS running SEIUX 3.1
2169 (a descendant of MIPS RISC/OS 4.x) has SCSI device drivers that
2170 require the I/O buffer begin on an even address. From
2171 Tilman Schmidt <tilman@gb1.sema.de>.
2173 Mon Jun 20 23:45:34 1994 Jim Meyering (meyering@comco.com)
2175 * configure.in: Use AC_PROGRAM_PATH to get values for LN, MV, RM.
2176 (AC_HAVE_FUNCS): Add getgroups.
2177 (AC_OUTPUT): Remove touch command.
2179 * eaccess.c (in_group): Remove static function. Use group_member
2181 (eaccess_stat, eaccess): Change calling sequence to take filename.
2182 Save UID and GID and use access if they are the same as effective IDs.
2183 (main) [TEST]: Test driver.
2184 * cp.c (copy): Update callers.
2185 * mv.c (do_move): Ditto.
2186 * rm.c (remove_file): Ditto.
2188 * cp.c (copy): With --preserve (-p) for non-root users, don't even
2189 try to preserve file ownership in chown call. Otherwise, on systems
2190 with the mis-feature allowing non-root users to change file ownership,
2191 the subsequent chmod would fail.
2193 * userspec.c (parse_user_spec): Rewrite. Be careful to free all
2194 allocated memory upon error.
2195 (main) [TEST]: Test driver.
2197 * src/Makefile.in (uninstall): Delete $(LIBPROGS) one at a time
2198 instead of like `rm -f $(libdir)/$(LIBPROGS)'. The old way loses
2199 when LIBPROGS is empty and $(libdir) is a non-directory, and would
2200 lose if LIBPROGS could ever have more than one word.
2201 * (RM, LN, MV, INSTALL): Use values determined by ./configure instead
2202 of the newly built binaries so people can build with a cross
2203 compiler and still run `make (un)install.'
2205 * chgrp.c (change_file_group): Give a better error message when
2206 failing because the invoking user does not belong to the requested
2207 group. This affects systems on which chown sets errno to EPERM
2208 for both `inaccessible file' and `user not a member of the specified
2209 group' errors. Before, `chgrp bin file-I-own' would give the
2210 misleading and incorrect diagnostic `chgrp: file-I-own: Not owner'.
2211 Now it reports `you are not a member of group `bin''.
2212 Thomas A Peterson (tap@src.honeywell.com) reported this weakness.
2214 * long-options.c: Move from src/ to lib/.
2215 * long-options.h: Ditto.
2216 * src/Makefile.in: Remove references to long-options.[ch].
2217 * lib/Makefile.in (SOURCES, OBJECTS): Add long-options.[co].
2219 Sat Jun 18 15:45:34 1994 Jim Meyering (meyering@comco.com)
2221 * du.c (count_entry): Print "/" instead of zero-length string.
2222 From Kjetil Torgrim Homme <kjetilho@ifi.uio.no>.
2224 Sun May 29 13:43:50 1994 Jim Meyering (meyering@comco.com)
2226 * group-member.c: New file.
2227 * lib/Makefile.in (SOURCES, OBJECTS): Add group-member.[co].
2230 * Makefile.in (PROGS): Add sync.
2231 (SOURCES): Add sync.c
2232 * src/Makefile.in: Add rules and dependencies for sync.
2234 * configure.in: Use AC_SET_MAKE and AC_PROG_INSTALL.
2235 If AC_FUNC_CHECK doesn't find getgroups, add -lbsd if possible.
2236 This was reported by Tilman Schmidt <ts@gb1.sema.de>
2237 to be necessary on an ITOS 3000WS running SEIUX 3.1.
2239 * Makefile.in: Edit MAKE assignments into @SET_MAKE@.
2240 (Makefile): Remove dependencies on */Makefile.in.
2241 Change the rule so running config.status creates only Makefile.
2242 (stamp-config): Have config.status generate only config.h.
2244 * {lib,man,src}/Makefile.in (Makefile): Add single dependency on
2245 Makefile.in and rule to make config.status create only Makefile.
2247 * system.h: Move from lib to src.
2248 * src/Makefile.in (DISTFILES): Add system.h.
2249 * lib/Makefile.in (DISTFILES): Remove system.h.
2251 Mon Apr 18 19:54:24 1994 Jim Meyering (meyering@comco.com)
2253 * documentation: Change uses of `pathname' and `path' as per
2256 Fri Apr 15 20:41:15 1994 Jim Meyering (meyering@comco.com)
2258 * mv.c (main): Give a reason for failure when given fewer than
2259 two non-option arguments, rather than just the pointer to --help.
2260 * ln.c (main): Ditto, but for no non-option arguments.
2262 * configure.in: Update for autoconf-1.8.
2263 Use AC_CHECKING instead of echo.
2264 Use AC_SIZEOF_TYPE instead of obsolete AC_INT_16_BITS.
2266 Wed Apr 13 11:18:19 1994 Jim Meyering (meyering@comco.com)
2268 * cp.c (copy_reg): Correct off-by-DEV_BSIZE error in test for
2269 whether a file has holes. From Michael Bushnell <mib@gnu.ai.mit.edu>.
2271 Wed Mar 30 08:53:21 1994 Jim Meyering (meyering@comco.com)
2273 * configure.in: Use AC_SET_MAKE.
2274 * Makefile.in: Edit MAKE assignments into @SET_MAKE@.
2276 Mon Mar 14 11:01:09 1994 Jim Meyering (meyering@comco.com)
2278 * fsusage.c (adjust_blocks): Return -1 when FROMSIZE is non-positive.
2279 Suggestion from Andries.Brouwer@cwi.nl. He reported that df failed
2280 with divide by zero when trying to process an entry for an nfs file
2281 system mounted over a SLIP line after the SLIP connection had been
2283 [convert_blocks]: Rename macro to CONVERT_BLOCKS.
2285 Sat Jan 29 13:24:07 1994 Jim Meyering (meyering@comco.com)
2287 * du.c (main): Call du_files (with ".") when there are no
2288 non-option arguments rather than treating that as a special case.
2289 (du_files): Ignore return value from count_entry.
2290 (count_entry): Accumulate file sizes into new global sum used for
2291 the -c option; the return value is unchanged and is still used
2292 by recursive calls. Now, using -S and -c together works.
2293 Add parentheses to clarify precedence.
2295 Fri Jan 28 11:02:21 1994 Jim Meyering (meyering@comco.com)
2297 * configure.in: Don't set LDFLAGS since linking now uses both
2300 Thu Jan 13 17:27:38 1994 Jim Meyering (meyering@comco.com)
2302 * src/Makefile.in: Change all link commands to use both $(CFLAGS)
2305 Mon Jan 10 01:20:38 1994 Jim Meyering (meyering@comco.com)
2307 * man/Makefile.in (manprefix): Use binprefix as the default.
2309 Thu Dec 30 23:11:10 1993 Jim Meyering (meyering@comco.com)
2311 * The following changes are necessary to avoid spurious failures
2312 when a read or write system call is interrupted (e.g. by SIGTSTP).
2313 A POSIX implementation of those system calls may either return
2314 -1 and set errno to EINTR or return a positive value indicating
2315 that a partial read or write has completed successfully. On Linux
2316 0.99.14, interrupted read and write system calls return -1/EINTR.
2317 Thanks to Bruno Haible <haible@ma2s2.mathematik.uni-karlsruhe.de>
2318 for pointing this out.
2320 * full-write.c, safe-read.c: New files.
2322 * cp.c (copy_reg): Use full_write instead of write. Handle
2323 errno == EINTR (instead of failing) after read system call.
2324 * dd.c (skip): Handle errno == EINTR (instead of failing) after
2326 (copy): Use safe_read instead of read.
2327 * install.c (copy_file): Use safe_read and full_write instead of
2328 read and write system calls.
2329 * mv.c (copy_reg): Ditto.
2330 * touch.c (utime_now): Ditto.
2332 Tue Dec 28 15:49:32 1993 Jim Meyering (meyering@comco.com)
2334 * install.sh: New file.
2335 Makefile.in [DISTFILES]: Add it.
2337 Sat Dec 18 01:12:24 1993 Jim Meyering (meyering@comco.com)
2339 * configure.in (AC_OUTPUT): Put `touch stamp-config' in second arg
2340 so it goes in config.status. This eliminates unnecessary second run
2343 Thu Nov 18 00:03:24 1993 Jim Meyering (meyering@comco.com)
2345 * configure.in [STAT_STATFS2_FSIZE]: Fix test (that had obsolete
2346 and now-broken use of AC_HEADER_EGREP) so that this flag is set
2349 Mon Oct 25 20:27:00 1993 Jim Meyering (meyering@comco.com)
2351 * cp-aux.c, df.c, install.c, ln.c, ls.c, mkdir.c, mkfifo.c,
2352 mknod.c, mv.c, touch.c: Use the preferred `--longopt=arg'
2353 syntax in --help message rather than `--longopt arg'.
2354 From Francois Pinard.
2356 Tue Oct 19 07:02:18 1993 Jim Meyering (meyering@comco.com)
2360 Mon Oct 18 00:13:40 1993 Jim Meyering (meyering@comco.com)
2362 * src/*.c (usage): Now the usage message is simply
2363 "Try `%s --help' for more information. From Francois Pinard.
2365 * src/Makefile.in [LIBPROGS]: Depend on ../lib/libfu.a and
2366 version.o. From Francois Pinard.
2368 * src/*.c (usage): Remove blank line before "Try `%s --help..."
2371 Sun Oct 17 00:19:58 1993 Jim Meyering (meyering@comco.com)
2373 * fileblocks.c [!NINDIR]: Define BSIZE only if it's not already
2376 * ls.c (print_long_format): Cast printf args major and minor
2377 so they'll have types matching %u format even on systems
2378 where those macros have signed type.
2380 Sat Oct 16 00:25:42 1993 Jim Meyering (meyering@comco.com)
2382 * chmod.c (change_file_mode): Reapply Oct 6 change for symlinks.
2383 Somehow it got removed from working sources.
2385 * lib/Makefile.in [OBJECTS]: Change dependency to ../config.h so
2386 it works when building in a subdirectory. From Rick Sladkey
2387 (jrs@world.std.com).
2389 Wed Oct 13 19:43:47 1993 Jim Meyering (meyering@comco.com)
2391 * cp.c (copy), ls.c (get_link_name): Complete Aug 27 change so
2392 that we use PATH_MAX + 1 rather than sizeof(char*) as size of
2393 buffer in readlink call. This was causing spurious errors.
2395 * cp.c (copy), mv.c (do_move), rm.c (remove_file, remove_dir):
2396 Cast to `unsigned int' stat->st_mode printf arguments corresponding
2397 to %o formats to avoid warnings.
2399 * lib/Makefile.in [DEFS]: Remove -DMVDIR. Add -DCONFIG_BROKETS.
2400 (rename.o): Add a specific rule. Use -DMVDIR=... here instead.
2402 * src/Makefile.in [DEFS]: Add -DCONFIG_BROKETS.
2403 (distclean): Don't delete dir.c and vdir.c; they aren't
2406 * lib/Makefile.in: Make all .o files depend on $(srcdir)/../config.h.
2407 * src/Makefile.in: Ditto.
2409 Sun Oct 10 13:38:54 1993 Jim Meyering (meyering@comco.com)
2411 * src/Makefile.in (dist): Depend on $(DISTFILES).
2413 * src/Makefile.in [libdir, LIBPROGS]: Define them.
2414 From Francois Pinard.
2416 * posixtm.y: [HAVE_CONFIG_H, CONFIG_BROKETS]: Include <config.h>
2417 or "config.h". From Francois Pinard.
2419 * makepath.c: [HAVE_CONFIG_H, CONFIG_BROKETS]: Remove the duplicate
2420 #ifdef block following the alloca #ifdefs. From Francois Pinard.
2422 * df.c: Remove unnecessary dcl of strstr.
2424 Sat Oct 9 13:30:28 1993 Jim Meyering (meyering@comco.com)
2426 * configure.in [STATFS_OSF1]: Change name to STAT_STATFS3_OSF1
2427 to be consistent with names of the other STAT_* macros.
2428 * acconfig.h: Ditto.
2431 * acconfig.h: Add comments.
2432 * Makefile.in: Remove comments about -D flags that could be added
2433 to DEFS; now (using autoheader) those comments end up in config.h.
2435 * Makefile.in (configure, config.h.in): Warn that they may not be
2436 up to date. Don't touch them.
2438 * ls.c (usage): Split long usage string between two fprintf
2439 statements to avoid default limit of SGI's cc on string length.
2441 * Makefile.in, src/Makefile.in [PROGS]: Alphabetize.
2443 * configure.in: Remove AC_UNISTD_H; add unistd.h to AC_HAVE_HEADERS.
2445 Thu Oct 07 12:57:10 1993 Jim Meyering (meyering@comco.com)
2447 * chgrp.c, chmod.c, chown.c, cp-aux.c, cp.c, dd.c, df.c, du.c,
2448 install.c, ln.c, ls.c, mkdir.c, mkfifo.c, mknod.c, mv.c, mvdir.c,
2449 rm.c, rmdir.c, touch.c (usage): Using --help gets long well-
2450 formatted help. Now --help writes to stdout and exits successfully.
2451 From Francois Pinard <pinard@iro.umontreal.ca>.
2453 * lib/Makefile.in [libdir]: Make sure it's defined.
2455 * posixtm.y [!__GNUC__ && !HAVE_ALLOCA_H]: Declare alloca as void*
2456 rather than char*. The latter conflicts with a dcl from bison.simple.
2458 Wed Oct 06 18:22:00 1993 Jim Meyering (meyering@comco.com)
2460 * chmod.c (change_file_mode): Add an argument to control how symbolic
2462 (main, change_dir_mode): Reflect changed calling sequence.
2463 Now symlinks listed on the command line are processed (they
2464 were ignored before); the permissions of the dereferenced files are
2465 changed. Symlinks encountered in recursive traversals are still
2466 ignored. This makes GNU chmod act more like e.g. Sun's.
2467 From Nick Holloway <alfie@dcs.warwick.ac.uk>.
2468 * chmod.1: Document it.
2470 Tue Oct 05 14:52:02 1993 Jim Meyering (meyering@comco.com)
2472 * configure.in: Add AC_STAT_MACROS_BROKEN.
2474 * isdir.c, makepath.c, rename.c, system.h [STAT_MACROS_BROKEN]:
2477 * install.c (install_file_in_dir): Use stpcpy instead of slow sprintf.
2479 * argmatch.c, backupfile.c, basename.c, dirname.c, eaccess.c,
2480 fileblocks.c, fsusage.c, getversion.c, idcache.c, isdir.c,
2481 makepath.c, mountlist.c, rename.c, savedir.c, stripslash.c,
2482 userspec.c, xgetcwd.c, xstrdup.c, yesno.c, [HAVE_CONFIG_H,
2483 CONFIG_BROKETS]: Include <config.h> or "config.h".
2485 * lib/Makefile.in, src/Makefile.in [.c.o]: Put -I.. before
2486 -I$(srcdir) so <config.h> will get the right file.
2488 * chgrp.c, chmod.c, chown.c, cp-aux.c, cp-hash.c, cp.c, dd.c,
2489 df.c, du.c, install.c, ln.c, ls.c, mkdir.c, mkfifo.c, mknod.c,
2490 mv.c, mvdir.c, rm.c, rmdir.c, touch.c, version.c [HAVE_CONFIG_H,
2491 CONFIG_BROKETS]: Include <config.h> or "config.h".
2493 * configure.in [AC_CONFIG_HEADER]: Use it.
2495 * configure.in (rename.o) [MVDIR definition]: Remove it.
2496 * lib/Makefile.in [DEFS]: Put it here instead.
2498 * config.h.in, acconfig.h: New files
2499 * Makefile [DISTFILES]: Add them.
2500 (config.h.in): Add a rule to warn if it may need to be rebuilt.
2502 * lib/Makefile [YACC]: Get definition from @YACC@.
2504 * system.h: Include <unistd.h>. This is needed for the definition
2507 Thu Sep 9 08:52:10 1993 Jim Meyering (meyering@comco.com)
2509 * src/*.c: Print version on standard output, not stderr.
2511 Fri Aug 27 23:53:50 1993 Jim Meyering (meyering@comco.com)
2513 * cp.c (copy), ls.c (get_link_name): Don't use PATH_MAX as array
2514 length in declarations because on some systems it gets defined
2515 to the function pathconf. Use dynamic allocation instead.
2517 * fsusage.c (adjust_blocks): Use `1' instead of `+1'. Many
2518 compilers don't parse the latter. From Kaveh R. Ghazi.
2520 Thu Aug 26 22:26:09 1993 Jim Meyering (meyering@comco.com)
2522 * ls.c (print_long_format, print_file_name_and_frills): Cast inode
2523 number to unsigned long and print it with %lu to avoid warnings from
2524 gcc -Wformat because the size and type of ino_t are system dependent.
2526 * cp.c (do_copy): Plug a memory leak with --parents.
2528 * ln.c (main): Like mv and cp, convert `ln x y/' to ln x y/x
2529 when a is not a directory.
2530 [PATH_BASENAME_CONCAT]: New macro.
2531 (do_link): Use it here, too.
2533 * ls.c (sort_files): Add `default: abort();' clause to switch stmts.
2535 * cp.c (do_copy): Don't remove trailing slashes from source.
2537 Wed Aug 25 21:40:00 1993 Jim Meyering (meyering@comco.com)
2539 * cp.c: Add --parents as synonym for --path. Change --path to
2540 --parents in comments. --path is deprecated.
2542 * rm.c (clear_directory): Fix incorrect test for determining when
2543 to reallocate buffer. Thanks to Ric Anderson <ric@CS.Arizona.EDU>.
2545 Fri Aug 13 17:19:52 1993 Jim Meyering (meyering@comco.com)
2547 * fsusage (adjust_blocks): Round away from zero -- this matters
2548 when computing the negative free-block count for disks that are
2549 more than 100% full.
2551 * mv.c (movefile): Use nested calls to stpcpy instead of sprintf.
2552 (is_real_dir): New function.
2553 (movefile): In addition to when dest is a directory, if dest has
2554 a trailing `/' and source is not a directory, presume the target
2555 is dest/`basename source`. This converts `mv x y/' to `mv x y/x'
2556 when x is not a directory. This change means that the command
2557 `mv any file/' will now fail rather than performing the move.
2559 * cp.c (do_copy): Similarly, convert `cp x y/' to cp x y/x when
2560 x is not a directory.
2562 Wed Aug 4 17:43:18 1993 Jim Meyering (meyering@comco.com)
2564 * ls.c (get_link_name): Don't ever use the stat field st_size as a
2565 buffer size. Too many systems don't set it properly for mount points.
2566 Instead, use a fixed-length buffer. From Michael Joosten
2567 <joost@ori.CAdlab.DE>.
2568 * cp.c (copy): Ditto.
2570 Mon Jul 19 17:39:01 1993 Jim Meyering (meyering@comco.com)
2572 * backupfile.c (concat): Temporary STR1_LENGTH should have type `int'
2575 Fri Jul 16 22:00:16 1993 David J. MacKenzie (djm@goldman.gnu.ai.mit.edu)
2577 * dd.c (print_stats): Change message from "truncated blocks"
2578 to "truncated records" for final POSIX.2 spec.
2580 Fri Jun 25 17:18:15 1993 Jim Meyering (meyering@comco.com)
2582 * mkdir.c, rmdir.c: Change --path long option to --parents to avoid
2583 confusion with search-path semantics of --path as an option to other
2584 programs. --path will still work, but is no longer documented.
2586 Tue Jun 8 00:46:26 1993 Jim Meyering (meyering@comco.com)
2588 * dd.c (parse_integer): Also accept `c' multiplier for consistency
2589 with find's -size option.
2591 Thu May 27 00:03:51 1993 Jim Meyering (meyering@comco.com)
2595 * configure.in (STAT_OSF1): Reference the statfs f_fsize member
2596 so that configure defines STAT_OSF1 only if there is such a member.
2597 Without such a reference, a Pyramid MIServer running OSx 5.1
2598 improperly defined STAT_OSF1 instead of the one it needed:
2601 Wed May 26 00:57:46 1993 Jim Meyering (meyering@comco.com)
2603 * ls.h, ls-ls.c ls-dir.c, ls-vdir.c: New files that define or
2604 simply set the new global variable ls_mode. ls_mode defines whether
2605 the executable built from ls.o should act like ls, dir, or vdir.
2606 * ls.c (decode_switches): Use the variable instead of #ifdefs.
2607 This is modelled after the approach used in GNU binutils 2.x for
2608 ar and ranlib. Here we avoid two redundant compilations.
2610 * install.c (change_attributes, copy_file, install_file_in_file):
2611 Don't call chown if we can efficiently determine that doing so is
2612 unnecessary. On some systems, calls to chown (even with your own
2613 uid and gid) fail unless made by root. On such systems install
2614 got spurious failures.
2616 Sat May 22 02:13:12 1993 Jim Meyering (meyering@comco.com)
2620 Fri May 21 18:42:27 1993 Jim Meyering (meyering@comco.com)
2622 * rename.c (rename): Be careful not to unlink `from' if it happens
2623 to be equal to `to' or (on filesystems that silently truncate
2624 filenames after 14 characters) if `from' and `to' share the
2625 significant characters. From Bruno Haible
2626 <haible@ma2s2.mathematik.uni-karlsruhe.de>.
2628 * mountlist.c, fsusage.c: Make these work under m88k DolphinOS.
2629 From Kjetil Wiekhorst J|rgensen <jorgens@pvv.unit.no>.
2631 Tue May 18 23:49:26 1993 Jim Meyering (meyering@comco.com)
2633 * mkinstalldirs: New file.
2634 * Makefile.in (installdirs): Use it.
2636 Sat May 15 01:20:26 1993 Jim Meyering (meyering@comco.com)
2638 * ln.c (do_link): Make `ln -s dir_pathname .' work when the
2639 pathname has a trailing slash.
2641 Fri May 14 23:45:52 1993 Jim Meyering (meyering@comco.com)
2643 * all source: With --version, print version and exit immediately.
2645 Wed May 12 20:48:55 1993 Jim Meyering (meyering@comco.com)
2647 * configure.in: Add check for the -ldgc library that is required
2648 for getmntent on m88k DGUX-5.4 systems.
2650 * Makefile.in (installdirs): New rules for creating installation
2651 directories. (install): Depend on it.
2653 Sat May 8 11:31:14 1993 Jim Meyering (meyering@comco.com)
2655 * lib/Makefile.in (dist): Use `cp -p' instead of just `cp'
2658 Thu May 6 22:45:25 1993 Jim Meyering (meyering@comco.com)
2660 * makepath.c: Use explicit dcl of errno only if !STDC_HEADERS.
2661 Some systems have <errno.h> but don't declare errno.
2662 From Kaveh R. Ghazi <ghazi@caip.rutgers.edu>.
2664 * getdate.y: Test TIME_WITH_SYS_TIME, not TIME_AND_SYS_TIME.
2666 Wed May 5 00:21:12 1993 Jim Meyering (meyering@comco.com)
2668 * configure.in: Add AC_TIME_WITH_SYS_TIME.
2669 * getdate.y: Use it (this is a version local to fileutils).
2671 Tue May 4 20:25:41 1993 Jim Meyering (meyering@comco.com)
2673 * du.c (count_entry): Give an error and exit if chdir ("..") fails.
2674 From Bruce Evans <bde@runx.oz.AU>.
2676 * eaccess (eaccess_stat): Cast NGROUPS_MAX to appropriate types.
2677 From Bruce Evans <bde@runx.oz.AU>.
2679 Mon May 3 22:09:24 1993 Jim Meyering (meyering@comco.com)
2681 * configure.in: Add AC_GETGROUPS_T.
2682 * eaccess.c: Don't define GETGROUPS_T. Now configure does it.
2684 Sun May 2 09:18:53 1993 Jim Meyering (meyering@comco.com)
2686 * configure.in: Check for libypsec.a on Dolphin M88K machines.
2687 This can result in significant speedup for programs that access
2688 YP information. From Kjetil Wiekhorst J{\o}rgensen
2689 <jorgens@pvv.unit.no>.
2691 Fri Apr 30 02:21:48 1993 Jim Meyering (meyering@comco.com)
2693 * ls.c (main): Make `-f' work like on standard Unix ls, instead
2694 of as a short equivalent of --full-time.
2695 * ls.1: Document it.
2697 Thu Apr 29 00:46:46 1993 Jim Meyering (meyering@comco.com)
2699 * src/Makefile.in [dir.o, vdir.o]: Make ordering of CFLAGS etc
2700 in compilation rules consistent with that in .c.o rule.
2702 * Makefile.in (dist): Depend on Makefile so that changes to
2703 Makefile.in (like adding new files to DISTRIB) are reflected
2704 in the new distribution.
2706 Tue Apr 27 21:35:11 1993 Jim Meyering (meyering@comco.com)
2708 * configure.in: Remove unnecessary AC_PROG_INSTALL.
2710 Fri Apr 23 23:39:16 1993 Jim Meyering (meyering@comco.com)
2712 * {lib,src}/Makefile.in [.c.o]: Make CPPFLAGS and CFLAGS follow
2713 other options so users can use them to override DEFS.
2715 * lib/mktime.c: Use new version from glibc instead of one from
2716 libc-subst. `touch' built with the latter didn't set proper
2717 time unless given a specific --date option.
2719 Thu Apr 22 00:22:25 1993 Jim Meyering (meyering@comco.com)
2721 * makepath.c: Decouple inclusion of errno.h from definition of
2722 STDC_HEADERS; many systems have errno.h, yet shouldn't define
2724 * makepath.c (make_path): Add EPERM clause only if both AFS and
2726 * configure.in: Test for errno.h header file.
2728 Mon Apr 19 11:21:14 1993 Jim Meyering (meyering@comco.com)
2732 * ls.c, touch.c: Don't include time.h explicitly -- it's included
2733 by system.h. From Franc,ois Pinard.
2735 * posixtm.y: Use TM_IN_SYS_TIME.
2737 * backupfile.c [index, rindex]: Don't redefine them.
2739 * system.h [alloca]: Don't redefine it.
2741 * configure.in: Check for sys/time.h; getdate.y needs it for
2742 structs timeval and timezone on some systems.
2744 Sun Apr 18 22:40:19 1993 David J. MacKenzie (djm@kropotkin.gnu.ai.mit.edu)
2746 * ls.c: Include fnmatch.h after system.h, so we get our
2747 definitions of FNM_*, not those from unistd.h.
2749 * mountlist.c [MOUNTED_GETMNTINFO]: Add #ifdef around MOUNT_PC.
2751 * configure.in: Fix test for 4.4BSD statfs to not grep for a
2752 macro in cpp output.
2754 Sun Apr 18 02:35:36 1993 Jim Meyering (meyering@comco.com)
2756 * configure.in: Check for gettimeofday.
2757 Check for `struct tm'.
2758 Change MVDIR definition so it works with new AC_DEFINE.
2760 * system.h: Remove last vestiges of USG; instead, use specific
2761 test for TM_IN_SYS_TIME to determine whether to include time.h
2764 * src/Makefile.in (install): Rewrite the test for whether to install
2765 mvdir so that it doesn't cause gratuitous failures with broken shells.
2766 Split long rule so the pieces fit in 80-column lines.
2768 Thu Apr 15 23:44:01 1993 Jim Meyering (meyering@comco.com)
2770 * lib/Makefile.in (posixtm.c): Add dependency on getdate.c to enforce
2771 sequential invocations of YACC.
2772 * (posixtm.c, getdate.c): Remove use of `bison -o' and associated
2773 conditional rename commands -- not needed since the parser generators
2774 won't be run in parallel; now bison (when used) is always invoked
2777 Tue Apr 13 09:18:18 1993 Jim Meyering (meyering@comco.com)
2779 * configure.in: Find a parser generator.
2780 * Makefile.in [MDEFINES]: Add YACC to the list of variables passed to
2782 * lib/Makefile.in (posixtm.c, getdate.c): Try first to build with
2783 `bison -o' -- for parallel makes. If that fails, use $(YACC).
2785 * posixtm.y [HAVE_MEMCPY && !HAVE_BCOPY]: Define bcopy in terms
2786 of memcpy for old versions of bison that generate parsers that
2789 * configure.in: Add tests for memcpy and bcopy.
2791 Mon Apr 12 23:02:14 1993 Jim Meyering (meyering@comco.com)
2793 * configure.in (mounted, space): Add filesystem checks for DEC Alpha
2794 running OSF/1 to complement new code in mountlist.c and fsusage.c.
2796 * lib/mountlist.c (read_filesystem_list) [MOUNTED_GETFSSTAT]: Add code
2797 to do it the OSF/1 way on a DEC alpha.
2798 From Brian Fox (bfox@tinker.crseo.ucsb.edu).
2800 * lib/fsusage.c (get_fs_usage) [STATFS_OSF1]: Add code to call OSF/1's
2801 variant of statfs. From Brian Fox (bfox@tinker.crseo.ucsb.edu).
2803 Sun Apr 11 20:29:31 1993 Jim Meyering (meyering@comco.com)
2805 * df.c (main, show_dev): Don't list dummy (automounter) filesystems
2806 unless they're explicitly listed on the command line or if the -a
2809 Fri Apr 9 11:40:48 1993 Jim Meyering (meyering@comco.com)
2811 * src/Makefile.in [.c.o]: Put CFLAGS after include directives.
2813 Wed Apr 7 23:54:48 1993 Jim Meyering (meyering@comco.com)
2815 * eaccess.c: Undefine NGROUPS_MAX before redefining it.
2816 From ghazi@caip.rutgers.edu (Kaveh R. Ghazi).
2818 Mon Apr 5 20:14:17 1993 Jim Meyering (meyering@comco.com)
2820 * chgrp.c, chmod.c, chown.c, install.c, ls.c, mkfifo.c, mknod.c,
2821 touch.c: Add `case 0: break;' for long-only options help and version.
2823 Sun Apr 4 09:38:00 1993 Jim Meyering (meyering@comco.com)
2825 * src/*.c (usage): Mention --help and --version.
2826 (main): Handle flag_help and flag_version before checking for
2829 * cp.c (copy): Declare to be static.
2831 * cp.c (copy, make_path, re_protect): Explicitly cast alloca return
2833 * ln.c (do_link): Ditto
2834 * mv.c (do_move): Ditto
2835 * makepath.c (make_path): Ditto
2837 * lib/eaccess.c (eaccess_stat): Cast to unsigned the value to
2838 be right-shifted to avoid ANSI vs K&R semantic ambiguity.
2840 * src/Makefile.in (incl): New variable.
2842 * chown.c (main): Explicitly cast -1 to [ug]id_t to avoid compiler
2845 * cp.h: Remove unneeded extern dcl of exit_status.
2847 * basename.c [rindex]: Don't redefine it.
2848 * system.h [rindex, incl, bcopy, bzero]: Ditto.
2849 * userspec.c [index]: Ditto.
2851 * Makefile.in [CFLAGS, LDFLAGS]: Don't hard-code these; get their
2852 definitions from configure.
2853 * configure.in [CFLAGS, LDFLAGS]: Assign reasonable defaults.
2855 Sat Apr 3 18:17:23 1993 Jim Meyering (meyering@comco.com)
2857 * Makefile.in [Makefile]: Add dependencies and a rule to remake it.
2858 [targets that cd then run make in subdirectories]: Don't depend
2859 on `cd ..'; use a subshell instead.
2860 [info, install-info, dvi, check, installcheck]: New targets but no
2861 rules; comply with standards.
2863 * src/Makefile.in [.c.o, dir.o, vdir.o]: Put CFLAGS after DEFS and
2864 CPPFLAGS per standards.texi.
2865 Use automatically generated dependencies.
2867 * mvdir.c (main): Remove dcl of unused variable.
2869 Thu Apr 1 18:05:48 1993 Jim Meyering (meyering@comco.com)
2871 * install.c, chgrp.c, dd.c [isascii]: Undefine before redefining.
2873 * ls.c: Move some dcls so they appear before first function.
2875 * all programs: Add --help and --version options.
2876 * version.c: Remove `Version: ' and newlines from version string.
2878 * dd.c: Convert usage to take no arguments.
2879 * lib/Makefile.in [DISTFILES]: Add version.h.
2881 Wed Mar 31 22:03:28 1993 Jim Meyering (meyering@comco.com)
2883 * configure.in [MVDIR]: Don't quote right hand side.
2884 * backupfile.c, chgrp.c, install.c: Define isascii macro to be 1
2885 also if STDC_HEADERS.
2887 Tue Mar 30 17:42:11 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2889 * ls.c: Add -G,--no-group option to inhibit display of group
2891 * ls.1: Document it.
2893 Mon Mar 29 22:22:40 1993 Jim Meyering (meyering@comco.com)
2895 * system.h [ST_NBLOCKS]: Check also for __hpux. From Henrik B}kman
2896 <Henrik.Bakman@csd.uu.se>.
2898 Sun Mar 28 21:22:30 1993 Jim Meyering (meyering@comco.com)
2900 * Makefile.in (dist): Use cp when hard link fails.
2901 Use tar-1.11.2's -z option instead of -Z.
2903 * makepath.c [index]: Don't redefine.
2905 Fri Mar 26 00:32:39 1993 Jim Meyering (meyering@comco.com)
2907 * df.c (add_excluded_fs_type, excluded_fs_type): New functions adding
2908 support for --exclude-type option. Derived from Kaveh R. Ghazi
2909 <ghazi@caip.rutgers.edu>.
2911 * ls.c (decode_switches, print_long_format): New option: --full-time.
2912 From K. Richard Pixley (rich@rtl.cygnus.com)
2914 Thu Mar 25 21:02:36 1993 David J. MacKenzie (djm@goldman.gnu.ai.mit.edu)
2916 * dirname.c [rindex]: Don't redefine.
2918 Tue Mar 23 23:13:33 1993 Jim Meyering (meyering@comco.com)
2920 * ls.c (gobble_file): Don't stat symlinks unless we need to.
2921 From Mike Rendell <michael@mercury.cs.mun.ca>.
2923 * dd.c (copy, copy_with_block, copy_with_block): Decrement
2924 pending_spaces only if it's > 0. The following command didn't
2926 perl -e 'print "a a\n";'| dd of=/dev/null ibs=1 cbs=3 conv=unblock
2927 With suggestions from Chris Weber <weber@bucknell.edu>,
2928 Marlys.A.Nelson@uwrf.edu, and Albert-Lunde@nwu.edu.
2930 Fri Mar 05 00:02:53 1993 Jim Meyering (meyering@comco.com)
2932 * chmod.c: Add long-named options.
2934 Mon Feb 15 23:34:55 1993 Jim Meyering (meyering@comco.com)
2936 * rm.c (remove_file): Don't ask about overriding a mode if the
2937 target is a symbolic link -- some systems (like SGI's Irix 4.0)
2938 zero the permissions fields of symbolic links.
2939 From Arne Henrik Juul (arnej@imf.unit.no).
2941 Fri Dec 11 16:46:50 1992 David J. MacKenzie (djm@kropotkin.gnu.ai.mit.edu)
2943 * rm.c (main): If -f is given, don't complain if no file args
2946 Tue Dec 8 21:09:16 1992 David J. MacKenzie (djm@kropotkin.gnu.ai.mit.edu)
2948 * posixtm.y: Include alloca.h if HAVE_ALLOCA_H, not if sparc.
2950 Mon Dec 7 20:09:59 1992 Jim Meyering (meyering@idefix.comco.com)
2952 * install.c (isnumber), chgrp.c (change_file_group): Define ISDIGIT
2953 and use it instead of isdigit.
2955 * dd.c: Define ISLOWER and ISUPPER independent of STDC_HEADERS.
2956 Define ISDIGIT and use it instead of isdigit.
2958 Wed Dec 2 12:28:10 1992 Jim Meyering (meyering@idefix.comco.com)
2960 * all files using getopt.h: Convert static declarations of
2961 struct option to use new macros from getopt.h: no_argument,
2962 required_argument, and optional_argument.
2964 Tue Nov 24 07:54:45 1992 David J. MacKenzie (djm@goldman.gnu.ai.mit.edu)
2966 * system.h: Use HAVE_FCNTL_H instead of USG.
2968 * xgetcwd.c: Use HAVE_GETCWD instead of USG.
2970 * backupfile.c, basename.c, dirname.c, idcache.c, makepath.c,
2971 mountlist.c, stripslash.c, userspec.c, xstrdup.c, system.h:
2972 Use HAVE_STRING_H instead of USG.
2974 * system.h: Use SYSDIR and NDIR instead of USG.
2975 Define direct as dirent, not vice-versa.
2976 * ls.c, rm.c, backupfile.c, savedir.c: Use `struct dirent',
2977 not `struct direct'.
2979 Thu Nov 12 23:10:56 1992 David J. MacKenzie (djm@goldman.gnu.ai.mit.edu)
2981 * system.h: If dirent is #defined, don't define direct as dirent;
2982 for Sinix. Derived from Heinfried Korn (korn@med-in.uni-sb.de).
2984 Mon Nov 9 14:13:57 1992 Jim Meyering (meyering@idefix.comco.com)
2986 * fsusage.c (adjust_blocks): Reverse Oct 31 change --
2987 the function is more readable than the macro.
2989 * All files in src: Make all functions and extern variables static.
2990 Make all longopts arrays const as well as static.
2991 Make a couple statically initialized aggregates `const.'
2993 Sat Oct 31 16:32:17 1992 Jim Meyering (meyering@idefix.comco.com)
2995 * fsusage.c (adjust_blocks): Convert to a macro. The static
2996 function wasn't always used.
2998 * makepath.c, cp.c, ls.c: Add parentheses to expressions
2999 like (c = *p++) as per suggestion from gcc -Wall.
3001 * dd.c (swab_buffer): Fix typo that incremented pointer instead
3002 of counter. Add braces around static struct initializers.
3004 Fri Oct 30 11:40:58 1992 David J. MacKenzie (djm@goldman.gnu.ai.mit.edu)
3006 * ln.c, cp.c (main): Make -s on systems without symlinks an
3007 error, not a warning.
3009 Thu Oct 29 14:57:21 1992 David J. MacKenzie (djm@kropotkin.gnu.ai.mit.edu)
3013 * cp.c (copy, re_protect), mv.c (copy_reg): Do utime and chown
3014 before chmod, so set[ug]id bits don't get nuked.
3017 Wed Oct 28 16:13:18 1992 David J. MacKenzie (djm@kropotkin.gnu.ai.mit.edu)
3019 * cp.c, mv.c, ln.c: Rename some variables to use consistent
3020 terminology: source and destination.
3022 * ln.c, mkdir.c, mkfifo.c, mknod.c: Don't strip trailing slashes.
3023 * install.c: Don't strip slashes from dest. dirs.
3025 Mon Aug 24 12:49:14 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
3027 * xgetcwd.c: Make path_max unsigned, not long. From Bruce Evans.
3029 Sun Aug 23 03:06:04 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
3031 * idcache.c: Use a union for uid_t and gid_t. From
3032 bde@runx.oz.au (Bruce Evans).
3034 * eaccess.c: Use NGROUPS_MAX if it's defined. 386BSD is like sun.
3036 Sat Aug 22 02:36:49 1992 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu)
3038 * makepath.c: Use uid_t and gid_t.
3040 * system.h, makepath.c: Use HAVE_ALLOCA_H, not sparc.
3042 * cp.c (make_path, re_protect): Allocate room for terminating NULs.
3044 Fri Aug 21 21:12:18 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
3046 * fsusage.c [STAT_STATVFS]: Use f_bsize if f_frsize is 0.
3047 From Paul M Reilly <pmr@rock.concert.net>.
3049 * xgetcwd.c [!errno]: Declare errno. From Karl Berry.
3051 * chown.c (main, change_file_owner, change_dir_owner): Use
3052 uid_t and gid_t. From Rob McMahon <cudcv@csv.warwick.ac.uk>
3053 and glaze@cs.mu.oz.au (Glaze).
3055 Thu Jul 23 14:29:17 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
3059 Sat Jul 18 20:12:56 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
3061 * idcache.c: Use uid_t and gid_t.
3062 (getuidbyname, getgidbyname): New functions, for cpio.
3064 * userspec.c: New file, from code in chown.c.
3067 Fri Jul 17 00:43:38 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
3069 * system.h: Protect from getopt prototype in stdlib.h.
3071 * ls.c [_AIX]: Include sys/ioctl.h.
3072 * fsusage.c: Include sys/vfs.h if AIX PS/2, but not if RS6000.
3073 From tranle@intellicorp.com (Minh Tran-Le).
3075 * mvdir.c: Declare getcwd. From Francois Pinard.
3077 * chown.c, chgrp.c, install.c [_POSIX_SOURCE]: Define endpwent
3078 and endgrent as empty.
3080 * makepath.c (make_path): Add cast to alloca call.
3083 * cp.c (copy, re_protect), mv.c (copy_reg): Notify root of
3084 EPERM errors from chown.
3085 * makepath.c, install.c [AFS]: Ignore EPERM from chown.
3087 * system.h (ST_NBLOCKS) [_AIX && _I386]: st_blocks is in 4K units.
3088 * fsusage.c (statfs) [_AIX && _I386]: Supply this function.
3089 From tranle@intellicorp.com (Minh Tran-Le).
3091 Thu Jul 16 23:08:39 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
3093 * df.c (print_header, show_dev): In inode format, print the
3094 total number of inodes as well.
3096 * fsusage.[ch], df.c (show_dev): Count internally using
3097 512-byte blocks, not 1024-byte, to avoid rounding errors.
3099 Mon Jul 6 20:03:54 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
3101 * rename.c: Use S_ISDIR instead of S_IFDIR.
3103 Fri Jul 3 14:36:34 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
3105 * fileblocks.c, system.h, cp.c, dd.c, mv.c, touch.c: Change
3106 FOO_MISSING to HAVE_FOO.
3108 Wed Jun 3 19:28:04 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3110 * xgetcwd.c (xgetcwd): Accept errno==EINVAL as nonfatal.
3112 Wed May 20 00:05:52 1992 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu)
3114 * system.h: If we include a header file specifically to get
3115 major et al., assume we have them.
3117 Mon May 11 20:04:10 1992 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu)
3119 * chgrp.c, chown.c: --show-changes -> --changes.
3121 Sat May 9 18:39:38 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3123 * system.h: Define DEV_BSIZE if not defined.
3125 Thu Apr 30 13:55:37 1992 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu)
3127 * du.c (count_entry): Remove the trailing "/" before printing.
3129 Wed Apr 29 11:34:38 1992 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu)
3131 * rename.c (rename): If removing `from' fails, remove `to' to
3132 clean up. From Matthew Farwell <dylan@ibmpcug.co.uk>.
3134 Thu Apr 23 21:14:16 1992 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu)
3136 * ls.c (gobble_file): Only read the link contents if -l or the
3137 file was named on the command line.
3139 Wed Apr 22 02:16:38 1992 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu)
3141 * fsusage.c (get_fs_usage) [STAT_STATFS4 and _SEQUENT_]: Has f_bavail.
3142 From Donn Cave <donn@carson.u.washington.edu>.
3144 * getversion.c (get_version): If given invalid arg, exit.
3146 * cp.c (copy): Fix mode with chmod if copying as a regular file.
3148 * system.h, dd.c: SIGTYPE -> RETSIGTYPE.
3150 Sat Apr 18 00:18:41 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3152 * fsusage.[ch] (get_fs_usage): Take another arg, the device name.
3153 * fsusage.c (get_fs_usage) [STAT_READ]: Fix number of inodes
3154 calculation. Use the device name. From Brian Matthews.
3155 * df.c (show_dev): Pass the device name.
3157 Fri Apr 17 11:25:28 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3159 * fsusage.c: Special-case AIX.
3161 * mountlist.c [MOUNTED_VMOUNT]: New code for AIX, from
3162 Garrett A. Wollman (wollman@uvm.edu).
3164 * ls.c (gobble_file): Use stat, not lstat, on symlinked-to
3165 file, for Unix compat. From ian@airs.com (Ian Lance Taylor).
3167 Mon Apr 6 14:16:06 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3169 * xgetcwd.c: Include stdio.h to get NULL.
3171 Thu Apr 2 14:41:18 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3173 * df.c: Call sync only once, instead of once per filesystem.
3175 Wed Apr 1 16:00:08 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3179 Tue Mar 31 13:39:06 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3181 * df.c (main): stat all arg pathnames before getting
3182 list of mounted filesystems.
3183 (show_entry, show_point): Take a struct stat * as another arg,
3184 to avoid repeatedly statting files.
3186 Mon Mar 30 12:21:28 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3188 * install.c (main): Allow symbolic modes for -m.
3189 (atoo): Function removed.
3191 * mkdir.c (main): Include invalid -m arg in error message.
3193 * fsusage.c (get_fs_usage) [STAT_STATFS4]: Go back to using
3194 512 instead of f_bsize. Empirically, it gives the right answer.
3196 * mvdir.c (main): Don't deref NULL pointer on last iteration
3199 * fsusage.c (adjust_blocks): New function.
3200 (get_fs_usage): Call it.
3202 * mvdir.c (main): Don't possibly try to use ".." entry of new dir
3205 * fsusage.c (get_fs_usage) [STAT_STATFS4]: Use f_bsize member
3208 Sat Mar 28 00:36:57 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3210 * dd.c (copy_simple, copy_with_block, copy_with_unblock,
3211 translate_buffer, swab_buffer): New functions, mostly made
3212 from code taken from copy. Incorporate some optimizations due
3213 to Stuart Kemp: For each type of conversion, only check
3214 whether to do it once per buffer read, instead of once per character.
3215 (copy): If conv=block and the input didn't end with a newline,
3216 pad the final block with spaces.
3218 Wed Mar 25 14:35:17 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3220 * system.h: Don't use BSIZE for calculating ST_BLKSIZE if it
3223 * mountlist.c [MOUNTED_FREAD], fsusage.c [STAT_READ]: New code
3224 for SVR2, from archive@ideahb.sublink.org (Lele Gaifax).
3226 Tue Mar 24 14:53:19 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3228 * mvdir.c: Use getcwd, not getwd.
3230 * system.h, xgetcwd.c: Redo how PATH_MAX is figured out, to
3233 * fsusage.c, mountlist.c: New files split from fsinfo.c.
3234 Revise conditionals to make the two files independent of each other.
3235 * fsusage.h, mountlist.h: New files split from fsinfo.h.
3238 Mon Mar 23 13:01:07 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3240 * fsinfo.c (read_filesystem_list): Take another arg, all_fs.
3241 [FS_MNTENT]: Ignore type "auto" (from amd) as well as "ignore"
3242 (from automounter), if not all_fs.
3243 * df.c (main): Pass the new arg.
3245 * fsinfo.h: Add function decls.
3247 * chown.c, chgrp.c, chmod.c: Remove -L option. Didn't handle
3248 changing symlinks correctly and wasn't very useful.
3250 Sat Mar 14 17:38:38 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3252 * dirname.c (dirname): Don't use strdup.
3254 Fri Mar 13 14:56:15 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3256 * rm.c (remove_file, remove_dir, clear_directory): If -f was
3257 given, don't complain about ENOENT when removing.
3259 Mon Mar 9 00:09:48 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
3261 * install.c (main): Allow making multiple dirs with -d.
3262 (usage): Document it.
3263 * makepath.c (make_path): Clear umask while working and
3264 restore it when done. chmod dirs that should have
3265 set[ug]id or sticky bits set, if we're chowning them.
3266 Make chown failure nonfatal. Do chmod after chown, not before.
3268 * du.c (count_entry): Set exit_status on nonfatal error.
3271 Sun Mar 8 22:07:50 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
3273 * du.c (du_files): New function, from code in main.
3274 Use xgetcwd instead of getcwd or getwd.
3275 * system.h: Don't declare getcwd or getwd.
3277 * xgetcwd.c: New file.
3279 * ls.c (main): Exit with `exit_status' instead of 0.
3280 (print_dir, gobble_file, get_link_name): Set exit_status on error.
3282 * ls.c (print_long_format): Allow a slop factor for deciding
3283 what is in the future.
3285 * All programs: Change usage messages and documentation for
3286 long options to use -- instead of +.
3288 * df.c (main, usage): Add -v option for SysV compat.
3290 Tue Feb 4 12:45:09 1992 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3292 * fileblocks.c [!NINDIR]: Try to fake indirect block info for
3293 systems that don't define it.
3295 Thu Jan 16 01:04:16 1992 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3297 * df.c (print_header): Capitalize some header words for
3300 Sat Jan 4 01:19:25 1992 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3302 * posixtm.y: Capitalize token name.
3304 Tue Dec 24 01:05:44 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3306 * system.h, makepath.c, idcache.c, eaccess.c, backupfile.c,
3307 install.c, dd.c, chown.c, chgrp.c: Change POSIX ifdefs to
3310 Wed Dec 18 16:42:00 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3312 * system.h: To get major, minor and makedev, don't check for
3313 _POSIX_SOURCE and USG; use MAJOR_IN_MKDEV and MAJOR_IN_SYSMACROS.
3315 Mon Dec 16 18:16:42 1991 David J. MacKenzie (djm at wombat.gnu.ai.mit.edu)
3317 * dd.c (skip): Fix typos in arg name.
3318 (output_char): Fix off by one error in check.
3320 Sun Dec 8 19:55:06 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3322 * system.h: Only define major et al. if not already defined.
3324 Fri Dec 6 18:26:53 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3326 * dd.c (main) [POSIX]: Use sigaction instead of signal, which
3329 * df.c, du.c, ls.c: POSIX_ME_HARDER -> POSIXLY_CORRECT.
3331 Wed Dec 4 14:30:16 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3333 * dd.c: Cleanups, mostly from Stuart Kemp:
3334 (output_char): New macro, from code in copy.
3335 (write_output): New function, used by output_char, from code
3337 (skip): New function, from code in copy.
3338 (copy): Use output_char and skip.
3339 Simplify test for quitting before main loop.
3340 Zero buffer using bzero for speed.
3342 Sun Nov 17 19:39:04 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3344 * fsinfo.c (get_fs_usage) [FS_MNTENT]: Take blocksize into account.
3345 (read_filesystem_list) [FS_MNTENT]: Ignore filesystems of type
3346 "ignore" (automounter dummy entries).
3348 * install.c (change_attributes): Do chmod even if chown fails.
3350 Thu Oct 24 23:50:46 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3352 * chown.c (change_file_owner), chgrp.c (change_file_group):
3353 don't skip symlinks, since the chown system call works on them.
3355 Fri 18 Oct 1991 23:29:24 Jim Meyering (meyering at wombat)
3357 * configure: fixed test to detect sequent's strange interpretation
3358 of utime(file, NULL).
3360 Fri Oct 18 00:30:42 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3362 * eaccess.c: GID_T -> GETGROUPS_T, for clarity.
3364 Sat Oct 12 12:25:55 1991 David J. MacKenzie (djm at churchy.gnu.ai.mit.edu)
3366 * configure: Define uid_t and gid_t as int if they're not
3367 defined in sys/types.h. That's probably right for old Unixes
3368 and avoids trying to find the C preprocessor.
3370 * df.c: Don't declare sync, to avoid conflict with Minix (and
3371 maybe others) unistd.h.
3372 (show_point): Cast -1 to dev_t before comparing, in case dev_t
3373 is unsigned. From Rainer Orth.
3375 * chown.c [!POSIX]: Declare getgrgid.
3377 Fri Sep 13 14:55:41 1991 David J. MacKenzie (djm at churchy.gnu.ai.mit.edu)
3379 * eaccess.c [POSIX]: Always use sysconf to get NGROUPS_MAX.
3381 Thu Sep 5 23:40:39 1991 David J. MacKenzie (djm at apple-gunkies)
3383 * system.h: Instead of defining getwd in terms of getcwd with
3384 PATH_MAX as an arg (which might be -1 on POSIX), define getcwd
3386 * du.c (main): Call getcwd with path_max as an arg.
3388 * install.c (change_attributes): Do chown before chmod, so
3389 chown doesn't remove set[ug]id bits.
3391 Wed Aug 28 20:53:50 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3395 Mon Aug 26 15:44:16 1991 David J. MacKenzie (djm at pogo.gnu.ai.mit.edu)
3397 * du.c (main): If pathconf fails, use 1024 for PATH_MAX. This
3398 happens if "/" is NFS-mounted.
3400 Sun Aug 25 00:56:11 1991 David J. MacKenzie (djm at apple-gunkies)
3402 * df.c, fsinfo.c, fsinfo.h: New program.
3403 * configure: Check for various ways of getting info on mounted
3406 Thu Aug 22 10:53:23 1991 David J. MacKenzie (djm at apple-gunkies)
3408 * src/Makefile.in: Workaround #10006 for C compilers that are
3409 too dumb to allow -c and -o together. Copy the source files.
3410 * system.h: Moved from src to lib to avoid having to add yet
3411 more -I options to CFLAGS.
3413 * du.c, ls.c: If POSIX_ME_HARDER is set in environment, use
3414 512-byte blocks by default.
3416 Wed Aug 21 13:03:14 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3420 * du.c, ls.c: Make 1K blocks the default size, and -k a no-op.
3421 Down with dumb standards!
3423 * system.h, backupfile.c, savedir.c [VOID_CLOSEDIR]: Fake a
3424 return value for closedir, which returns void on some systems,
3426 * configure: Check sys/dir.h for 'void closedir'.
3428 Tue Aug 20 22:22:47 1991 Jim Meyering (meyering at nutrimat)
3430 * mvdir.c (main): Clean up loop to stat component
3431 directories -- as in makepath and pathchk.
3433 Tue Aug 20 22:10:47 1991 Jim Meyering (meyering at nutrimat)
3435 * dirname.c (dirname): Allocate exact amount of space
3438 Tue Aug 20 02:13:40 1991 David J. MacKenzie (djm at apple-gunkies)
3440 * savedir.c (savedir): Try to open directory before allocating
3441 buffer. From Jim Meyering.
3443 Mon Aug 19 01:14:13 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3445 * Many files: indent '#pragma alloca' so non-ANSI compilers
3448 * backupfile.c (max_backup_version): Check closedir return
3449 value (though it might not do any good).
3451 Tue Aug 6 20:50:56 1991 David J. MacKenzie (djm at wheat-chex)
3453 * configure, Makefile.in's: Support +srcdir option, using VPATH.
3454 Don't check for bison, just try it and if it fails use yacc.
3455 Create config.status. Fix up clean targets.
3457 * posixtm.y (posixtm): New function.
3459 Most of the following is from Paul Eggert:
3460 * savedir.c (savedir), ls.c (print_dir), rm.c
3461 (clear_directory): Check closedir return for errors.
3462 * dd.c (main): Check for stdin or stdout being closed.
3463 * dd.c (quit), install.c (copy_file): Check for close errors.
3464 * mv.c (copy): Was missing a close.
3466 Sat Aug 3 02:05:51 1991 David J. MacKenzie (djm at apple-gunkies)
3468 * ln.c: Declare link() unconditionally (SCO UNIX needs it).
3470 Tue Jul 30 00:23:19 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3472 * configure: NEED_TZSET has become FTIME_MISSING.
3474 * configure: Define uid_t and gid_t if sys/types.h doesn't.
3476 Sat Jul 27 00:55:16 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3478 * configure: Only compile fileblocks.c if st_blocks is missing.
3480 * cp.c (copy): Make directories with initial mode of source
3481 permissions minus umask, plus 0700. For POSIX and John Gilmore.
3483 * system.h: Include errno.h and, if STDC_HEADERS, stdlib.h.
3484 * All programs: Remove includes of those files.
3486 * ftruncate.c: New file.
3487 * configure: Use it if needed.
3489 Wed Jul 24 02:09:45 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3491 * ls.c (get_name_link), cp.c (copy) [_AIX]: Allocate extra
3492 space for the buffer, since st_size is wrong.
3494 * system.h: Don't declare alloca for AIX.
3495 * makepath.c, posixtm.y, cp.c, du.c, ln.c, ls.c, mv.c:
3496 Declare alloca first (AIX needs it).
3498 * cp.c, dd.c, touch.c: Use SEEK_ instead of L_.
3499 * system.h: Define SEEK_ if not defined.
3501 Tue Jul 23 15:02:20 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3503 * eaccess.c: GID_T is int if ultrix as well as if sun.
3505 Mon Jul 22 11:39:31 1991 David J. MacKenzie (djm at bleen)
3507 * install.c: Use uid_t and gid_t.
3509 * eaccess.c: Support POSIX method of getting multiple groups.
3511 Sat Jul 20 14:24:40 1991 David J. MacKenzie (djm at bleen)
3513 * Move cat cmp cut expand head paste split tac tail unexpand
3516 * system.h [MKFIFO_MISSING]: Define mkfifo macro.
3517 * cp.c, mkfifo.c: Don't define it.
3519 * mknod.c, gmknod.1: New files.
3521 Fri Jul 19 13:43:01 1991 David J. MacKenzie (djm at apple-gunkies)
3523 * version.c: New file.
3524 * All C programs: Link with it, to get version number in the
3525 binary where at least `strings -' and GNU grep can find it.
3527 Mon Jul 15 13:46:53 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3529 * configure: Also look in sys/signal.h for signal decl.
3531 Sun Jul 14 22:43:57 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3533 * Rename touchtm.y back to posixtm.y, as the date command will
3536 Mon Jul 8 22:56:36 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3538 * Replace lib/Makefile with lib/Makefile.in.
3539 * configure: For some library functions that might be missing,
3540 conditionally add the .o files to lib/Makefile instead of
3541 defining func_MISSING.
3542 * lib/mkdir.c: Renamed from lib/mkrmdir.c.
3544 Sat Jul 6 02:19:09 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3546 * xstrdup.c [STDC_HEADERS]: Include string.h.
3548 * stripslash.h: Include string header file.
3550 * configure: Add to DEFS if Minix.
3552 * system.h [_POSIX_SOURCE]: Make ST_BLKSIZE 1024 instead of
3553 512, for better performance.
3555 * system.h, configure: If sys/mkdev.h exists, use it instead
3558 * configure: echo messages to stdout, not stderr.
3559 Use test programs to see if alloca needs -lPW and if chars are
3562 Tue Jul 2 03:16:32 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3564 * chown.c, chgrp.c [!POSIX]: Declare pwd.h and grp.h functions.
3566 Sat Jun 29 16:46:12 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3568 * cp.h: Don't declare `open', to avoid conflict with varargs
3571 * chown.c, chgrp.c: Include sys/types.h before, not after,
3572 pwd.h and grp.h, to get uid_t and gid_t if necessary.
3574 Fri Jun 28 01:12:45 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3576 * ls.c: Use time_t instead of long, where appropriate.
3578 Thu Jun 27 16:31:45 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3580 * touchtm.y: Renamed from posixtime.y for SysV systems with Bison.
3582 * configure: No longer need to pass bison the -y option.
3583 Now lib/Makefile should allow a parallel make with bison.
3585 * cp.c (copy_reg), cat.c (main),
3586 touch.c (touch, utime_now), mv.c (copy): Check close return
3587 value for delayed error report due to NFS.
3589 Thu Jun 20 01:33:06 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3591 * configure: Include $DEFS when compiling test programs.
3593 * configure: Use test programs instead of grep to check for
3594 USG, POSIX, and ANSI C headers, in case symbols are defined in
3595 header files included by the standard ones. Check for BSD
3596 memory functions (bcopy et al.) as well as string functions.
3597 Add notice to top of generated Makefile saying that it's
3598 automatically generated.
3600 Thu Jun 13 00:50:18 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3604 * configure: If rename is missing, define MVDIR.
3605 Use , instead of / as sed substitution separator so variables'
3606 values can contain slashes.
3608 * du.c (main): Use alloca to allocate `wd' instead of making
3609 it an auto array, since PATH_MAX might be a call to pathconf.
3611 Wed Jun 12 19:56:22 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3613 * cp-aux.c (usage), install.c (usage), ln.c (usage), mv.c
3614 (usage): Combine the option lists for the multiple usage forms.
3616 Tue Jun 11 00:12:15 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3618 * idcache.c: pwd.h and grp.h might need sys/types.h.
3620 * configure: Create Makefile from Makefile.in instead of
3621 makefile from makefile.skel, to more closely follow the new
3622 GNU coding standards.
3624 * ls.c (file_interesting): Use POSIX.2 fnmatch instead of glob_match.
3626 * configure: If $RANDOM is implemented (ksh, bash or zsh), use
3627 the `type' builtin to determine if gcc, bison, ranlib are
3628 available. ksh writes "fubar: command not found" to stderr,
3629 foiling the test -n "`command 2>&1`" method.
3630 Remove makefile on signal.
3632 * system.h: Include sys/param.h if not _POSIX_SOURCE instead
3633 of if not POSIX, to get DEV_BSIZE.
3635 * makepath.c, posixtime.y, system.h: Add _AIX case to alloca decl.
3637 Sun Jun 9 01:26:27 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3641 * basename.c, dirname.c: Use str[r]chr and string.h if
3642 STDC_HEADERS as well as if USG.
3644 * touch.c (utime_now): Created from code in touch ().
3646 Sat Jun 8 11:02:32 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3648 * backupfile.c: Use POSIX instead of _POSIX_SOURCE to
3649 determine whether to check whether readdir returned a valid
3652 Fri Jun 7 21:44:51 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3654 * fileblocks.c (st_blocks), system.h (ST_NBLOCKS): Always
3655 return number of 512 byte blocks, not DEV_BSIZE blocks.
3656 (convert_blocks): Always expect 512-byte blocks.
3658 Thu Jun 6 12:54:26 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3660 * system.h [POSIX]: If PATH_MAX not defined, use pathconf.
3661 Remove NAME_MAX stuff; not used.
3663 * system.h: Make #include <strings.h> depend on not (USG or
3664 STDC_HEADERS) instead of not (USG or POSIX).
3666 * configure: New shell script to aid compilation.
3668 Mon Jun 3 16:42:41 1991 David J. MacKenzie (djm at wheat-chex)
3670 * cp.h: Remove some decls of functions returning int that
3671 conflict with prototypes on HPUX.
3673 * cp.c (make_path, re_protect): New functions from Jim
3674 Meyering. Changes to other functions as well, to add +path,
3675 +link, +symbolic-link options.
3677 Sun Jun 2 15:45:24 1991 David J. MacKenzie (djm at wheat-chex)
3679 * most files: use GPL version 2.
3681 Sat Jun 1 20:17:35 1991 David J. MacKenzie (djm at wheat-chex)
3683 * rm.c, backupfile.c: If _POSIX_SOURCE, don't refer to d_ino.
3685 Sun May 19 18:42:09 1991 David J. MacKenzie (djm at churchy.gnu.ai.mit.edu)
3687 * touch.c: Renamed getdate to get_date to avoid SVR4 conflict.
3689 Thu May 16 23:12:01 1991 David J. MacKenzie (djm at albert.gnu.ai.mit.edu)
3691 * cp.c, mv.c, ln.c: Use alloca and strcpy directly instead of
3692 in a macro for generating backup filename. The latter
3693 sometimes coredumps for some reason.
3695 Sat Apr 20 00:03:09 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3697 * dd.c: Add conv=notrunc and truncate output file by default,
3700 * rm.c (rm): Refuse to remove path/. and path/.., as well as `.'
3701 and `..', for POSIX.
3703 * chown.c: Allow `:' as well as `.' to separate group from
3704 user, for POSIX.2 draft 11.
3706 * Many programs: Don't bother to get the long-option index
3707 value from getopt_long, since we ignore it.
3709 * Many programs: Separate long-option option names from their
3710 args with `=' instead of ` ' in usage messages.
3712 * touch.c (touch): Don't refuse to touch non-regular files.
3714 Wed Apr 10 12:19:30 1991 David J. MacKenzie (djm at churchy.gnu.ai.mit.edu)
3716 * cp.c, cp-aux.c: Add -a +archive option, an easier to
3717 remember synonym for -dpR.
3719 Fri Mar 15 16:16:54 1991 David J. MacKenzie (djm at geech.ai.mit.edu)
3721 * mv.c (copy): Try to preserve file ownership in
3722 cross-filesystem copies.
3724 * backupfile.c, rm.c: Go back to using d_ino instead of
3725 d_fileno. POSIX.1 specifies neither, and d_ino is more
3726 common, perhaps ubiquitous.
3728 * chown.c (describe_change): Don't print the group name if it
3729 didn't change (thus is a null pointer).
3730 (main): Initialize group name to null.
3732 Mon Feb 25 11:44:14 1991 David J. MacKenzie (djm at geech.ai.mit.edu)
3734 * dd.c (copy): Only seek if not seeking to start of file, so
3735 "dd >> foo" works with Minix shell that doesn't open foo in
3738 Thu Feb 21 11:59:39 1991 David J. MacKenzie (djm at geech.ai.mit.edu)
3740 * ln.c (do_link), mv.c (do_move), cp.c (copy): Store backup
3741 filename using alloca so we don't have to free it every place
3742 we return. From Jim Meyering.
3744 Thu Feb 14 00:41:43 1991 David J. MacKenzie (djm at geech.ai.mit.edu)
3746 * cp.c (copy_reg): Only make holes when copying a regular file
3747 onto a regular file.
3749 Fri Jan 18 06:31:59 1991 David J. MacKenzie (djm at albert.ai.mit.edu)
3751 * ls.c: Move defn. of S_IEXEC to after header files are included.
3752 * cp.h: Always declare stat and lstat.
3754 Thu Jan 10 02:16:55 1991 David J. MacKenzie (djm at albert.ai.mit.edu)
3756 * cp.h: Only declare some system calls if not POSIX.
3758 * eaccess.c, idcache.c, dd.c, install.c, ln.c, system.h:
3759 Change _POSIX_SOURCE to POSIX.
3761 * fileblocks.c, system.h: Change STBLOCKS_MISSING to
3762 ST_BLOCKS_MISSING (was already that way in cp.c).
3764 Fri Dec 28 18:40:34 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
3766 * chmod.c, chown.c, chgrp.c, du.c: Rename -d option to -L for
3767 similarity to ls and cpio.
3769 Thu Dec 27 00:06:45 1990 David J. MacKenzie (djm at egypt)
3771 * rm.c (clear_directory): Keep looking for files to remove
3772 until we don't find any, so that any .nfs* files created by
3773 removing other files are also removed, eventually.
3775 * install.c (main): Strip trailing slashes on all args.
3777 * mv.c (copy): Open target file with mode 0600, not 0777.
3778 [FCHMOD_MISSING]: Perform chmod after closing files, not
3781 * cp.c (do_copy): Don't append `..' to target dir name.
3783 * du.c (main, count_entry, usage): Add -D +dereference-args
3784 and -d +dereference options.
3786 Wed Dec 26 03:39:18 1990 David J. MacKenzie (djm at egypt)
3788 * dirname.c, xstrdup.c: Get decls from standard files, if available.
3790 Thu Dec 20 23:10:22 1990 David J. MacKenzie (djm at egypt)
3792 * makepath.c: New file, adapted from code in mkdir.c,
3793 install.c, and cpio util.c by Jim Meyering.
3794 * mkdir.c, install.c: Use make_path.
3796 Sun Dec 16 00:56:54 1990 David J. MacKenzie (djm at egypt)
3798 * chown.c, chgrp.c: New files.
3800 Sat Dec 15 20:42:32 1990 David J. MacKenzie (djm at egypt)
3802 * cp.h: Declare POSIX functions always -- _POSIX_SOURCE
3803 doesn't imply STDC declarations.
3805 * system.h: Define S_ISTYPE macros not defined by sys/stat.h.
3807 * Many files: Use S_ISTYPE macros.
3809 * backupfile.c, rm.c: Use name d_fileno for member of struct
3810 dirent instead of d_ino, for POSIX.
3812 Wed Dec 12 23:38:22 1990 David J. MacKenzie (djm at egypt)
3814 * ls.c: Declare time() as time_t instead of long, to prevent
3815 conflict with standard header files.
3817 * cp.c (copy_reg): Instead of using NO_SPARSE_FILES, use
3818 st_blocks to determine whether the original file contains any
3819 sparse blocks, and only create them if so. On systems without
3820 st_blocks, to be safe, never create sparse blocks.
3822 Thu Nov 8 12:16:27 1990 David J. MacKenzie (djm at apple-gunkies)
3824 * idcache.c: If _POSIX_SOURCE not defined, declare getpw and
3825 getgr functions (not an optimal solution, but I hate to add
3826 yet another configuration macro).
3828 * Makefile: Define AR and RANLIB and pass to child makes.
3829 lib/Makefile: Use them.
3831 Tue Nov 6 23:18:06 1990 David J. MacKenzie (djm at mole.ai.mit.edu)
3833 * idcache.c: New file from code in ls.c.
3835 Fri Nov 2 14:34:40 1990 David J. MacKenzie (djm at apple-gunkies)
3837 * Move files into src and lib directories, split out library
3838 functions into separate files in lib, and rewrite Makefiles.
3840 Mon Oct 29 01:20:46 1990 David J. MacKenzie (djm at apple-gunkies)
3842 * mv.c (do_move), rm.c (remove_file, remove_dir): If stdin is
3843 a tty and file is unwritable, prompt before overwriting.
3845 * cp.c (copy_reg): Only make sparse files if
3846 NO_SPARSE_FILES is undefined, to accommodate dumb kernels.
3848 * du.c (count_entry): Remove misinformed HPUX kludge that
3849 doesn't really fix the problem.
3851 * rm.c (rm): Check for textual equality with '.' and '..', not
3854 Sat Oct 27 23:38:55 1990 David J. MacKenzie (djm at apple-gunkies)
3856 * rm.c (check_stack): If not interactive, don't prompt when
3857 corruption is found, just quit.
3858 (remove_file, remove_dir): Delete leading spaces in verbose
3861 * cp.c (copy), rm.c (remove_dir): If we think the dest. file
3862 is unwritable, warn the user in the interactive prompt instead
3863 of automatically skipping the file. Because of race
3864 conditions and other protection mechanisms we might not know
3867 Mon Oct 8 18:51:25 1990 David J. MacKenzie (djm at apple-gunkies)
3869 * du.c (main, usage, count_entry): Add +separate-dirs -S option.
3871 * dd.c (main): Don't trap SIGINT if it was being ignored.
3873 Tue Sep 25 16:40:43 1990 David J. MacKenzie (djm at apple-gunkies)
3875 * install.c (copy_file, install_file_in_file): Change
3876 attributes after stripping, to guard against strip programs
3877 that clear setuid bits, etc.
3879 Fri Sep 21 22:31:43 1990 David J. MacKenzie (djm at apple-gunkies)
3881 * cp.c (copy_reg): Put back ftruncate way of making holes
3882 because the other way can't make a hole at the end of a file.
3884 Tue Sep 18 03:47:45 1990 David J. MacKenzie (djm at apple-gunkies)
3886 * install.c (change_attributes): Don't ignore EPERM for chown,
3887 since the default uid is now the current uid.
3889 Sun Sep 9 16:54:19 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
3893 * cp.h: Declare free returning void, not int, so it
3894 doesn't bomb on Xenix.
3896 Fri Sep 7 04:35:35 1990 David J. MacKenzie (djm at apple-gunkies)
3898 * system.h, backupfile.c, savedir.c [DIRENT]: if direct is
3899 defined (as on Ultrix 4.0), undefine it before redefining it.
3901 Tue Sep 4 03:10:24 1990 David J. MacKenzie (djm at apple-gunkies)
3903 * dd.c (apply_translations, translate_charset): Code moved
3904 from parse_conversion.
3905 (apply_translations): Convert from EBCDIC to ASCII before
3908 * mvdir.c (fullpath): Return a value.
3910 * dd.c (copy): Increment count of truncated records once
3911 per record, not once per character that overflows.
3913 Mon Sep 3 22:23:57 1990 David J. MacKenzie (djm at coke)
3915 * dd.c (swab_array): Function removed.
3916 (copy): Rewrite conv=swab to work when odd number of bytes
3918 (scanargs): Die if invalid numeric value is given.
3919 (parse_integer): Return -1 if invalid arg.
3920 (bit_count): Faster version from Jim Meyering.
3922 * cp.c, mkfifo.c [MKFIFO_MISSING]: Define mkfifo.
3924 Thu Aug 30 00:17:02 1990 David J. MacKenzie (djm at apple-gunkies)
3926 * mvdir.c (main): Make sure `from' is not a parent of any part
3927 of `to', not just the explicitly given part.
3928 (fullpath): New function.
3930 Wed Aug 29 19:50:05 1990 David J. MacKenzie (djm at apple-gunkies)
3932 * mvdir.c: Renamed from mv_dir.c, for consistency with mkdir and rmdir.
3933 * dirlib.c: Caller changed.
3935 Tue Aug 28 18:05:24 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
3937 * touch.c (main): Don't interpret first non-option arg as a
3938 time if `--' is given (POSIX-required kludge).
3940 * touch.c: Add long-named options.
3942 * Many files: Include <getopt.h> instead of "getopt.h" since
3943 getopt.h will be in the GNU /usr/include.
3945 * install.c: Declare some functions.
3947 * touch.c, getdate.y, posixtime.y, mktime.c: New files, from bin-src.
3949 * posixtime.y: Move year from before time to after it (but
3950 before the seconds), for 1003.2 draft 10.
3952 Mon Aug 27 03:25:36 1990 David J. MacKenzie (djm at apple-gunkies)
3954 * touch.c (main): If no time is given and first arg is a valid
3955 timespec, use it as one.
3957 Sat Aug 25 01:36:16 1990 David J. MacKenzie (djm at apple-gunkies)
3959 * posixtime.y: Enclose YYABORT in braces in case some yacc's
3962 * touch.c: Remove -i option. Change some error messages.
3963 (readname): Function removed.
3965 Thu Aug 23 12:56:33 1990 David J. MacKenzie (djm at apple-gunkies)
3967 * cp.c (copy): Only restore dir mode if it was changed.
3969 Wed Aug 22 01:45:54 1990 David J. MacKenzie (djm at apple-gunkies)
3971 * cp.c (copy): Don't only backup files when -f is given.
3973 * ls.c: Add -X +sort=extension option. Rename
3974 +kilobyte-file-size to +kilobytes.
3976 * du.c: Rename -f option to -x, for POSIX. Rename
3977 +kilobyte-file-size to +kilobytes. Add -b, +bytes option for
3980 * cp-aux.c (usage): Change -o to -x.
3981 (stpcpy): Renamed from str_cpy. Change callers in cp.c.
3983 * cp.c: New variable, `flag_copy_as_regular'.
3984 (main): For -R, unset `flag_copy_as_regular'.
3985 Rename -o to -x for consistency with du.
3986 (copy): Only unlink destination files when -f is given.
3987 Only prompt when -i given and copying as a regular file.
3988 Move check for previous link after other checks, reducing
3990 Create directories with mode 0700 initially, for POSIX.
3992 Mon Aug 20 03:29:08 1990 David J. MacKenzie (djm at apple-gunkies)
3994 * dd.c (copy): Swap input bytes instead of output bytes.
3995 (swab_array): New function.
3997 * dd.c (copy): If sync and noerror, zero the buffer before the
3998 read instead of after so that any data read before an error
3999 occurred are preserved.
4000 On read error, print stats and seek past the bad block if noerror.
4001 noerror doesn't affect write errors, for POSIX.
4002 (scanargs): Use two buffers if no buffer sizes given.
4003 Do not block or unblock if cbs not given.
4004 (print_stats): New function.
4007 Mon Aug 13 23:30:03 1990 David J. MacKenzie (djm at apple-gunkies)
4009 * cp.c (copy): If dest. exists and is unwritable, skip the file.
4011 * rm.c, mv.c, cp.c, ln.c (main): Respect the last -f or -i given,
4014 * rm.c (remove_file): Only prompt if -i is given.
4015 (main, usage): Remove -o +override-mode option, obsolete if
4016 POSIX accepts our objection about prompting.
4018 * mv.c (do_move): Only prompt if -i is given.
4020 * ln.c (do_link): If dest. file exists and -i and -f not
4021 given, skip the file.
4023 Tue Aug 7 12:51:18 1990 David J. MacKenzie (djm at apple-gunkies)
4025 * dd.c (main): If seek= given, don't truncate output file.
4026 (copy): Use `read' to skip output blocks if not regular file.
4027 Sync with NUL instead of SPC.
4029 Mon Aug 6 14:43:30 1990 David J. MacKenzie (djm at pogo.ai.mit.edu)
4031 * rm.c: Rename `ignore_errors' to `ignore_missing_files', and
4032 have it only suppress messages about nonexisting files.
4033 (main): Get dev and ino of `.' and `..'.
4034 (rm): If file is the same as `.' or `..', return with error.
4035 (remove_file): Remove the file rather than skipping it if
4036 unwritable, no -i, and stdin not tty.
4037 (remove_dir): Return an error if directory is nonwritable,
4038 rather than nonreadable or nonsearchable, for POSIX.2 draft 10.
4040 * chmod.c (main): Use fixed error checking to make sure that
4041 options aren't mixed together in the same args as mode specifiers.
4043 Sun Aug 5 11:51:12 1990 David J. MacKenzie (djm at pogo.ai.mit.edu)
4045 * chmod.c (main): Use umask for '-' op.
4047 Sat Aug 4 10:11:30 1990 David J. MacKenzie (djm at pogo.ai.mit.edu)
4049 * mkfifo.c: Remove -p +path option, no longer specified by POSIX.
4051 Fri Aug 3 13:38:28 1990 David J. MacKenzie (djm at pogo.ai.mit.edu)
4053 * mkdir.c, mkfifo.c, create.c (main): Don't tell mode_compile to
4054 respect the umask for certain operations, since the umask is 0 anyway.
4056 * install.c (get_ids): Use getuid and getgid to get defaults,
4059 Fri Jul 27 14:32:40 1990 David J. MacKenzie (djm at apple-gunkies)
4061 * backupfile.c (dirname): Always replace frontmost slash with a null.
4063 Thu Jul 26 00:20:35 1990 David J. MacKenzie (djm at apple-gunkies)
4065 * cp.h: Declare umask as unsigned short.
4067 * eaccess.c: Make uid and gid unsigned short, and group array unsigned.
4069 Wed Jul 25 18:38:57 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4071 * rm.c (remove_file, remove_dir): Print verbose message right
4072 before actually trying to remove the file, after the prompting.
4074 * ls.c (getuser, getgroup): Make uid and gid unsigned short, not int.
4076 Tue Jul 24 03:39:42 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4078 * cp.c (copy), ln.c (do_link), mv.c (do_move): For +verbose,
4079 print the file names just before actually attempting the
4080 copy/link/move, to produce a list of the files that they
4081 actually try to copy/link/move, omitting skipped files.
4082 Remove leading spaces from +verbose output.
4084 Mon Jul 23 16:57:44 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4086 * cp.c (copy): Make +update operate silently, like +one-file-system.
4088 * ln.c: Add -F as synonym for -d, for SunOS compatibility.
4090 Sun Jul 15 23:23:28 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4092 * cp.c (copy): Go back to using xstat on dest.
4094 Wed Jul 11 12:10:33 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4096 * cp.c (copy): Make directories with desired mode plus u+wx so
4097 if the copy is interrupted, the dir is closer to the desired mode.
4098 Don't backup directories.
4100 Sun Jul 8 00:39:31 1990 David J. MacKenzie (djm at apple-gunkies)
4102 * rm.c (main, usage): Add new option -d, +directory.
4103 (rm): If -d given, use remove_file instead of remove_dir for
4105 (remove_file): If directory, print "remove directory `foo'?"
4106 for interactive instead of "remove `foo'?".
4108 * ln.c (main): If -s given, print warning message if symlinks
4110 * mkfifo.c (main): If fifo's are not available, print message
4113 Fri Jul 6 02:02:49 1990 David J. MacKenzie (djm at apple-gunkies)
4115 * install.c (main): Use the current user and group ID for the
4116 default owner and group.
4118 * mv.c (main): New option -u, +update.
4119 (do_move): Don't move nondirectories if -u and there is an existing
4120 destination that has the same or newer mtime.
4121 (usage): Document -u, +update.
4123 * cp.c (main): New option -u, +update.
4124 (copy): Don't copy nondirectories if -u and there is an existing
4125 destination that has the same or newer mtime.
4126 * cp-aux.c (usage): Document -u ,+update.
4128 Thu Jul 5 10:04:12 1990 David J. MacKenzie (djm at apple-gunkies)
4130 * ln.c (do_link): Don't check whether OLD exists before trying
4133 Tue Jul 3 01:51:55 1990 David J. MacKenzie (djm at apple-gunkies)
4135 * ls.c: Allow "+time=atime" and "+time=ctime" for C hackers.
4137 * chmod.c (main): Don't check whether multiple mode arguments
4138 are given, because optind has a different value depending on
4139 whether or not the option is the last character in the
4142 Sat Jun 30 12:32:51 1990 David J. MacKenzie (djm at apple-gunkies)
4144 * cp.c (copy): Use lstat on dest. file, not *xstat.
4146 Mon Jun 25 18:07:20 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4148 * ls.c (print_long_format): Truncate user and group names to 8
4149 chars to preserve column alignment.
4150 (length_of_file_name_and_frills): Don't assume type indicator
4151 will be printed for unknown file types that some os's have.
4153 * install.c: Declare getgrnam for systems where grp.h doesn't.
4155 Sat Jun 23 00:06:35 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4159 * du.c (count_entry) [HPUX_NFS_BUG]: If the size of the file
4160 according to the number of blocks reported is twice or more than
4161 the size of the file according to the number of bytes
4162 reported, halve the number of blocks.
4164 Fri Jun 22 00:38:20 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4166 * cp.c (copy_dir): Initialize 'ret' to 0.
4168 * cp.c (main), ln.c (main), mv.c (main), rm.c (main):
4169 Make -i override -f and -o, to be conservative about
4170 removing peoples' files.
4172 * mkdir.c (make_path), mkfifo.c (make_path): Don't try to stat
4175 * rm.c, rmdir.c, mkdir.c, mkfifo.c: Move code to remove
4176 slashes at the end of an arg from main to
4177 strip_trailing_slashes.
4179 * install.c (strip): Print error message if the `strip'
4180 program can't be run.
4182 * system.h (convert_blocks): Macro moved from du.c and ls.c.
4183 Take a second parameter indicating whether to convert to
4184 kilobytes or 512 byte blocks.
4185 * ls.c, du.c: Pass second parameter to convert_blocks.
4187 Thu Jun 21 01:19:28 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4189 * ls.c (print_long_format): Use mode_string instead of filemodestring.
4191 * ls.c (print_long_format): Compare times as longs, not ints.
4192 (longdiff): Macro to compare two longs efficiently if sizeof
4193 int == sizeof long and less efficiently but correctly if they
4194 are different sizes.
4195 (compare_ctime, etc.): Use longdiff.
4197 * ls.c (decode_switches): Make -k not imply -s, to allow the
4198 summary directory size printed by -l to be in 1k blocks
4199 without having the size of each file printed as well.
4200 (convert_blocks): Provide for systems with a blocksize that is
4201 other than 512 or 1024 bytes.
4203 * du.c (main): Exit with status 0 normally.
4204 (convert_blocks): Provide for systems with a blocksize that is
4205 other than 512 or 1024 bytes.
4207 Wed Jun 20 01:46:09 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4209 * ln.c (do_link): Take out code to give an error if source and
4210 dest are the same file. The dubious usefulness of the special
4211 case to prevent 'ln x x' from removing 'x' (ln -i can be used
4212 instead) is not worth preventing 'ln x y' from failing the
4213 second time in a row, and appears to contradict POSIX anyway.
4215 Mon Jun 18 02:48:17 1990 David J. MacKenzie (djm at apple-gunkies)
4217 * ls.c (print_file_name_and_frills):
4218 (length_of_file_name_and_frills, print_long_format):
4219 Allow 6 digits for i-number, not 5.
4221 Sun Jun 17 00:09:23 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4223 * install.c (install_dir): Don't check whether "" or the root
4224 directory exists (the former fails on some systems).
4226 * system.h: Make inclusion of sys/file.h conditional on USG
4227 and _POSIX_SOURCE, not DIRENT.
4229 * chmod.c (change_dir_mode): Use xrealloc instead of free and
4230 xmalloc in case malloc already left extra room.
4231 (xrealloc): New function.
4233 * rm.c (clear_directory): Prevent buffer overruns.
4234 More efficient string handling. Don't skip rest of directory
4235 if continuing after finding circular inode.
4236 (xrealloc): New function.
4238 Sat Jun 16 01:45:42 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4240 * argmatch.c (invalid_arg): Change order in which the items
4243 * ls.c: Add +tabsize (-T) option.
4245 Fri Jun 15 23:40:55 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4247 * dd.c (scanargs): For ibs and obs, set C_HARDWAY.
4248 (copy): Use different buffers only if C_HARDWAY, not if
4249 blocksizes are the same, to ensure constant output block sizes.
4251 Wed Jun 13 23:56:20 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4253 * savedir.c: New file from code in chmod.c, modified to
4254 prevent buffer overruns.
4255 * chmod.c (change_dir_mode), cp.c (copy_dir), du.c
4256 (count_entry): Use savedir.
4258 Thu Jun 7 03:52:02 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4260 * system.h (ST_BLKSIZE) [!STBLOCKS_MISSING]: If st_blksize is
4261 0 (as on pipe reads on some systems), use BSIZE instead.
4262 Define BSIZE as DEV_BSIZE if necessary.
4264 * Makefile, system.h, fileblocks.c: Use STBLOCKS_MISSING to
4265 control whether st_blksize and st_blocks are used.
4266 * Makefile, system.h, backupfile.c: Use DIRENT to control
4267 whether <dirent.h> is used.
4269 Thu May 31 00:55:36 1990 David J. MacKenzie (djm at apple-gunkies)
4271 * fileblocks.c: New file.
4272 * du.c (blocks_to_kb): Replace with convert_blocks macro.
4273 (main): Recognize new -k option.
4274 (usage): Document it.
4275 * ls.c (nblocks): Replace with convert_blocks macro.
4276 * system.h (ST_BLKSIZE) [USG]: Use BSIZE from sys/param.h instead of
4277 having the user define BLKSIZE.
4278 (ST_NBLOCKS) [USG]: Use st_blocks from fileblocks.c.
4280 Wed May 23 00:40:39 1990 David J. MacKenzie (djm at apple-gunkies)
4282 * argmatch.c: New file, taken from ls.c.
4283 * getversion.c (get_version): Use argmatch, to allow
4284 abbreviations. Default backup type is existing_numbered.
4285 * mv.c (main), ln.c (main), cp.c (main): Only make backups if
4286 -b (+backup) is given. If envar SIMPLE_BACKUP_SUFFIX is set,
4287 use it as a default instead of `~'.
4288 * mv.c (usage), ln.c (usage), cp-aux.c (usage): Update messages.
4290 Tue May 22 00:56:51 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4292 * install.c: New file (from ../bin-src).
4294 * dd.c (copy): Don't count completely failed writes as partial
4295 writes. Make buffers unsigned. If blocking or unblocking,
4296 pad final partial buffer if necessary.
4298 * getversion.c: New file.
4299 * mv.c (main), cp.c (main), ln.c (main): Control backup types
4300 with getenv ("VERSION_CONTROL") and +version-control or -V.
4302 * cp.c (yesno), mv.c (yesno), ln.c (yesno): Stop reading if
4303 EOF reached as well as at newline.
4305 * backupfile.[ch]: Rename var `version_control' to `backup_type'.
4307 Sat May 19 23:38:46 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4309 * touch.c: Change some error messages. Include "getopt.h".
4311 Sat May 19 00:16:50 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4313 * mv.c (main), ln.c (main), cp.c (main): Revise
4314 backup-creation options.
4315 * mv.c (usage), ln.c (usage), cp-aux.c (usage): Revise messages.
4317 * chmod.c (describe_change): Use mode_string instead of
4320 * cp.c (main): Recognize new options for making backups.
4321 * cp.c (copy): Make backups if requested. Fix typo.
4322 * cp-aux.c (usage): Update message.
4324 * mv.c, cp.c: Remove code to conditionally use utimes instead
4325 of utime, since the extra resolution of utimes was not being
4326 used, the emulation overhead is probably insignificant,
4327 and utime is a standard function.
4329 * cp-hash.c: Fix up comments.
4331 Fri May 18 23:06:23 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4333 * mv.c (do_move): Only make backup if dest file exists.
4334 Don't continue moving file if dest can't be backed up.
4335 * ln.c (do_link): Don't try to unlink dest if it was backed up.
4336 Don't continue moving file if dest can't be backed up.
4338 * system.h: Make SIGTYPE default to void if not defined.
4340 * modechange.[ch]: Rename struct and external functions to start
4342 * modechange.c (oatoi): Make static.
4343 (mode_compile): Take an additional arg indicating which
4344 symbolic operators should be affected by the umask.
4345 * modechange.h: Add defines for mode_compile arg mask.
4346 If __STDC__, use prototypes.
4347 * chmod.c, mkdir.c, mkfifo.c, create.c: Account for above changes.
4349 Tue May 15 16:17:34 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4351 * dd.c (copy): Quit with nonzero status if final write fails.
4353 Mon May 14 14:34:10 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4355 * dd.c: Make translation tables unsigned.
4356 (main): Give `input_file' and `output_file' nonzero values for
4358 (parse_conversion): Set new global vars 'space_character' and
4359 'newline_character' to correct values when translating to EBCDIC
4361 (copy): Use 'space_character' and 'newline_character' instead
4362 of hardcoded ASCII values. Ignore attempts to seek on output pipe,
4363 socket, or fifo. If possible, seek instead of reading to skip
4364 initial input records. Sync with `space_character' instead of
4367 * cp.c (copy_reg): Compare lseek values as longs, not ints.
4369 Sat May 12 01:16:42 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4371 * cp-hash (remember_created): Return error status instead of
4373 * cp.c (copy): Change caller.
4374 (do_copy, copy_reg): Return error status instead of fatal error.
4376 * Move rename emulation from mv.c to dirlib.c so other
4377 programs can use it.
4378 * mv.c, ln.c (main): Recognize new options for making backups.
4379 * mv.c (do_move), ln.c (do_link): Make backups if requested.
4380 * mv.c, ln.c (usage): Update message.
4381 * backupfile.c, backupfile.h: New files.
4383 * cp.h: Ifdef out decl of umask because of SunOS 4.1 (POSIX) conflict.
4385 * Define all `main' functions as returning void.
4387 Fri May 11 02:11:03 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4389 * ln.c, mv.c, rm.c, rmdir.c, create.c, chmod.c: Change some
4392 * du.c, cp-aux.c (error): Function removed.
4393 Change callers to use error.c version.
4394 * cp.c (copy, do_copy, copy_dir): Return an error status.
4395 * ls.c (error, fatal, perror_with_name): Functions removed.
4396 Change callers to use error.c.
4398 Sat May 5 23:46:48 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4400 * ln.c (do_link): Don't allow trying to link a file to itself,
4401 because the source file would be removed if they are the same
4402 directory entry, and also for consistency with mv and cp.
4404 Fri May 4 13:42:53 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4406 * cp.c (copy_reg): Only write a null to the end of the file if
4407 the end of the file was sparse.
4409 * ls.c (print_name_with_quoting): Make the char to print
4410 unsigned to prevent sign extension problems with -b.
4412 Fri Apr 20 13:52:15 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4414 * Version 1.2 released.
4416 Wed Apr 18 14:36:15 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4418 * Makefile: Use chsize for ftruncate on Xenix.
4420 * cp.c (copy): Remove broken code that attempted to
4421 substitute for ftruncate on systems missing it.
4423 Mon Apr 16 13:58:01 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4425 * cp-aux.c (usage): Fix mistake in message.
4427 * Version 1.1 released.
4429 Sat Apr 14 17:23:11 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4431 * ls.c (main): Don't remove leading path from program_name.
4432 (basename): Function removed.
4433 (length_of_file_name_and_frills): Don't add 1 for type indicator
4434 for block and character special files.
4436 Thu Apr 12 19:50:15 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4438 * Makefile: Suggest using -DBLKSIZE=512 instead of 1024 for USG.
4440 * dd.c (copy): Print copying statistics when exiting because
4441 of a read or seek error.
4442 (interrupt_handler): New function.
4443 (main): Trap SIGINT to run interrupt_handler, for POSIX.
4445 Tue Apr 10 01:09:38 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4447 * chmod.c (change_file_mode): Don't change the mode of
4450 Mon Apr 9 13:30:00 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4452 * modechange.c (compile_mode): Return an error if an octal
4453 number argument is too large.
4455 Sun Apr 8 20:33:20 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4457 * dd.c: Use `error' instead of `fatal' and `pfatal_with_name',
4458 for greater control of the message format.
4459 * head.c, tail.c: Use `error' instead of `fatal_perror' and
4460 `nonfatal_perror'. Remove some unnecessary info from messages.
4461 * chmod.c, create.c, ln.c, mkdir.c, mkfifo.c, mv.c, mv_dir.c,
4462 rm.c, rmdir.c: Remove definition of `error'.
4463 * error.c: New file created from code in mv.c.
4464 * Makefile: Link the above programs with error.o.
4466 * ln.c (do_link): Use eaccess_stat to determine writability.
4467 * mv.c (do_move): Ditto.
4468 * rm.c (remove_file): Ditto.
4469 (remove_dir): Use eaccess_stat to determine readability and
4470 searchability. Move initial interactive query here from
4472 * Makefile: Link ln, mv, and rm with eaccess.o.
4474 Sat Apr 7 11:47:52 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4476 * Makefile: Link cp with eaccess.o.
4477 * eaccess.c: New file adapted from code in cp.c and cp-aux.c.
4478 * cp.c (copy): Use eaccess_stat to determine writability.
4479 Consider a file unwritable by root if it has no permissions.
4480 (main): Remove groups initialization code.
4481 * cp-aux.c (member): Function deleted.
4483 * cp.c (copy): Temporarily change the mode of directories if
4484 necessary to overwrite them when running recursively.
4485 Consider a directory to be non-overwritable if it lacks write
4486 permission as well as if it lacks execute permission.
4488 * rm.c, mv.c, mv_dir.c, chmod.c, create.c, ln.c: Remove some
4489 irrelevant or redundant information from error messages.
4491 Fri Apr 6 15:20:45 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4493 * cp.c (copy): Only change mode of regular files and directories;
4494 others are already correct.
4496 Thu Apr 5 04:31:56 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4498 * dd.c: Remove the vars that are set by command line options
4499 from a useless struct and give them more meaningful names.
4501 Mon Apr 2 02:58:34 1990 David J. MacKenzie (djm at spike.ai.mit.edu)
4503 * cp.c (main): Use NGROUPS from sys/param.h to determine
4504 whether BSD multiple groups are supported and how large to
4506 * Makefile: Remove references to GETGROUPS_MISSING.
4508 Sun Apr 1 18:53:57 1990 David J. MacKenzie (djm at spike.ai.mit.edu)
4510 * cp.c (main): Always initialize group info.
4512 Sat Mar 31 22:29:57 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4514 * mv.c [RENAME_MISSING] (rename): To rename directories, run
4515 setuid root mv_dir program.
4517 Tue Mar 20 14:28:25 1990 David J. MacKenzie (djm at pogo.ai.mit.edu)
4519 * touch.c: Remove POSIX_COMPAT ifdef since there is no reason
4520 to disable the GNU extensions.
4521 (main): Set new global var `program_name'.
4522 (error): Replace with more versatile version.
4523 Global: Change calls to fprintf and error to use the new error.
4524 (main): Initialize global variables. Don't bother making
4525 temporary copy of arg to -d. Don't ignore any files named on
4526 the command line if -i is given.
4527 (usage): Don't take an arg. Use `program_name' instead of
4529 (touch): In utime emulation for BSD, ftruncate the file to its
4530 original size so empty files stay empty after being touched.
4532 Sun Mar 18 01:02:39 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4534 * ln.c (strip_trailing_slashes): New function.
4535 (main, do_link): Call it.
4537 * cp-aux.c (strip_trailing_slashes): New function.
4538 * cp.c (do_copy): Call it.
4541 * mv.c (strip_trailing_slashes): New function.
4542 (main, movefile): Call it.
4544 Sat Mar 17 21:45:35 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4546 * cp-aux.c, cp.h: Rename user_confirm_overwriting to yesno and
4547 don't have it print a prompt, so it can be used in several
4550 * cp.c (do_copy): Change an error message to resemble mv's.
4551 Remove all trailing slashes from all non-option args.
4552 (main): Set new global var `stdin_not_tty'.
4553 (copy): Use POSIX method of handling file overwriting and
4556 * dirlib.c (mkdir): Use chmod to set the directory mode after
4557 successful creation, so set[ug]id and sticky bits are set
4560 Thu Mar 15 12:33:23 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4562 * Makefile: Add commented out definitions for SCO Xenix.
4564 * ls.c (print_type_indicator): Don't print a '*' next to
4565 executable block or character special files.
4567 * chmod.c (error): New function, replacing nonfatal_perror,
4568 memory_out, and invalid_mode.
4569 Global: Call error instead of the above functions.
4570 (change_dir_mode): Make the new size of the path twice the
4571 size of the name that was too long, rather than twice its old
4574 * rm.c: Move interactive query about whether to remove a
4575 directory from remove_dir to clear_directory; only query for
4576 directories that are not empty.
4578 Wed Mar 14 10:48:40 1990 David J. MacKenzie (djm at rice-chex)
4580 * system.h [USG]: Define X_OK.
4582 * rm.c (main): Set new global var `stdin_not_tty'.
4583 (rm): Most of code moved to two new functions, remove_file and
4585 (remove_file): Use POSIX method of determining whether to remove
4587 (remove_dir): Use POSIX method of determining whether to
4588 remove directories, almost.
4589 (perror_with_name): Function removed.
4590 (error): Simple version replaced with more powerful version.
4591 Global: Change calls to fprintf, perror_with_name, and old
4592 error to calls to new error.
4594 * ln.c (main): Set new global var `stdin_not_tty'.
4595 If force, turn off interactive.
4596 (do_link): By default, don't allow hard links to symbolic links to
4597 directories. Use POSIX method of determining whether to
4598 overwrite destination.
4599 (yesno): Function renamed from confirm, and arg removed.
4600 (lisdir): Function removed.
4602 * mv.c (main): Set new global var `stdin_not_tty'.
4603 (yesno): Function renamed from yes.
4604 (do_move): Use POSIX method of determining whether to
4605 overwrite destination.
4607 * Makefile: Make executables depend on .o files, not .c files,
4608 to allow for parallel compilation.
4610 Tue Mar 13 00:50:14 1990 David J. MacKenzie (djm at rice-chex)
4612 * rm.c (main): Disallow removal of paths that have '..' as the
4614 (basename): New function.
4616 * ls.c (print_type_indicator): Mark FIFOs with '|' and sockets
4618 (print_long_format): Print numbers as unsigned and add extra
4619 space for POSIX flag.
4621 * dd.c: Make the record counts unsigned.
4622 (quit): Print them as unsigned.
4624 * modechange.c (compile_mode): Only get umask value when needed.
4625 If users are not given or are `a', affect set?id and sticky bits.
4626 If memory is exhausted while allocating a new list element,
4627 free the old elements before returning.
4629 * Makefile (CC): Add comment noting that either fixincludes or
4630 -traditional needs to be used for gcc to compile ioctl calls
4633 Mon Mar 12 16:25:23 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
4635 * touch.c [UTIME_OF_NULL_MISSING]: Call lseek() before write().
4637 * posixtime.y [__GNUC__]: Use __builtin_alloca.
4639 Fri Mar 9 10:25:09 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4641 * chmod.c (main): Recognize "a,+-=" as valid options.
4643 * mv.c: Move the code to copy files across filesystems from
4644 do_move to a new function, copy, which will eventually be
4645 replaced with modules from cp and rm (POSIX requires mv to
4646 move directories recursively across filesystems).
4647 (do_move): Don't query about overriding a mode that prohibits
4648 writing if interactive. Remove unneeded variable.
4649 (copy): Unlink target if copy fails partway through.
4651 Thu Mar 8 10:56:16 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4653 * cp.c (copy): Don't remove a destination file of a different
4654 type unless +force is given.
4656 * ls.c (decode_switches, usage): Add -U (for "unsorted") as an
4657 equivalent to +sort=none.
4659 Mon Mar 5 16:31:14 1990 Torbj|rn Granlund (tege at echnaton)
4661 * cp.c (copy): Test for temporarily modified permission mode
4662 after the other test, so that `-p' work for files whose mode
4663 needed a temporary mode change.
4664 * cp.c (copy): Don't waste time calling unlink if we already
4665 know that the destination doesn't exists.
4666 * cp.c (comment before do_copy): Correct.
4667 * cp.c (comment before copy): Describe all params.
4668 * cp.c (copy): Only change permission mode for regular files
4670 * cp.c (copy): Unlink the destination file if its type is
4671 different from the source. If the destination is a
4674 Mon Mar 5 00:34:36 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4676 * chmod.c (nonfatal_perror): Don't check for force_silent.
4677 (change_file_mode, change_dir_mode): If force_silent, don't
4678 print error messages.
4680 * mv.c (main): If force, turn off interactive.
4681 (do_move): Simplify check for query. Rename `stb' to
4682 `to_stats' and `stbf' to `from_stats'.
4683 Return error condition if original file could not be renamed or
4686 * rm.c: Rename global `force_flag' to `ignore_errors' and change its
4687 meaning so that it does not overlap with `override_mode'.
4688 (main): Have -f +force set override_mode. If override_mode is
4689 set, turn off interactive.
4690 (rm): Simplify checks for whether to query the user, based on
4691 the new relationship between override_mode and interactive.
4693 Sun Mar 4 23:39:03 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4695 * ln.c (main): Reword an error message to be more like mv's.
4697 * rmdir.c: Move global `errors' into main instead of having
4700 * mkdir.c: Move global `errors' into main and have make_path
4701 return an error status instead of having error set it.
4703 * chmod.c: Move global `errors' into main and have
4704 change_file_mode and change_dir_mode return an error status
4705 instead of setting it in nonfatal_perror.
4707 Sat Mar 3 13:59:40 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4709 * ln.c (main): Don't strip leading dirs from argv[0].
4711 * ln.c (confirm), mv.c (yes, do_move),
4712 cp-aux.c (user_confirm_overwriting), rm.c (rm, yesno, check_stack):
4713 Print query messages to stderr instead of stdout, for POSIX.
4714 Include program name in messages.
4716 Sat Mar 3 11:27:27 1990 Torbj|rn Granlund (tege at echnaton)
4718 * cp.c (copy): Don't unlink directories with flag_force
4719 (`-f'). Also avoid using force when not necessary.
4720 Always copy fifo's and symbolic links as themselves.
4722 * cp.c (copy_reg): Make int scan first, char scan then, to
4723 find first non-zero byte. This to avoid false hole
4726 Sat Mar 3 10:22:28 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4728 * mv.c: Rename `pgm' to `program_name'. Move global `errors'
4729 into main. Have do_move and movefile return an error status
4730 instead having error set it. Remove global vars `args'
4732 (main): Rename `ac' and `av' to `argc' and `argv' and use them
4733 and `optind' instead of `args' and `args_left'.
4735 * cp.c (copy): Don't ignore errors other than EPERM from chown.
4737 Fri Mar 2 16:20:57 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4739 * rm.c (main, usage): Allow -R as a synonym for -r, for POSIX.
4741 * cp.c (copy): If flag_preserve, preserve the owner and group
4742 if possible, as well as mode.
4743 (main): Allow -R as a synonym for -r option, for POSIX.
4744 * cp-aux.c (usage): Mention -R.
4746 Tue Feb 27 11:49:04 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4748 * cp.c (copy): If not recursive, copy special files and
4749 symlinks like regular files and omit fifos.
4751 Mon Feb 26 19:55:24 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
4753 * ls.c (print_long_format): If time is in the future, print the year.
4754 Make the cutoff for old files 6 months not 300 days.
4756 Mon Feb 26 13:31:07 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
4758 * touch.c, Makefile: Use getdate.y instead of unctime.y.
4760 * touch.c: Remove posixtime.
4761 (main): Check for error from posixtime.
4762 posixtime.y: New file.
4764 * touch.c: Change a few cryptic error messages.
4765 Include <errno.h> not <sys/errno.h>.
4766 (just_set_amtime): New variable.
4767 (touch): Add if (just_set_amtime) code.
4769 Mon Feb 26 15:03:29 1990 Torbj|rn Granlund (tege at echnaton)
4771 * cp.c (copy): Test for recursive copy in DIR alternative in
4772 the switch statement, so all file types are copied correctly
4773 even in a non-recursive copy.
4774 * cp.c (copy): Return after having created a symlink, since
4775 chmod and utimes dereference, and would affect the symlink
4776 target. Remove test for symlinks after switch.
4778 Sun Feb 25 18:31:09 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4780 * Makefile: Compile ls after vdir so systems with a cc that
4781 can't do -c -o don't have to compile ls.c twice for ls.
4783 * dd.c (usage): Add braces around alternatives.
4785 * ls.c (print_long_format): Always print the group, for POSIX.
4786 (decode_switches): Make -g option a no-op for BSD users.
4787 (usage): Remove +group option.
4789 Wed Feb 21 11:13:26 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4791 * ln.c (error): New function.
4792 (main, do_link): Call error instead of fprintf and exit.
4793 (main): Recognize new -d +directory option to allow superuser to
4794 make hard links to dirs, like the BSD ln -f option.
4795 (do_link): Don't allow hard links to dirs (they are hard to
4796 get rid of -- rmdir and unlink don't do it), unless -d was given.
4797 (usage): Mention -d +directory option.
4799 * rmdir.c (main): Remove trailing slashes from args (added by
4800 shell file completion but the rmdir syscall can't handle them).
4801 * mkdir.c (main): Remove trailing slashes from args, for
4802 uniformity with rmdir (you can't do file completion on dirs
4803 that haven't been made yet . . .).
4805 * mv.c: Rename global var `nargs' to `args_left' to avoid
4806 conflict with undocumented BSD libc function (the new name is
4809 Tue Feb 20 17:09:19 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4811 * dd.c: Use new global var `program_name' in error messages
4812 instead of hardcoded "dd".
4813 (main): Set program_name from argv[0].
4815 * chmod.c, head.c, tail.c (main): Don't strip leading dirs
4817 (basename): Function removed.
4819 * rm.c (main): Don't strip leading dirs from argv[0].
4821 Mon Feb 19 14:34:18 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4823 * rm.c (main): Strip trailing slashes from each arg.
4825 Thu Feb 15 13:23:52 1990 David J. MacKenzie (djm at rice-chex)
4827 * Makefile [HPUX CFLAGS]: Add -DUTIMES_MISSING.
4829 Wed Feb 14 15:01:18 1990 David J. MacKenzie (djm at rice-chex)
4831 * Makefile (dist): Don't make a non-compressed tar file.
4833 * mv.c (do_move): Refuse to copy non-regular files across filesystems.
4835 Tue Feb 13 15:06:18 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
4837 * touch.c (getname): New function.
4840 Mon Feb 12 11:30:45 1990 David J. MacKenzie (djm at rice-chex)
4842 * ln.c (do_link): Check error return from unlink.
4845 * du.c (main): Check error return from stat.
4846 (str_copyc, str_concatc): Don't return a value, since it is
4849 * cp.c (copy): Check error return from unlink and chmod. Fix
4850 typo in call to error.
4852 * mv.c (do_move): Check error return of fchmod/chmod and utime[s].
4853 (rename): Check error return of unlink.
4855 * Makefile Definitions of preprocessor macros moved from
4856 cp.c and mv.c. HAVE_FTRUNCATE changed to FTRUNCATE_MISSING.
4857 * Makefile, dirlib.c: NEED_MKDIR changed to MKDIR_MISSING.
4858 * mv.c, cp.c: Change USG ifdefs to UTIMES_MISSING.
4860 Sun Feb 11 17:50:29 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4862 * chmod.c (usage): Add yet another ellipsis.
4864 Sun Feb 11 16:41:30 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
4866 * cp.c (copy_reg): Use HAVE_FTRUNCATE to decide whether to
4868 (main): Use GETGROUPS_MISSING to decide whether to use getgroups().
4869 [hpux || !USG]: Define HAVE_FTRUNCATE.
4870 [USG && !hpux]: Define GETGROUPS_MISSING.
4871 mv.c (rename): Put in #ifdef RENAME_MISSING not #ifdef USG.
4872 (do_move): Use FCHMOD_MISSING to decide whether to use fchmod().
4873 [USG && !hpux]: Define FCHMOD_MISSING and RENAME_MISSING.
4875 Fri Feb 9 10:25:03 1990 David J. MacKenzie (djm at rice-chex)
4877 * mv.c (movefile): Remove trailing slashes from FROM (some
4878 filename completion systems add them for dirs, and they cause
4879 the rename syscall to fail).
4881 Thu Feb 8 22:50:12 1990 Torbj|rn Granlund (tege at sics.se)
4883 * cp.c (copy_reg): Change error handling after lseek, since
4884 this is a fatal error. Also change error message to
4885 something more generally understood.
4886 * Handle files that end in a zero block on USG systems.
4888 * cp-aux.c (error): Use FATAL to recog fatal errs.
4890 Thu Feb 8 21:25:40 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4892 * ln.c: Remove incorrect comment.
4894 * cp.c, cp-aux.c (usage): Change +dereference option to
4895 +no-dereference, since dereferencing is done by default and
4896 the option turns it off.
4898 Mon Feb 5 17:29:20 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4900 * Version 1.0 released.
4905 version-control: never