1 Sun Dec 8 07:22:38 1996 Jim Meyering <meyering@na-net.ornl.gov>
3 =========== Update for automake-1.1k.
4 * Makefile.am (AUTOMAKE_OPTIONS): Require 1.1k.
5 * configure.in (AM_CONFIG_HEADER): Use it.
6 (AC_OUTPUT): Remove stamp-h timestamping statement.
7 Now, AM_CONFIG_HEADER does it automatically.
8 * lib/Makefile.am (noinst_LIBRARIES): Rename to libfu.a as per
9 new automake requirement.
10 Rename fu_* variables to libfu_a_*.
12 Mon Dec 2 20:30:20 1996 Jim Meyering <meyering@na-net.ornl.gov>
14 * configure.in (jm_FUNC_MKTIME): Use this instead of AM_FUNC_MKTIME.
16 * src/system.h [!S_IXUGO] (S_IXUGO): Define it.
18 * src/ls.c (print_color_indicator): Check the file's suffix only
19 if it's a regular file.
20 Reported by Santiago Vila Doncel.
21 (print_type_indicator): Use S_IXUGO instead of writing out
22 (S_IEXEC | S_IXGRP | S_IXOTH).
23 (length_of_file_name_and_frills): Likewise.
25 Sun Dec 1 13:07:39 1996 Jim Meyering <meyering@na-net.ornl.gov>
27 * lib/getdate.y (date): Interpret the date, L/M/N, as YYYY/MM/DD
28 if L >= 1000, otherwise as MM/DD/YY. With this change,
29 date --date=DATE accepts dates like those in an RCS log listing.
31 Sat Nov 30 22:11:42 1996 Jim Meyering <meyering@na-net.ornl.gov>
33 * acinclude.m4: (jm_FUNC_MKTIME): New macro. This is like
34 AM_FUNC_MKTIME, but with one addition: when it replaces the
35 function, it also redefines mktime to gnu_mktime.
37 Fri Nov 29 21:19:13 1996 Jim Meyering <meyering@na-net.ornl.gov>
39 * src/install.c (copy_file): Allow installation from non-directory
40 (rather than only regular) files. Suggestion from Charles Karney.
42 * src/df.c (main): Accept -F as a synonym for -t for compatibility
43 with Solaris. From Peter Eriksson.
45 * src/ls.c (main): Close stdout and check result, in case any
47 Use EXIT_SUCCESS and EXIT_FAILURE in exit and usage calls.
49 Thu Nov 28 13:10:22 1996 Jim Meyering <meyering@na-net.ornl.gov>
51 * src/df.c (find_mount_point): Use strip_trailing_slashes and dirname
52 instead of open-coding them. When given FILE containing no slashes,
53 chdir to the directory containing it (the current directory) rather
56 Tue Nov 5 14:51:56 1996 Miles Bader <miles@gnu.ai.mit.edu>
58 * src/df.c (find_mount_point): Use save_cwd/restore_cwd.
59 "save-cwd.h": New include.
61 Wed Oct 30 00:21:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
63 * lib/fsusage.c (get_fs_usage): If DISK is 0 and we needed to use
64 it, return -1 with 0 in ERRNO.
65 * src/df.c (show_dev): Deal with null values for DISK and FSTYPE,
66 including interpreting special 0 errno return from get_fs_usage.
67 (show_point): Don't fail if we can't find a mount entry for POINT,
68 just call show_dev with 0 values and let it fail if necessary.
69 (main): Require a non-zero MOUNT_LIST only if showing all filesystems.
70 (find_mount_point): New function.
71 (xgetcwd): New declaration.
73 Thu Nov 28 00:31:11 1996 Jim Meyering <meyering@na-net.ornl.gov>
75 * configure.in (AM_GNU_GETTEXT): Renamed from ud_GNU_GETTEXT
78 Tue Nov 26 23:24:13 1996 Jim Meyering <meyering@na-net.ornl.gov>
80 * acinclude.m4: Update with macros from gettext-0.10.25.
82 Sun Nov 24 22:43:24 1996 Jim Meyering <meyering@na-net.ornl.gov>
84 * acconfig.h (mktime): Add undef for my enhanced (beyond automake's
85 1.1g version of) AM_FUNC_MKTIME.
87 * acinclude.m4 (AM_FUNC_GETLINE): Use am_, not su_ prefix for
88 local/cache variables.
90 Sat Nov 23 16:11:59 1996 Jim Meyering <meyering@na-net.ornl.gov>
92 * lib/Makefile.am (EXTRA_DIST): Add getline.c now that getline
93 isn't mentioned in AC_REPLACE_FUNCS.
95 * lib/Makefile.am (EXTRA_DIST):
97 * chgrp.c (usage): Alphabetize option descriptions the way
99 * chown.c (usage): Likewise.
100 * cp-aux.c (usage): Likewise.
101 * df.c (usage): Likewise.
102 * install.c (usage): Likewise.
103 * ln.c (usage): Likewise.
104 * ls.c (usage): Likewise.
105 * mkdir.c (usage): Likewise.
106 * mv.c (usage): Likewise.
107 * rm.c (usage): Likewise.
110 Fri Nov 22 22:14:10 1996 Jim Meyering <meyering@na-net.ornl.gov>
112 * configure.in (AC_REPLACE_FUNCS): Don't try to replace getline this
113 way. AM_FUNC_GETLINE does it now.
114 (AM_FUNC_GETLINE): Use it here.
116 * src/cp.c (copy): With -i and not -f, prompt for any type of
117 (non-directory) source file before overwriting an existing target.
118 Reported by Mark A. Thomas and Emile LeBlanc.
120 Tue Nov 19 23:10:32 1996 Jim Meyering <meyering@na-net.ornl.gov>
122 * configure.in (AM_SANITY_CHECK_CC): Remove it. Autoconf-2.11
124 (AC_FUNC_FNMATCH): Use this macro (new with autoconf-2.11) instead
127 Sun Nov 17 20:53:00 1996 Jim Meyering <meyering@na-net.ornl.gov>
129 * src/touch.c: Remove unused declaration of mktime. From Tony Leneis.
131 Mon Nov 4 23:18:03 1996 Jim Meyering <meyering@na-net.ornl.gov>
133 * configure.in (test for group_member): Handle it separately
134 so I can keep the hyphen (not the underscore) in the filename.
136 * lib/rename.c: New version from François Pinard.
138 Sat Nov 2 07:05:36 1996 Jim Meyering <meyering@na-net.ornl.gov>
140 * src/ls.c (gobble_file): Set linkok for non-orphaned symlinks.
141 From Bauke Jan Douma.
142 (gobble_file): Initialize linkok.
143 With these two changes, ls --color should display orphaned symlinks
144 as blinking text on terminals that support it.
146 * configure.in (ALL_LINGUAS): Add Spanish (es).
148 * doc/Makefile.am (MAKEINFO): Set to makeinfo --no-split.
149 Otherwise, the generated info files have names longer than
150 the 14-byte max of some old systems.
151 Reported by Karl Heuer.
153 Tue Oct 29 06:49:16 1996 Jim Meyering <meyering@na-net.ornl.gov>
155 * src/ls.c (decode_switches): Make -A set really_all_files to zero
156 as well as setting all_files to 1. With this change, ls -f -A prints
157 everything but . and .., unsorted. Before, the -A was effectively
158 ignored. From Karl Berry.
160 Tue Oct 22 07:00:00 1996 Jim Meyering <meyering@na-net.ornl.gov>
162 * src/Makefile.am (dircolors.h): Depend on dcgen only in maintainer
165 Mon Oct 21 16:52:28 1996 Jim Meyering <meyering@na-net.ornl.gov>
167 * lib/Makefile.am (EXTRA_DIST): Remove group-member.c.
168 Add (temporary hack to work around bug in automake-1.1f) mvdir.c and
171 * configure.in: Remove hack that created link from group_member.c
174 * lib/group_member.c: New file. Renamed from group-member.c.
175 * lib/group-member.c: Delete.
177 * src/dircolors.hin: Comment out DOS-style suffixes.
179 Sun Oct 20 13:49:25 1996 Jim Meyering <meyering@na-net.ornl.gov>
181 * lib/Makefile.am (INCLUDES): Add -I../intl. Reported by Eric Backus.
183 * Makefile.am (AUTOMAKE_OPTIONS): Set to `gnits'.
184 (EXTRA_DIST): Remove.
186 * configure.in: Remove README_ALPHA related code. Automake takes
187 care of it automatically now when in gnits mode.
189 Sun Oct 13 14:02:41 1996 Jim Meyering <meyering@na-net.ornl.gov>
191 * src/ls.c (print_long_format): Use strftime of localtime
192 (not ctime) to produce the date/time in long listings.
193 From Rafal Maszkowski.
195 Sat Oct 12 18:20:38 1996 Jim Meyering <meyering@na-net.ornl.gov>
197 * lib/mountlist.c (fstype_to_string): Handle fstypes of freebsd.
198 From Arne Henrik Juul.
200 Thu Oct 10 23:47:34 1996 Jim Meyering <meyering@na-net.ornl.gov>
202 * lib/Makefile.am (EXTRA_DIST): Remove posixtm.y and getdate.y.
203 (fu_SOURCES): Put them here instead.
204 Remove rules for building getdate.c and posixtm.c; now automake
205 generates those rules.
206 * lib/ylwrap: New file.
207 * lib/interlock: New file.
209 Wed Oct 9 06:51:47 1996 Jim Meyering <meyering@na-net.ornl.gov>
211 * src/ls.c (usage): Improve brief descriptions of --sort and --time.
212 From François Pinard.
214 * lib/rpmatch.c [!WITH_REGEX]: Include rx.h.
217 Mon Oct 7 23:31:10 1996 Jim Meyering <meyering@na-net.ornl.gov>
219 * lib/Makefile.am (EXTRA_DIST): Remove names of several files
220 that automake adds automatically.
221 (fu_SOURCES): Likewise.
222 (fu_DEPENDENCIES): Depend on fu_LIBADD.
224 * src/chown.c (usage): Improve usage message.
225 * src/cp-aux.c (usage): Likewise.
226 * src/ls.c (usage): Likewise.
227 * src/install.c (strip): Improve diagnostic.
230 * src/Makefile.am (noinst_HEADERS): Add dircolors.h.
231 (dircolors.h): Always depend on dcgen.
233 Sat Oct 5 08:07:03 1996 Jim Meyering <meyering@na-net.ornl.gov>
235 * acinclude.m4 (AM_FUNC_ERROR_AT_LINE): New macro.
236 (AM_FUNC_OBSTACK): New macro.
238 * configure.in (AM_FUNC_ERROR_AT_LINE): Use this instead of
240 (AM_FUNC_OBSTACK): Likewise.
242 * lib/filemode.c (ftypelet) [HAVE_ST_DM_MODE]: Add support for
243 Cray's migrated dmf files.
244 * src/ls.c (print_long_format) [HAVE_ST_DM_MODE]: Likewise.
245 * acconfig.h [HAVE_ST_DM_MODE]: New macro.
246 From Johan Danielsson.
248 * acinclude.m4 (AC_HEADER_SYS_TIME_H): New macro.
249 (AM_FUNC_MKTIME): Require AC_HEADER_SYS_TIME_H so that configure's
250 checking... messages don't get nested.
252 * configure.in (GNU_PACKAGE): New variable.
253 (PACKAGE_VERSION): Remove it.
255 * acconfig.h (GNU_PACKAGE): New variable.
256 (PACKAGE_VERSION): Remove now-unused variable.
258 * src/*.c: Update --version output to conform to the coding standard.
260 Wed Oct 2 21:44:36 1996 Jim Meyering <meyering@na-net.ornl.gov>
262 * src/dircolors.c (usage): Deprecate --print-data-base even though
263 that's the way GNU make writes it. `database' is one word.
264 Add description of FILE argument.
266 Tue Oct 1 12:56:23 1996 Jim Meyering <meyering@na-net.ornl.gov>
268 * lib/Makefile.am (fu_SOURCES): Remove getline.c.
269 (EXTRA_DIST): Add getline.c.
270 Reported by François Pinard.
272 Mon Sep 30 20:08:45 1996 Jim Meyering <meyering@na-net.ornl.gov>
274 * src/Makefile.am (dircolors.h): Don't depend on anything unless
275 in maintainer-mode. Reported by Marcus Daniels.
277 * lib/path-concat.c (path_concat): Use K&R style function definition.
279 Sun Sep 29 22:00:44 1996 Jim Meyering <meyering@na-net.ornl.gov>
281 * configure.in (ALL_LINGUAS): Add slovenian (sl).
283 * src/cp-aux.c (usage): Take only one argument -- like all the other
286 * src/cp.c (do_copy): Give better error message when copying multiple
287 files and the last one is not a directory. From Karl Berry.
288 Call error (0, 0, ... then usage (1) -- instead of calling usage
291 Sat Sep 28 13:16:29 1996 Jim Meyering <meyering@na-net.ornl.gov>
293 * lib/getversion.c (backup_types): Declare const.
294 (backup_args): Likewise.
296 Sat Sep 21 10:22:28 1996 Jim Meyering <meyering@na-net.ornl.gov>
298 * src/dircolors.c (xstrndup): Use message that's the same as the one
299 you get from e.g., xmalloc. Reported by Santiago Vila.
301 Thu Sep 19 22:13:31 1996 Jim Meyering <meyering@na-net.ornl.gov>
303 * lib/Makefile.am (fu_SOURCES): Remove regex.c and rx.c.
304 (EXTRA_DIST): Put them here instead.
306 * configure.in ($PACKAGE, $VERSION): Don't AC_DEFINE_UNQUOTED these.
307 AM_INIT_AUTOMAKE now does it (as of automake-1.1e).
309 * lib/Makefile.am (fu_SOURCES): Move getopt.c and getopt1.c back to
311 * configure.in (AC_REPLACE_GNU_GETOPT): Remove it -- it's not
314 * acinclude.m4 (AM_SANITY_CHECK_CC, AC_SYS_POSIX_TERMIOS,
315 AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Remove definitions.
316 Now automake's aclocal includes them.
318 Sun Sep 15 23:08:48 1996 Jim Meyering <meyering@na-net.ornl.gov>
320 * Makefile.am (EXTRA_DIST): Remove acinclude.m4.
322 Mon Sep 9 21:39:49 1996 Jim Meyering <meyering@na-net.ornl.gov>
324 * src/cp.c (do_copy): Describe in a little more detail the code
325 that makes `cp non-directory file/' (eventually) fail.
327 Sun Sep 8 12:54:31 1996 Jim Meyering <meyering@na-net.ornl.gov>
329 * src/dircolors.c (usage): Refer to LS_COLORS, not LS_COLOR.
330 From Santiago Vila Doncel.
332 * src/cp.c (do_copy): Set backup_type to `none' only *after*
333 calling to find_backup_file_name. Reported by Eli Zaretskii.
335 Sat Sep 7 12:25:42 1996 Jim Meyering <meyering@na-net.ornl.gov>
337 * lib/regex.c, lib/regex.h: New files.
338 * lib/rx.c, lib/rx.h: New files.
340 * lib/Makefile.am (INCLUDES): Add -I../intl so compiler will find
341 libintl.h for rpmatch.c.
343 * src/system.h: Add comments justifying IS* versions of ctype.h macros.
345 Thu Sep 5 18:12:44 1996 Jim Meyering <meyering@na-net.ornl.gov>
347 * src/chmod.c (main): Don't set verbose flag for --changes.
348 (change_file_mode): If chmod succeeds and --changes was given,
349 give a diagnostic describing the new permissions.
350 Reported by Philippe Schnoebelen (phs@fing.edu.uy).
352 * src/cp.c (do_copy): When concatenating DEST (with a trailing `/')
353 and the basename part of non-directory SOURCE, don't add a slash
356 Wed Sep 4 21:42:32 1996 Jim Meyering <meyering@na-net.ornl.gov>
358 * lib/rpmatch.c: Make sure NULL is defined by including stddef.h
359 (if STDC_HEADERS || _LIBC) or simply defining it (otherwise).
360 Include sys/types.h for definition of size_t needed by regex.h.
362 * lib/Makefile.am (fu_SOURCES): Add regex.c and rx.c.
363 (noinst_HEADERS): Add regex.h and rx.h.
365 * configure.in (AM_SANITY_CHECK_CC): Use it.
366 (AM_WITH_REGEX): Use it.
368 * acconfig.h (WITH_REGEX): Add it.
370 Tue Sep 3 08:13:09 1996 Jim Meyering <meyering@na-net.ornl.gov>
372 * lib/rpmatch.c (rpmatch): Set yesexpr to "^[yY]" and noexpr to
373 "^[nN]"; this conforms to POSIX.2. From Paul Eggert
374 <eggert@twinsun.com>.
376 Mon Sep 2 10:59:10 1996 Jim Meyering <meyering@na-net.ornl.gov>
378 * POTFILES.in: Add lib/rpmatch.c.
380 * lib/rpmatch.c (ENABLE_NLS): Include libintl.h and define _ to
383 * src/*.c (usage): Tell where to report bugs.
385 Sat Aug 31 18:48:18 1996 Jim Meyering <meyering@na-net.ornl.gov>
387 * src/touch.c (utime_now): Protoize.
388 Reported by David S. Miller (davem@caip.rutgers.edu).
390 Sun Aug 25 22:43:15 1996 Jim Meyering <meyering@na-net.ornl.gov>
392 * acinclude.m4 (AM_FUNC_MKTIME): New macro.
393 * configure.in (AM_FUNC_MKTIME): Use it.
394 (AC_REPLACE_FUNCS): Remove mktime.
396 Wed Aug 21 23:17:04 1996 Jim Meyering <meyering@na-net.ornl.gov>
398 * src/Makefile.am (EXTRA_DIST): Remove ansi2knr.1 and ansi2knr.c.
399 Automake includes them automatically.
401 * configure.in (AM_INIT_AUTOMAKE): Use it.
402 (AM_PROG_INSTALL): Remove. AM_INIT_AUTOMAKE does this.
403 (AC_PROG_MAKE_SET): Likewise.
405 Sun Aug 18 09:52:39 1996 Jim Meyering <meyering@na-net.ornl.gov>
407 * configure.in (jm_MAINTAINER_MODE, fp_C_PROTOTYPES): Rename with
408 AM_ prefix for latest automake/aclocal.
410 * lib/Makefile.am (noinst_HEADERS): Add path-concat.h.
411 (fu_SOURCES): Add path-concat.c.
413 * src/mv.c: Include path-concat.h.
414 (movefile): Use path_concat instead of open-coding its functionality.
415 Declare pointer parameters const as appropriate.
417 * src/cp.c: Include path-concat.h.
418 (do_copy): Check path_concat return value.
419 (path_concat): Remove function.
421 * lib/path-concat.h: New file.
422 * lib/path-concat.c (path_concat): New file. Just like the function
423 from cp.c except the stand-alone version uses malloc instead of
426 * configure.in (ALL_LINGUAS): Add Dutch (nl).
428 Fri Aug 16 21:59:24 1996 Jim Meyering <meyering@na-net.ornl.gov>
430 * src/chgrp.c (parse_group): Don't abort when given a group number
431 larger than INT_MAX. Fix bug whereby root could run
432 `chgrp INVALID-GROUP FILE' and it wouldn't fail, but rather would
433 change FILE's group to some indeterminate value. This problem
434 was reported as Debian Bug#4119 via Erick Branderhorst
436 Declare pointer parameters const as appropriate.
438 Thu Aug 1 22:12:15 1996 Jim Meyering <meyering@na-net.ornl.gov>
440 * src/system.h (ST_NBLOCKS) [_CRAY]: Special case for Cray.
441 * lib/fsusage.c (get_fs_usage) [STAT_STATFS4] [_CRAY]: Define
443 From Johan Danielsson.
445 Wed Jul 31 23:39:23 1996 Jim Meyering <meyering@na-net.ornl.gov>
447 * src/ln.c [LINK_TYPE]: Remove macro. NLS messages aren't
448 extracted from macros. Reported by Santiago Vila.
449 (link_type_string): New global variable to be used instead of
452 (do_link): Use it (instead of macro) here.
454 Tue Jul 30 23:24:18 1996 Jim Meyering <meyering@na-net.ornl.gov>
456 * configure.in (AC_CHECK_HEADERS): Add sys/fs/s5param.h.
457 * lib/fsusage.c [HAVE_SYS_FS_S5PARAM_H]: Include sys/fs/s5param.h
458 to work around bug in sys/filsys.h of Fujitsu UXP/V.
459 From by Johan Danielsson.
461 * src/cp.c (DO_CHOWN): New macro -- derived from code in copy.
462 (copy): Use DO_CHOWN to assure that any newly-created symbolic
463 links have proper owner and group.
465 Sat Jul 27 17:22:14 1996 Jim Meyering <meyering@na-net.ornl.gov>
467 * src/system.h (bindtextdomain) [!ENABLE_NLS]: Undefine to avoid
468 redefinition warnings on solaris.
469 (textdomain) [!ENABLE_NLS]: Likewise.
471 Thu Jul 25 21:10:42 1996 Jim Meyering <meyering@na-net.ornl.gov>
473 * src/chgrp.c (main): Fix typo in getopt_long string: s/n/h/.
474 Reported by Ken Pizzini.
476 Wed Jul 24 22:24:37 1996 Jim Meyering <meyering@na-net.ornl.gov>
478 * src/dircolors.c (usage): Remove -h. It is not an option.
479 Reported by Ulrich Drepper.
481 Sun Jul 21 11:58:48 1996 Jim Meyering <meyering@na-net.ornl.gov>
483 * configure.in (AC_CHECK_HEADERS): Add sys/timeb.h for lib/getdate.y.
484 This was a problem for SCO OSR5. From Bela Lubkin <belal@sco.com>.
485 (statvfs test): Arrange for this test to fail (as it should) for
486 SCO OSR5. Suggestion from Bela Lubkin.
488 * src/Makefile.am (BUILT_SOURCES): Remove @MAINT@.
489 (dircolors.h): Remove @MAINT@. These prevented `make distcheck'
490 from working sometimes.
492 * lib/yesno.c (yesno) [!HAVE_RPMATCH]: Remove function since we'll
493 always use the rpmatch-based version.
496 * lib/rpmatch.c [STDC_HEADERS]: Guard inclusion of stdlib.h.
498 (try): Add RESPONSE parameter.
499 (rpmatch): Update caller.
500 Anchor regular expressions to beginning of string.
502 * configure.in (AC_CHECK_FUNCS): Don't check rpmatch.
504 * acconfig.h (HAVE_OBSTACK): Undef it.
506 The following is from Ulrich Drepper.
508 * configure.in (AC_REPLACE_FUNCS): Add rpmatch.
509 * lib/Makefile.am (EXTRA_DIST): Add rpmatch.c.
510 * lib/rpmatch.c: New file.
511 * lib/yesno.c (yesno): New rpmatch-based version of the function.
512 * config.h.in (HAVE_RPMATCH): Undef it.
514 * lib/Makefile.am (EXTRA_DIST): Put error.c and obstack.c here...
515 (fu_SOURCES): Instead of here.
517 * configure.in (AC_CHECK_FUNCS): Add rpmatch.
518 Add checks for error_at_line and obstacks so systems with GNU libc
519 don't compile and link with distributed error.c and obstack.c.
521 * configure.in (AC_REPLACE_FUNCS): Replace getline.c.
522 Add related check for the getdelim function. As done in gettext.
524 Sat Jul 20 17:01:56 1996 Jim Meyering <meyering@na-net.ornl.gov>
526 * lib/Makefile.am (fu_SOURCES): Remove error.c, and obstack.c.
527 (EXTRA_DIST): Add error.c, and obstack.c.
529 * configure.in (PACKAGE_VERSION): Use space instead of hyphen to
530 separate PACKAGE and VERSION.
532 Fri Jul 19 23:28:36 1996 Jim Meyering <meyering@na-net.ornl.gov>
534 * src/cp.c (path_concat): Rewrite to return new parameter.
535 (do_copy): Update uses of path_concat to use new parameter.
536 Use that new pointer to compute correct offset for make_path_private.
537 Before, cp --recursive --parents SRC DEST failed when SRC was
538 an absolute file name. E.g.,
539 % cd /tmp; rm -rf d f; mkdir d; touch f; cp -PR /tmp/f d
540 cp: tmp: No such file or directory
541 Reported by Horst von Brand vonbrand@sleipnir.valparaiso.cl.
543 Thu Jul 18 21:58:51 1996 Jim Meyering <meyering@na-net.ornl.gov>
545 * src/install.c [_AIX]: Add #pragma alloca.
546 From Bernd Leibing <bernd.leibing@rz.uni-ulm.de>.
548 * src/chgrp.c (main): Initialize for internationalized message support:
549 call setlocale, bindtextdomain, and textdomain. Reported by
550 Michel Robitaille <robitail@IRO.UMontreal.CA>.
552 Wed Jul 17 22:37:40 1996 Jim Meyering <meyering@na-net.ornl.gov>
554 * configure.in (ALL_LINGUAS): Add polish (pl).
556 Mon Jul 15 23:42:57 1996 Jim Meyering <meyering@na-net.ornl.gov>
558 * Many files: Update FSF address.
560 Sun Jul 14 07:53:45 1996 Jim Meyering <meyering@na-net.ornl.gov>
562 * src/du.c (usage): Sort option descriptions in dictionary order.
564 Sat Jul 13 07:34:24 1996 Jim Meyering <meyering@na-net.ornl.gov>
566 * src/dircolors.c (long_options): Add missing last line of NULL
567 entries. From Ralph Loader <loader@maths.ox.ac.uk>.
569 Thu Jul 11 21:50:48 1996 Jim Meyering <meyering@na-net.ornl.gov>
573 * dircolors.1: New file -- but just a pointer to texinfo docs.
574 * man/Makefile.am (man_MANS): Add dircolors.1.
576 * configure.in (VERSION): Bump to 3.13.
578 Wed Jul 10 22:57:29 1996 Jim Meyering <meyering@na-net.ornl.gov>
580 * aclocal.m4 (fp_PROG_CC_STDC): Include sys/stat.h in test program
581 so that DYNIX/ptx V4.1.3 doesn't use `-Xc -D__EXTENSIONS__' -- with
582 those options on that system, sys/stat.h gets compile errors.
583 With help from Marcus Daniels.
585 * getopt.c: Update from gettext-0.10.23.
586 * getopt1.c: Likewise.
587 * getopt.h: Likewise.
589 Tue Jul 9 20:19:44 1996 Jim Meyering <meyering@na-net.ornl.gov>
591 * src/dircolors.c (usage): Improve --help message. From Karl Berry.
592 (long_options): Add print-data-base and print-database.
594 * src/dircolors.c (dc_parse_stream): Don't give `unrecognized keyword'
595 message unless we've processed a matching TERM directive. Reported
596 by Karl Berry and François Pinard.
598 * src/install.c (UID_T_MAX): Use `(unsigned long)1' rather than
599 `(uid_t)1' to avoid problems on systems where uid_t is signed.
600 (GID_T_MAX): Likewise for gid_t.
601 From Kjetil Torgrim Homme <kjetilho@ifi.uio.no>.
603 Sun Jul 7 22:40:08 1996 Jim Meyering <meyering@na-net.ornl.gov>
605 * src/ls.c: Change initial colors for `color_indicator' to match
606 those currently in dircolors.hin. From Joshua Cowan.
608 * src/dircolors.hin: Recognize more filename extensions.
611 * src/Makefile.am (CLEANFILES): Add dcgen. From Joshua Cowan
612 <jcowan@jcowan.reslife.okstate.edu>.
614 * src/Makefile.am (MAINTAINERCLEANFILES): Add dircolors.h.
616 * configure.in (AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Use it.
617 * acconfig.h [GWINSZ_IN_SYS_IOCTL]: Add #undef.
619 * src/ls.c: Include termios.h.
620 Guard inclusion of sys/ioctl.h with #ifdef GWINSZ_IN_SYS_IOCTL,
621 rather than HAVE_SYS_IOCTL_H. Modelled after sh-utils' stty.c
622 at suggestion from Chip Bennett <BennettC@j64.stratcom.af.mil>
623 to make ls adjust its idea of screen width upon window resize
624 on systems (SunOS, Solaris) where TIOCGWINSZ is defined in
625 termios.h, and not sys/ioctl.h.
627 * aclocal.m4 (AM_SYS_POSIX_TERMIOS): New macro, derived from test
628 in the configure.in from sh-utils.
629 (AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
631 Sat Jul 6 12:46:27 1996 Jim Meyering <meyering@na-net.ornl.gov>
633 * src/cp-aux.c (usage): Factor out backup-related text into
634 separate string/printf statement so translators deal with only
635 one corresponding string in .pot file.
636 * src/install.c (usage): Likewise.
637 * src/ln.c (usage): Likewise.
638 * src/mv.c (usage): Likewise.
639 Suggestion from Santiago Vila Doncel.
641 * configure.in (AC_REPLACE_FUNCS): Add group_member.
642 (AC_LINK_FILES): Create link lib/group_member.c to lib/group-member.c.
643 * lib/Makefile.am (fu_SOURCES): Remove group-member.c.
644 (EXTRA_DIST): Add group-member.c here.
646 Fri Jul 5 22:16:13 1996 Jim Meyering <meyering@na-net.ornl.gov>
648 * src/dircolors.c [!STDC_HEADERS]: Declare free.
651 Thu Jul 4 12:34:50 1996 Jim Meyering <meyering@na-net.ornl.gov>
653 * src/dd.c (usage): Remove space before newline in usage message.
654 * src/mknod.c (usage): Likewise.
655 * src/mv.c (usage): Likewise.
657 * src/Makefile.am (libexec_PROGRAMS): Regenerate using patched
658 automake-1.0 to work around rm -f bug on Solaris2.4.
659 Reported by Kaveh Ghazi.
661 * src/ls.c: Make `dir --version' and `vdir --version' print their
663 Reported by Ulrich Drepper.
665 Wed Jul 3 17:41:15 1996 Jim Meyering <meyering@na-net.ornl.gov>
667 * src/dircolors.c: Include sys/types.h before system.h.
668 From Jim Blandy (jimb@cyclic.com).
670 * src/chgrp.c [!MAXUID]: Define after inclusion of system.h to avoid
671 warning about redefinition on SunOS4, Solaris2.4 and SGI-irix5.3.
672 From Kaveh Ghazi. Also, Santiago Vila Doncel reported that defining
673 MAXUID before including system.h caused a compilation failure on some
676 Tue Jul 2 22:56:03 1996 Jim Meyering <meyering@na-net.ornl.gov>
678 * configure.in (VERSION): Bump to 3.12q.
680 * src/system.h [!EXIT_SUCCESS]: Define it.
681 [!EXIT_FAILURE]: Define it.
683 * lib/strndup.c (strndup): Include stdio.h and sys/types.h to
684 get definition of NULL and size_t on SunOS4.1.3.
686 Mon Jul 1 23:47:29 1996 Jim Meyering <meyering@na-net.ornl.gov>
688 * src/ln.c (do_link): Update messages to ease translation.
689 Suggestion from Santiago Vila.
691 Sun Jun 30 16:41:45 1996 Jim Meyering <meyering@na-net.ornl.gov>
693 * src/install.c (usage): Fix typo, 3nd->3rd, in usage message.
694 From Santiago Vila Doncel.
696 Sat Jun 29 00:33:31 1996 Jim Meyering <meyering@na-net.ornl.gov>
698 * configure.in (PACKAGE_VERSION): Add `GNU ' prefix so we see
699 it in the output of --version. Reported by RMS.
701 * src/Makefile.am (BUILT_SOURCES): Guard dependency on dircolors.h
702 with @MAINT@ so it won't be removed with a casual disctlean.
703 (EXTRA_DIST): Add dcgen.pl and dircolors.hin.
705 Fri Jun 28 22:56:00 1996 Jim Meyering <meyering@na-net.ornl.gov>
707 * src/dircolors.c (dc_parse_stream): Move `enum states' dcl into
710 * src/ln.c (do_link): Allow `ln -sf --backup k k' to succeed in
711 creating the self-referential symlink, since doing so doesn't
712 remove the source but merely renames it.
714 Wed Jun 26 06:58:58 1996 Jim Meyering <meyering@na-net.ornl.gov>
716 * ln.c (same_name): New function.
717 (do_link): Use it to test reliably whether A and B (from
718 ln --force A B) are hard links to the same file.
721 Tue Jun 25 00:03:43 1996 Jim Meyering <meyering@na-net.ornl.gov>
723 * lib/getline.c: New file.
724 * lib/getline.h: New file.
725 * lib/Makefile.am (fu_SOURCES): Add getline.c.
726 (noinst_HEADERS): Add getline.h.
728 Mon Jun 24 22:39:02 1996 Jim Meyering <meyering@na-net.ornl.gov>
730 * configure.in (AC_REPLACE_FUNCS): Add strndup.
731 (AC_PATH_PROG): Check for perl.
733 * ls.c (decode_switches): Allow 0 as argument to --tabsize (-T) option.
734 Interpret as a directive to use no TAB characters to separate columns.
735 (indent): Handle TABSIZE == 0.
737 * dircolors.c (dc_parse_stream): Remove spurious newline in
739 (dc_parse_stream): Give `unrecognized keyword' diagnostic for
740 misspelled `TERM' keyword as well as for others.
742 Sun Jun 23 12:58:32 1996 Jim Meyering <meyering@na-net.ornl.gov>
744 * dircolors.hin: New file.
745 * dcgen.pl: New file.
746 * src/Makefile.am (dircolors.h): Add a rule to create this file.
749 * dircolors.c (parse_line): Rewrite to avoid modifying LINE.
750 Put LINE first in parameter list.
752 (dc_parse_stream): Free KEYWD and ARG.
753 (main): Give diagnostic for unreasonable combinations of
756 * lib/Makefile.am (EXTRA_DIST): Add strndup.c.
757 * configure.in (AC_REPLACE_FUNCS): Add strndup.
758 * strndup.c: New file. From id-utils-3.0k.
760 [!STDC_HEADERS]: Include string.h and stdlib.h.
762 Sat Jun 22 16:57:53 1996 Jim Meyering <meyering@na-net.ornl.gov>
764 * dircolors.c: Major overhaul. No longer read from /etc/DIR_COLORS
765 or from ~/.dircolors. Defaults are now compiled in. If you specify
766 a file on the command line, it is used instead of the compiled-in
768 (main): New option --print-database (-p).
769 Detect write failure.
770 Add --bourne-shell and --c-shell aliases for --sh and --csh resp.
772 Tue Jun 18 20:54:05 1996 Jim Meyering <meyering@na-net.ornl.gov>
774 * cp.c (copy_reg): Cast both sides of comparison to size_t
775 to avoid a warning about `comparison between signed and unsigned'
777 Declare pointer parameters const as appropriate.
779 * ln.c (do_link): Refine last change so we don't disallow commands
780 like `ln --force A B' when A and B are hard links to the same file.
781 See comments in the source. Reported by Erik Naggum <erik@naggum.no>
784 * ls.c (decode_switches): Correct typo in error messages:
785 enironment -> environment. From Santiago Vila Doncel
788 * aclocal.m4: Update from gettext-0.10.20.
789 * ABOUT-NLS: Likewise.
792 * cp.c (do_copy): Change message from `missing file argument' to
793 more precise `missing destination file'. From Karl Berry.
795 * ln.c (STREQ): Remove macro definition
796 * system.h (STREQ): Add it here instead.
797 * cp.c (do_copy): Use STREQ here instead of strcmp(...) == 0.
798 * ls.c (parse_ls_color): Likewise.
799 * df.c (selected_fstype, excluded_fstype, show_disk, main): Likewise.
801 * cp.c (do_copy): When the force and backup options have been
802 specified and the source and destination are the same name for an
803 existing, regular file, convert the user's command, e.g.
804 `cp --force --backup foo foo' to `cp --force foo fooSUFFIX'
805 where SUFFIX is determined by any version control options used.
806 (usage): Update --help message.
807 At urging of (most recently) Karl Berry.
809 Sun Jun 16 13:40:22 1996 Jim Meyering <meyering@na-net.ornl.gov>
811 * doc/Makefile.am (EXTRA_DIST): Add texinfo.tex.
813 * Makefile.am (cvs-dist): Use -c option in cvs tag command.
815 Sat Jun 15 22:21:09 1996 Jim Meyering <meyering@na-net.ornl.gov>
817 * configure.in (ALL_LINGUAS): Add pt.
818 (AC_REPLACE_FUNCS): Add basename.
820 * Makefile.am (EXTRA_DIST): Add basename.c.
821 (fu_SOURCES): Remove basename.c.
823 Thu Jun 6 21:57:08 1996 Jim Meyering <meyering@na-net.ornl.gov>
825 * po/Makefile.in.in: Update from gettext-0.10.16.
827 * ABOUT-NLS: Likewise.
828 * aclocal.m4 (AC_REPLACE_GNU_GETOPT): Move definition to precede
829 gettext-related ones.
830 Update from gettext-0.10.16.
832 Sat Jun 1 12:44:51 1996 Jim Meyering <meyering@na-net.ornl.gov>
834 * ls.c: Rename options and internal variables to reflect change to
835 --color=WHEN where WHEN is never, always, or auto (for consistency
836 with e.g. cp --sparse=WHEN. For at least a while, the original
837 slackware-supported arguments `none', `force', `yes', etc will be
838 supported but deprecated by lack of documentation.
839 (decode_switches): Use STDOUT_FILENO instead of `1' in isatty test.
840 (usage): Update/add description of the --color option.
842 * ls.c: Declare pointer parameters const as appropriate.
844 Tue May 28 18:39:49 1996 Jim Meyering <meyering@na-net.ornl.gov>
846 * dd.c (print_stats): Don't mark "%u %s" as a translatable string.
847 * mv.c (main): Don't mark "%s" as a translatable string.
850 Thu May 23 07:50:38 1996 Jim Meyering <meyering@na-net.ornl.gov>
852 * ls.c (usage): Make --literal (-N) description clearer.
854 * acconfig.h (MOUNTED_LISTMNTENT): Add it.
855 * fsusage [_CRAY]: Don't include sys/filsys.h because although
856 Unicos-9 has it, it's not needed and would cause other problems
857 because it requires inclusion of other, non-standard headers.
858 * mountlist.c (read_filesystem_list) [MOUNTED_LISTMNTENT]: New
860 From Johan Danielsson (joda@pdc.kth.se).
862 * configure.in (AC_CHECK_FUNCS): Add listmntent for Unicos-9.
863 Define MOUNTED_LISTMNTENT #ifdef _CRAY and HAVE_GETMNTENT.
864 With an initial patch from Johan Danielsson.
866 Wed May 22 18:58:01 1996 Jim Meyering <meyering@na-net.ornl.gov>
868 * configure.in (LINGUAS): Add sv.
870 Tue May 21 07:06:30 1996 Jim Meyering <meyering@na-net.ornl.gov>
872 * lib/euidaccess.c (euidaccess) [!S_IROTH]: Define.
875 Marcus Daniels <marcus@sysc.pdx.edu> reported that m68k NEXTSTEP 3.2
876 doesn't define S_IROTH or S_IWOTH unless some posix compile option
877 is used and associated symbols defined.
879 Sun May 19 09:32:51 1996 Jim Meyering (meyering@na-net.ornl.gov)
881 * chown.c: New option: --no-dereference (-h). Solaris 5.4's chown
883 (change_file_owner): Use lchown if --no-dereference (-h) was given.
885 (main): Fail if user requests --no-dereference on a system that
886 doesn't have support for it.
888 * chgrp.c: New option: --no-dereference (-h).
889 [!MAXUID]: Define to INT_MAX.
890 (change_file_group): Use lchown if --no-dereference (-h) was given.
892 (main): Fail if user requests --no-dereference on a system that
893 doesn't have support for it.
895 Wed May 15 22:54:31 1996 Jim Meyering (meyering@na-net.ornl.gov)
897 * fsusage.c (get_fs_usage): Declare parameter PATH to be const.
898 * fsusage.h: Update prototype to match.
900 * chmod.c (describe_change): Declare pointer parameters to be const.
901 (change_file_mode): Likewise.
902 (change_dir_mode): Likewise.
904 * ln.c (do_link): Declare pointer parameters to be const.
906 * df.c (main): Fail with a diagnostic if both --human-readable and
907 --portability are used.
908 Likewise if --megabytes and --portability are used.
909 Rearrange function definitions to precede respective uses to obviate
910 all forward dcls. Remove forward dcls.
911 Declare parameters const as appropriate.
913 * modechange.c (mode_compile): Declare parameter MODE_STRING const.
914 Remove register attribute.
915 (mode_adjust): Likewise for CHANGES.
916 * modechange.h: Reflect above changes in prototypes.
918 * lib/Makefile.am (getdate.c): Disable dependencies that can
919 require rerunning YACC when not in maintainer mode.
920 (posixtm.c): Likewise.
922 Tue May 14 23:36:54 1996 Jim Meyering (meyering@na-net.ornl.gov)
924 * dd.c (print_stats): Restructure pluralization of error message
925 so it's easier to translate. Reported by Göran Uddeborg
926 <gvran@uddeborg.pp.se>.
927 * mv.c (main): Likewise.
929 Tue May 7 22:10:20 1996 Jim Meyering (meyering@na-net.ornl.gov)
931 * configure.in: Require autoconf-2.10.
933 * aclocal.m4 (jm_MAINTAINER_MODE): New macro.
934 * configure.in (jm_MAINTAINER_MODE): Use it.
936 Sun May 5 20:27:47 1996 Jim Meyering (meyering@na-net.ornl.gov)
938 * src/Makefile.am (bin_PROGRAMS): Add dircolors.
939 (DEFS): Add -DSHAREDIR=\"$(datadir)\".
940 (GNUVER): Remove definition of unused variable.
942 Sat May 4 20:54:32 1996 Jim Meyering (meyering@na-net.ornl.gov)
944 * system.h [IN_CTYPE_DOMAIN]: Rename from ISASCII.
945 * backupfile.c [IN_CTYPE_DOMAIN]: Rename from ISASCII.
947 * dircolors.c: Make enumerated constants upper case.
948 (main): Don't use ANSI-style string concatenation.
949 Add `static' and/or `const' to some file scope variables.
951 Wed May 1 00:20:00 1996 Jim Meyering (meyering@na-net.ornl.gov)
953 * lib/Makefile.am (EXTRA_DIST): Add strcasecmp.c.
954 * configure.in (AC_REPLACE_FUNCS): Add strcasecmp.
956 * ls.c (parse_ls_color, usage): Remove support for alternate spellings:
957 --colours and LS_COLOURS.
958 (parse_ls_color): Reverse sense of test for LS_COLORS environment
959 variable and return -- save a level of indentation on a 100+-line
962 Mon Apr 29 22:07:41 1996 Jim Meyering (meyering@na-net.ornl.gov)
964 * POTFILES.in: Add chgrp.c. From François Pinard.
966 * dircolors.c: New file. Written by H. Peter Anvin.
968 Sun Apr 28 16:32:38 1996 Jim Meyering (meyering@na-net.ornl.gov)
970 * ls.c: Apply color ls changes by Peter Anvin <Peter.Anvin@linux.org>
971 and Dennis Flaherty <dennisf@denix.elk.miles.com> based on original
972 patches by Greg Lee <lee@uhunix.uhcc.hawaii.edu>. And on top of all
973 that, a few changes from Ulrich Drepper.
975 * ls.c (parse_ls_color): Use strcpy to initialize 3-character array.
976 Automatic aggregate initialization isn't portable.
978 (get_funky_string): Declare static and move to precede single
979 caller: parse_ls_color.
980 Make some globals `static' and/or `const'.
981 (LEN_STR_PAIR): New macro.
982 (color_indicator): Use it in this declaration.
983 (parse_ls_color): Use error, not fprintf.
984 (decode_switches): Add a comment.
985 (print_name_with_quoting): Add braces around inner if-else
986 statement to clarify.
988 * configure.in: Add a comment that fp_C_PROTOTYPES must precede
989 AC_C_INLINE. Otherwise, some systems lose because the value
990 AC_C_INLINE choses with plain `cc' is different from that chosen
991 when using the ANSI-mode C compiler. From Kaveh Ghazi.
993 * fileblocks.c [HAVE_ST_BLOCKS || _POSIX_VERSION]: Add extern dcl
994 of unused variable so that after preprocessing, the file will never
995 be empty. Otherwise, some compilers in ANSI mode (among them, the
996 Dec Alpha OSF 2.0 C compiler) reject empty files. From Kaveh Ghazi.
997 Indent CPP conditionals.
999 Fri Apr 26 05:52:03 1996 Karl Eichwalder <ke@ke.Central.DE>
1001 * ls.c (usage): Add newline at end of printf format string.
1003 Wed Apr 24 21:33:43 1996 Jim Meyering (meyering@na-net.ornl.gov)
1005 * ln.c (do_link): Remove duplicate `if (lstat(...' block.
1007 * ln.c (do_link): With --force, don't remove DEST when it's
1008 the same as SOURCE. Before, `ln -f FILE FILE' would remove FILE.
1009 Reported by Bruno Haible (haible@ilog.fr).
1011 * mkdir.c (main): Use verbose_fmt_string, not string literal in
1012 call to make_path for --parents. Reported by Ulrich Drepper.
1014 * doc/mdate-sh: Get year as last rather than 6th field in output
1015 of date. Otherwise, people with 2-word TZ (like `MET DST') lost.
1016 From Andreas Schwab.
1018 Tue Apr 23 22:05:35 1996 Jim Meyering (meyering@na-net.ornl.gov)
1020 * src/*.c, src/*.h: Update Copyright years to include 1996.
1022 * aclocal.m4 (AC_REPLACE_GNU_GETOPT): New macro.
1023 * configure.in: Use it.
1024 * lib/Makefile.am (fu_SOURCES): Remove getopt.c and getopt1.c.
1025 (EXTRA_DIST): Add getopt.c and getopt1.c
1027 * configure.in (AC_CHECK_FUNCS): Add lchown.
1028 * chgrp.c [HAVE_LCHOWN]: Define chown to lchown.
1029 * chown.c [HAVE_LCHOWN]: Likewise.
1030 * cp.c [HAVE_LCHOWN]: Likewise.
1031 * mv.c [HAVE_LCHOWN]: Likewise.
1032 Suggested by François Pinard.
1034 * backupfile.c (find_backup_file_name, max_backup_version,
1035 make_version_name, version_number, concat): Const-ify decls of
1037 * backupfile.h: Likewise.
1039 * du.c (usage): The long-named arg is --human-readable, not --human.
1040 * df.c: Be consistent. Accept --human-readable, not just --human.
1041 (usage): Reflect the change.
1044 Sun Apr 21 08:04:51 1996 Jim Meyering (meyering@na-net.ornl.gov)
1046 * df.c (usage): Reflect that now --no-sync is the default.
1048 * Makefile.am (LDADD): Put @INTLLIBS@ before package library.
1050 Sat Apr 20 22:48:59 1996 Jim Meyering (meyering@na-net.ornl.gov)
1052 * ls.c: Include xstrtol.h.
1053 (decode_switches): Use xstrtol, not atoi.
1054 Detect and ignore invalid value for COLUMNS environment variable.
1055 In error about invalid TABSIZE, don't reference optarg!
1056 [!POSIXLY_CORRECT]: Don't consider TABSIZE environment variable.
1058 * install.c: Include xstrtol.h.
1059 [HAVE_VALUES_H]: Include <values.h>.
1060 [!BITSPERBYTE]: Define.
1061 [!UID_T_MAX]: Define.
1062 [!GID_T_MAX]: Define.
1063 (get_ids): Use xstrtol, not atoi.
1064 (is_number): Remove now-unused function.
1065 * configure.in (AC_CHECK_HEADERS): Add values.h.
1067 Fri Apr 19 00:06:02 1996 Jim Meyering (meyering@na-net.ornl.gov)
1069 * Makefile.am (cvs-dist): New rule. Based on the one from
1070 Tom Tromey's automake.
1072 * df.c: No longer call sync by default.
1074 * cp.c (copy_reg): Rearrange arithmetic in conditional to avoid
1075 integer overflow with large files.
1077 Fri Apr 12 21:40:44 1996 Jim Meyering (meyering@na-net.ornl.gov)
1079 * mkdir.c (main): Add new option: --verbose.
1080 Remove long-deprecated and nowhere-documented --path, a synonym
1081 for --parents. It was confusing to get an error about `--p'
1084 Thu Apr 4 21:28:03 1996 Jim Meyering (meyering@na-net.ornl.gov)
1086 * configure.in (LINGUAS): Add de.
1087 * po/de.po: New file.
1089 * src/Makefile.am (EXTRAdir): Set to $(bindir).
1091 Wed Apr 3 06:12:23 1996 Jim Meyering (meyering@na-net.ornl.gov)
1093 * cp.c (copy_reg): Use `ST_NBLOCKS (sb) * 512', not `sb.st_blocks *
1094 DEV_BSIZE.' From H.J. Lu (hjl@lucon.org).
1096 * mvdir.c: Protoize.
1098 (fullpath): Rewrite to use save_cwd, xgetcwd, and restore_cwd
1099 rather than explicit chdir/getcwd calls.
1101 * src/Makefile.am (INCLUDES): Add -I$(srcdir) to get system.h
1102 when srcdir != builddir. From Kaveh Ghazi.
1104 Mon Apr 1 23:50:29 1996 Jim Meyering (meyering@na-net.ornl.gov)
1106 * cp.c: Include assert.h (disabled).
1107 (path_concat): New function.
1108 (do_copy): Use path_concat instead of open-coding part of its
1109 functionality in two places. This has the additional benefit
1110 of avoiding forming destination names like `D//file' when the
1111 destination directory D includes a trailing slash -- as would
1112 happen when cp is used like this:
1113 mkdir D; touch file D/file; cp -i file D/
1114 Reported by François Pinard.
1116 Sun Mar 31 11:18:09 1996 Jim Meyering (meyering@na-net.ornl.gov)
1118 * ls.c (quote_filename): Use ISGRAPH and ISPRINT in place of
1119 ASCII-centric tests against literals.
1120 (length_of_file_name_and_frills): Likewise.
1122 Thu Mar 21 16:43:13 1996 Jim Meyering (meyering@na-net.ornl.gov)
1124 * src/*.c (main): Declare to be of type int, not void.
1126 Sat Mar 16 10:46:23 1996 Jim Meyering (meyering@na-net.ornl.gov)
1128 * configure.in (PACKAGE_VERSION): New macro.
1129 * acconfig.h (PACKAGE_VERSION): Add it.
1130 * src/Makefile.am: Remove rules for generating version.c.
1131 Remove references to version.o, version.h, and stamp-v.
1132 * version.c: Remove file.
1133 * version.h: Remove file.
1134 * chgrp.c chmod.c chown.c cp.c dd.c df.c du.c install.c ln.c
1135 ls.c mkdir.c mkfifo.c mknod.c mv.c mvdir.c rm.c rmdir.c sync.c
1136 touch.c: Don't include version.h.
1137 (main): Use PACKAGE_VERSION instead of version_string.
1139 Sun Mar 10 22:36:11 1996 Jim Meyering (meyering@na-net.ornl.gov)
1141 * backupfile.c (max_backup_version): Declare file_name_length to
1142 be of type size_t. This avoids a warning from gcc -Wall.
1144 * chmod.c chown.c cp.c dd.c df.c du.c install.c ln.c ls.c
1145 mkdir.c mkfifo.c mknod.c mv.c mvdir.c rm.c rmdir.c sync.c
1146 touch.c (main): Initialize for internationalized message support:
1147 call setlocale, bindtextdomain, and textdomain.
1148 * system.h: Add definitions and includes for NLS.
1149 * Makefile.am (SUBDIRS): Add intl and po.
1150 * src/Makefile.am (datadir): Define.
1151 (localedir): Define.
1152 (DEFS): Add LOCALEDIR definition.
1153 (LDADD): Add @INTLLIBS@.
1154 * aclocal.m4: Add NLS-related macro definitions from
1155 gettext distribution.
1156 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_LC_MESSAGES,
1157 HAVE_STPCPY): New macros.
1158 Add PACKAGE and VERSION.
1159 * configure.in (PACKAGE): Define with AC_DEFINE_UNQUOTED.
1160 (VERSION): Likewise.
1161 (ALL_LINGUAS): Define.
1162 (ud_GNU_GETTEXT): Use it.
1164 (AC_OUTPUT): Reflect addition of two new directories, intl and po.
1166 From François Pinard.
1168 Thu Mar 7 20:26:07 1996 Jim Meyering (meyering@na-net.ornl.gov)
1170 * df.c (main): Tell read_filesystem_list that it should determine
1171 file system type when the user specifies --print-type or -T.
1172 From Michael Rendell <michael@cs.mun.ca>.
1174 Tue Feb 27 23:13:46 1996 Jim Meyering (meyering@na-net.ornl.gov)
1176 * src/Makefile.am: Adapt for automake-0.30.
1177 (noinst_HEADERS): Rename from HEADERS.
1178 (EXTRA_PROGRAMS): Set to `df mvdir'.
1179 (PROGRAMS): Remove definition.
1180 (bin_PROGRAMS): Remove hard-coded df. Use @DF_PROG@ instead.
1181 (libexec_PROGRAMS): Remove hard-coded mvdir. Use @MVDIR_PROG@ instead.
1182 * lib/Makefile.am: (noinst_HEADERS): Rename from HEADERS.
1184 * configure.in (DF_PROG, MVDIR_PROG): Use these instead of bundling
1187 Mon Feb 26 21:23:58 1996 Jim Meyering (meyering@na-net.ornl.gov)
1189 * dd.c (copy): Remove bogus (now that we're using full_write)
1190 increment of w_partial.
1191 Change sense of the tests (though they're equivalent) that check
1192 the value returned by full_write. making it clearer where errno
1193 is valid. full_write always writes the full amount or fails.
1195 Thu Feb 15 23:08:41 1996 Jim Meyering (meyering@na-net.ornl.gov)
1197 * cp.c (copy): Detect (and fail) when creating backup file would
1198 destroy the source file. Before, running the commands
1199 cd /tmp; rm -f a a~; : > a; echo A > a~; cp -b -V simple a~ a
1200 would leave two zero-length files: a and a~.
1201 Reported by Martin C. Martin <mcm@cs.cmu.edu>.
1203 Mon Feb 12 23:23:25 1996 Jim Meyering (meyering@na-net.ornl.gov)
1205 * configure.in (LIBOBJS): Split assignment into two statements to
1206 accomodate automake-0.29 buglet.
1208 Update for automake-0.29.
1209 * Makefile.am (CONFIG_HEADER): Don't define. Automake now does it.
1210 * src/Makefile.am: Likewise.
1211 * lib/Makefile.am: Likewise.
1212 * doc/Makefile.am (info_TEXINFOS): Renamed from TEXINFOS.
1213 * man/Makefile.am (man_MANS): Renamed from MANS.
1215 Wed Jan 31 21:50:41 1996 Jim Meyering (meyering@na-net.ornl.gov)
1217 * dd.c (skip): Change type of parameter #5 from char* to
1218 unsigned char* to match type of argument.
1219 (copy): Cast first arg in memset call to char* to avoid warnings
1221 (copy_simple): Likewise.
1223 * du.c: Remove comma after last item in enum.
1225 * df.c: Remove block of usage comments at beginning of file.
1227 * df.c (main): New options --human-readable (-h) and --megabytes (-m).
1228 (human_readable_1k_blocks): New function.
1229 (print_header): Honor new options.
1230 (show_dev): Honor new options.
1231 Add ifdef'd-out code to avoid printing lines for mount points that
1232 match ^/auto/.* and ^/tmp_mnt.*. Rather than hard-coding those
1233 two prefixes, the code should allow the user to specify a regular
1234 expression. From Larry McVoy (lm@sgi.com).
1236 * du.c (human_readable): Fix off-by-one error that converted
1237 1024*1024 to 1024K rather than 1G. Describe the function.
1238 * df.c (human_readable_1k_blocks): Likewise
1239 (usage): Update usage message to reflect additions.
1241 Sat Jan 20 06:00:09 1996 Jim Meyering (meyering@na-net.ornl.gov)
1243 * cp-aux.c (usage): Fix description of --archive. From Andreas Schwab.
1245 * install.c (copy_files): Accept backup/suffix options just as cp,
1246 ln, and mv do. From Marty Leisner <leisner@sdsp.mc.xerox.com>.
1248 * src/Makefile.am (DISTCLEANFILES): Set to stamp-v version.c.
1249 (version.c): Update with rules from textutils.
1250 (transform): Add `s/ginstall/install/;' prefix.
1252 * lib/Makefile.am (BUILT_SOURCES): Set to posixtm.c getdate.c so
1253 autodependencies work after `make maintainer-clean.'
1255 * du.c (main): New options --human-readable (-h) and --megabytes (-m).
1256 (human_readable): New function.
1257 From Larry McVoy (lm@sgi.com).
1259 Fri Dec 22 21:34:55 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1261 * configure.in: Touch stamp-h only if config.h is remade.
1263 Sat Dec 23 11:33:19 1995 Jim Meyering (meyering@comco.com)
1265 * ls.c (decode_switches): Make -o a synonym for -lG for compatibility
1266 with most other versions of ls. Reported by Karl Berry.
1269 Fri Dec 22 00:48:01 1995 Jim Meyering (meyering@comco.com)
1271 * dd.c (cleanup): New function -- broken out from quit.
1272 (interrupt_handler): Rewrite to reset default signal handler,
1273 call cleanup, then repost caught signal.
1275 Thu Dec 21 23:15:06 1995 Jim Meyering (meyering@comco.com)
1277 * argmatch.h: New file.
1278 * lib/Makefile.am (HEADERS): Add argmatch.h.
1279 * argmatch.c: (argmatch): Add const attribute to parameters.
1280 (invalid_arg): Add const attribute to parameters.
1282 * cp.c: Include argmatch.h.
1284 * touch.c: Likewise.
1286 * cp.c (main): Accept new option, --sparse={never,auto,always},
1287 to control creation of sparse files.
1288 (copy_reg): Set local, make_holes, from global flag_sparse.
1289 * cp-aux (usage): Describe new option.
1291 Mon Dec 18 22:29:49 1995 Jim Meyering (meyering@comco.com)
1293 * ln.c: [SYMBOLIC_SPACE_STRING]: New macro.
1294 (do_link): Use SYMBOLIC_SPACE_STRING instead of open-coded #ifdef.
1295 For --verbose, output `create [symbolic ]link DEST to SRC' instead
1296 of ambiguous (or inconsistent with cp -v and mv -v) `SRC -> DEST.'
1298 Tue Dec 5 17:38:11 1995 Jim Meyering (meyering@comco.com)
1300 * rm.c (rm): Work around SunOS 4 bug whereby lstat doesn't fail
1301 when given a zero-length file name argument. Reported by
1302 Mark Calabretta <mcalabre@atnf.csiro.au>.
1304 Wed Nov 22 23:12:47 1995 Jim Meyering (meyering@comco.com)
1306 * Makefile.in (all et. al.): If make was invoked with -k and a
1307 sub-make fails, fail after the loop rather than exiting right away.
1308 Otherwise, make's -k option could be ineffective.
1310 Thu Nov 16 21:25:45 1995 Jim Meyering (meyering@comco.com)
1312 * Makefile.in (default): New default target. Depend on `all' to work
1313 around bug in AIX-3.2.5's /bin/make. Reported by Andreas Luik
1316 Fri Nov 10 23:31:46 1995 Jim Meyering (meyering@comco.com)
1318 * src/Makefile.in (.c._o, ._c._o): Remove temporary source files.
1319 (.c._c): Don't redirect directly to $@.
1321 * src/Makefile.in (DISTFILES): Include ansi2knr.c and ansi2knr.1.
1322 (clean): Remove temp files generated by ansi2knr rules.
1323 (ansi2knr): New rule.
1324 Add suffixes, dependencies, and rules to convert ANSI source to K&R
1326 ($(OBJECTS)): Depend on $(ANSI2KNR)
1328 * configure.in: Add fp_C_PROTOTYPES.
1330 * Makefile.in (DISTFILES): Add aclocal.m4.
1331 (configure): Depend on aclocal.m4.
1332 (stamp.h.in): Depend on aclocal.m4 and acconfig.h.
1333 * acconfig.h: Add PROTOTYPES.
1335 * cp.h: Remove declaration of error. Include error.h instead.
1336 Protoize forward dcls of functions in cp-hash.c and cp-aux.c
1337 * cp-aux.c: Protoize and add const attribute to parameters.
1338 * cp-hash.c: Likewise.
1340 Thu Nov 9 23:27:05 1995 Jim Meyering (meyering@comco.com)
1342 * system.h [__P]: Define it.
1344 * src/*.c: Protoize.
1346 * ls.c (enum filetype): Move dcl to precede prototypes.
1347 (struct fileinfo): Likewise.
1348 Add const attribute to some parameters.
1350 * rm.c (struct pathstack): Move dcl to precede prototypes.
1352 * dd.c (translate_charset): Make parameter `const'.
1354 * ln.c (main): Move to the end.
1355 Remove most fwd dcls.
1356 * chmod.c: Likewise.
1357 * chown.c: Likewise.
1358 * chgrp.c: Likewise.
1359 * mkdir.c: Likewise.
1360 * mkfifo.c: Likewise.
1361 * mknod.c: Likewise.
1362 * mvdir.c: Likewise.
1363 * touch.c: Likewise.
1365 * mv.c: Rearrange functions to obviate forward dcls.
1366 Remove forward dcls.
1368 * cp.c: Protect prototyped forward dcls with __P.
1372 * install.c: Likewise.
1376 Wed Nov 1 23:11:05 1995 Jim Meyering (meyering@comco.com)
1378 * cp.c (copy): Use euidaccess instead of euidaccess_stat.
1379 * mv.c (do_move): Likewise.
1380 * rm.c (remove_file, remove_dir): Likewise.
1382 Sun Oct 29 06:06:13 1995 Jim Meyering (meyering@comco.com)
1384 * aclocal.m4 (jm_WITH_AUTODEPS): New directive.
1385 * configure.in: Use it.
1387 * lib/Makefile.in (INCLUDE, COMPILE): New variables.
1388 (.c.o): Rewrite to be more like src/Makefile.in.
1389 Add line that (--with-autodeps) will include mkdep-Makefile.
1390 (distclean): Remove .deps.
1391 * src/Makefile.in: Likewise.
1393 * src/Makefile.in (test.o): Remove special rule.
1395 * mkdep-Makefile: New file.
1396 * Makefile.in (DISTFILES): Add mkdep-Makefile.
1398 * doc/Makefile.in (mostlyclean): Remove *.info.
1400 * touch.c: Change long option name `--file' to `--reference'.
1401 Leave --file as an alias, for now. It will be removed later.
1402 (usage): Reflect option name change. From Franc,ois Pinard.
1404 Wed Oct 18 23:09:55 1995 Jim Meyering (meyering@comco.com)
1406 * configure.in (AC_CHECK_HEADERS): Add sys/wait.h and sys/ioctl.h.
1407 (AC_CHECK_FUNCS): Add endpwent.
1409 * fileblocks.c: Use _POSIX_VERSION, not _POSIX_SOURCE.
1411 * userspec.c [endgrent]: Test !HAVE_ENDGRENT rather than _POSIX_SOURCE.
1412 [endpwent]: Test !HAVE_ENDPWENT rather than _POSIX_SOURCE.
1414 * chgrp.c [endgrent]: Test !HAVE_ENDGRENT rather than _POSIX_SOURCE.
1416 * chown.c [endpwent]: Test !HAVE_ENDPWENT rather than _POSIX_SOURCE.
1417 [endgrent]: Remove unused definition.
1419 * df.c (main): Fail if the same file system type was both selected
1420 and excluded. Reported by Paul Close pdc@lunch.engr.sgi.com.
1422 * rm.c (duplicate_entry): Always return 0 if !D_INO_IN_DIRENT,
1423 rather than if _POSIX_SOURCE.
1425 * install.c: Use HAVE_SYS_WAIT_H, not _POSIX_VERSION in conditional
1426 inclusion of sys/wait.h.
1427 [endgrent]: Test !HAVE_ENDGRENT rather than _POSIX_SOURCE.
1428 [endpwent]: Test !HAVE_ENDPWENT rather than _POSIX_SOURCE.
1430 * ls.c Use HAVE_SYS_IOCTL_H, rather than !_POSIX_SOURCE || _AIX.
1432 Thu Oct 5 21:49:34 1995 Jim Meyering (meyering@comco.com)
1434 * configure.in (HAVE_STRUCT_UTIMBUF): Add new test. Testing for
1435 the existence of <utime.h> is insufficient on some Next systems.
1436 * acconfig.h (HAVE_STRUCT_UTIMBUF): Add it.
1437 * system.h [!HAVE_UTIME_H]: Don't declare struct utimbuf here.
1438 [!HAVE_STRUCT_UTIMBUF]: Declare struct utimbuf here instead.
1440 * chgrp.c: Include limits.h.
1441 [!INT_MAX]: Define it.
1443 * df.c (show_point): Cast -2 to dev_t before assignment.
1444 * mountlist.c (read_filesystem_list): Cast -1 to dev_t before
1447 Sun Oct 1 13:22:36 1995 Jim Meyering (meyering@comco.com)
1449 * configure.in (AC_REPLACE_FUNCS): Add strtoul.
1450 * strtoul.c: New file.
1451 * lib/Makefile.in (SOURCES): Add strtoul.c.
1453 * acconfig.h (STATFS_TRUNCATES_BLOCK_COUNTS): Add it.
1454 * configure.in (STATFS_TRUNCATES_BLOCK_COUNTS): New check to enable
1455 workaround for SunOS statfs brokenness. Block counts in struct
1456 statfs for partitions 2GB and larger are truncated, but correct
1457 values are stored in f_spare array member.
1459 * fsusage.c (get_fs_usage) [STATFS_TRUNCATES_BLOCK_COUNTS]: Copy
1460 untruncated block counts from f_spare array into proper members
1461 of struct statfs. From Eirik Fuller (eirik@netapp.com);
1463 * ls.c (dired_dump_obstack): Don't generate any output if the
1465 (main): Always initialize and dump subdired_obstack, not just if -R.
1466 `ls -lDR dir dir2' was using uninitialized subdired_obstack.
1467 Reported by Samuli K{rkk{inen <hskarkka@snakemail.hut.fi>.
1469 Tue Sep 26 23:05:01 1995 Jim Meyering (meyering@comco.com)
1471 * man/Makefile.in (install-data, uninstall): Use sed not basename.
1472 The GNU Coding Standard suggests that only a select set of
1473 relatively standard utilities be used in Makefiles. basename is
1474 not among them. Suggested by Ulrich Drepper.
1476 Mon Sep 25 23:12:37 1995 Jim Meyering <meyering@gremlin.comco.com>
1478 * src/df.c (show_point): Ignore mtab entries with either
1479 nonexistent mount points or with inconsistent device number.
1480 From Eirik Fuller <eirik@synopsys.com>.
1482 Wed Aug 9 00:33:05 1995 Jim Meyering (meyering@comco.com)
1484 * mknod.c (my_strtol): Remove function.
1485 (main): Use xstrtol instead.
1487 Mon Aug 7 23:27:54 1995 Jim Meyering (meyering@comco.com)
1489 * Makefile.in (DISTFILES): Don't distribute unneeded COPYING.LIB.
1492 Fri Aug 4 22:11:06 1995 Jim Meyering (meyering@comco.com)
1494 * install.c (isnumber): Rename to is_number to avoid conflict with
1495 FreeBSD 2.0.5 macro definition. Reported by David O'Brien
1496 (obrien@sea.legent.com).
1498 * lib/save-cwd.c: New file.
1499 * lib/save-cwd.h: New file.
1500 * lib/Makefile.in (SOURCES, OBJECTS, DISTFILES): Update for new files.
1502 * configure.in: (AC_REPLACE_FUNCS): Remove fnmatch.
1503 Add check for working fnmatch functions so that
1504 systems providing it don't incur the space overhead of linking
1505 with the version in lib. Cross compiling builds always use the
1508 * ls.c (decode_switches): Set SORT_TYPE. Before, ls -c was sorting
1509 by name, rather than change time. Reported by Ken Estes
1510 (m-ke0082@sparky.cs.nyu.edu).
1512 * du.c: (save_cwd, restore_cwd, free_cwd): Remove functions.
1513 New versions have been broken out into save-cwd.c.
1514 (du_files): Adapt to handle status code returned by new versions
1515 of save_cwd and restore_cwd.
1516 (count_entry): Likewise.
1518 * all programs (main): Include program name in --version output.
1520 * src/Makefile.in (cp.o): Depend on ../lib/obstack.h.
1522 * xstrtol.c, xstrtol.h: New files.
1523 * xstrtoul.c, xstrtoul.h: New files.
1524 * lib/Makefile.in (SOURCES, OBJECTS, DISTFILES): Update for new files.
1526 * chgrp.c (parse_group): Use xstrtoul instead of isnumber; the
1527 latter would silently overflow, accepting a group id larger
1529 (isnumber): Remove now-unused static function.
1530 (change_file_group) [MAXUID]: Give a more descriptive message
1531 when numeric group id is larger than MAXUID.
1533 Sat May 27 00:35:47 1995 Jim Meyering (meyering@comco.com)
1535 * system.h [!STDC_HEADERS && HAVE_MEMORY_H]: Include memory.h.
1536 Without this, SunOS doesn't get type for memchr.
1537 Reported by Kaveh Ghazi.
1539 Sun May 21 07:20:55 1995 Jim Meyering (meyering@comco.com)
1541 * all source files (usage): Include one- or two-line synopsis
1542 in --help output. From Karl Berry.
1544 * Makefile.in (.PHONY): TAGS is not a phony target. From Franc,ois.
1546 * All Makefile.in (install-exec, install-exec): New targets.
1549 * all Makefile.in (maintainer-clean): Renamed from realclean
1552 * euidaccess.c: No longer include safe-l?stat.h.
1553 * fsusage.c: Likewise.
1554 * isdir.c: Likewise.
1555 * makepath.c: Likewise.
1556 * mkdir.c: Likewise.
1557 * rename.c : Likewise.
1558 * rmdir.c: Likewise.
1560 Sat May 13 07:47:44 1995 Jim Meyering (meyering@comco.com)
1562 * lib/Makefile.in: Remove safe-l?stat.[ch]in and related rules.
1563 (maintainer-clean): Rename from realclean.
1564 (.PHONY): New dependencies.
1565 [.c.o]: Remove -I. since safe-l?stat.h are no longer used.
1567 * argmatch.c (argmatch): Include sys/types.h and declare length
1568 argument with type size_t.
1570 * backupfile.c: Remove unnecessary definitions for r?index.
1571 Update definitions for ISDIGIT.
1573 * basename.c (basename): Make argument const.
1575 * euidaccess.c (eaccess_stat): Make statp and path arguments const.
1576 (euidaccess): Make statp argument const. Use stat, not safe_stat.
1578 * fsusage.c (statfs): Use stat, not safe_stat.
1579 * isdir.c (isdir): Likewise.
1580 * mkdir.c (mkdir): Likewise.
1581 * rename.c (rename): Likewise.
1582 * rmdir.c (rmdir): Likewise.
1584 * userspec.c (parse_user_spec): Use strchr, not index.
1585 [!HAVE_STRING_H]: Define strchr in terms of index, not the
1588 * makepath.c: (make_path): Use stat, not SAFE_STAT.
1589 Use strchr, not index. Adjust defines accordingly.
1591 * makepath.h: Undef __P before defining.
1592 Guard definition with simpler `#if __STDC__'.
1594 * chgrp.c: Use stat (lstat), not safe_stat (safe_lstat).
1595 * chmod.c: Likewise.
1596 * chown.c: Likewise.
1597 * cp-hash.c: Likewise.
1601 * install.c: Likewise.
1605 * mvdir.c: Likewise.
1607 * touch.c: Likewise.
1609 Fri May 12 21:21:23 1995 Jim Meyering (meyering@comco.com)
1611 * mv.c (movefile): Remove a single trailing slash from destdir
1612 before concatenating with `/' and filename for `ok to overwrite...'
1613 message. Reported by Franc,ois Pinard.
1615 Mon May 1 23:03:30 1995 Jim Meyering (meyering@comco.com)
1617 * ls.c (quote_filename): Never return NULL when quoting filenames
1618 as C-strings. --quote-name was quoting only strings containing
1619 at least one C-quotable character. Reported by David J. MacKenzie.
1621 Mon Mar 20 21:44:40 1995 Jim Meyering (meyering@comco.com)
1623 * rename.c (rename): Compare src and dest inode numbers rather
1624 than src inode and dest dev when determining whether they refer
1625 to the same file. From marc@math.cornell.edu (Marc Parmet).
1627 * df.c (usage): Add ellipsis after `[OPTION]'. Use FILE,
1628 not deprecated PATH in text of help message. From Karl Berry.
1630 Fri Mar 10 21:13:23 1995 Jim Meyering (meyering@comco.com)
1632 * src/*.c: Update Copyright dates.
1634 * src/Makefile.in (uninstall): Handle case in which LIBPROGS is empty.
1635 Reported by Peter Smidt <smidt@cd.chalmers.se>.
1637 Thu Feb 23 22:29:11 1995 Jim Meyering (meyering@comco.com)
1639 * du.c (save_cwd) [!HAVE_FCHDIR]: Always initialize cwd->desc.
1640 (restore_cwd) [!HAVE_FCHDIR]: Remove unnecessary redefinition
1641 of fchdir. Both from Bruno Haible.
1643 Mon Feb 20 22:54:39 1995 Jim Meyering (meyering@comco.com)
1645 * du.c (save_cwd, restore_cwd): New functions.
1646 (main): Use them instead of open coded versions.
1647 (count_entry): Use them here instead of relying on chdir ("..") --
1648 but only when necessary. Before, with --dereference (-L),
1649 traversing a symlink caused failure because chdir ("..") didn't
1650 work as expected. Reported by Bruno Haible.
1652 Sat Feb 11 07:52:01 1995 Jim Meyering (meyering@comco.com)
1654 * configure.in (AC_REPLACE_FUNCS): Add memcmp, memcpy, and memset.
1655 (AC_CHECK_FUNCS): Add strchr and strrchr.
1656 * lib/Makefile.in (SOURCES): Add memcmp.c, memcpy.c, and memset.c.
1658 * system.h: Remove index/rindex and bcmp/bcopy/bzero references.
1659 Separate errno declaration from STDC_HEADERS.
1661 * dd.c (copy): Use memset, not bzero.
1662 (copy_simple): Use memcpy, not bcopy.
1664 * fsusage.c (get_fs_usage, statfs): Use safe_read, and safe_stat
1665 rather than bare read and stat. From Bruno Haible.
1667 * lib/Makefile.in (DISTFILES): Add error.h.
1669 * chgrp.c, chmod.c, chown.c, cp-hash.c, cp.c, df.c, du.c, install.c,
1670 ln.c, ls.c, mv.c, mvdir.c, rm.c, touch.c: Rename SAFE_STAT and
1671 SAFE_LSTAT to safe_stat and safe_lstat.
1673 * basename.c (basename): Use strrchr, not rindex.
1674 [!STDC_HEADERS && !HAVE_STRING_H]: Define strrchr to rindex.
1676 Tue Dec 27 07:07:53 1994 Jim Meyering (meyering@comco.com)
1678 * src/*.c: Include "error.h" rather than simply declaring
1680 * src/Makefile.in (OBJECTS): Depend on ../lib/error.h.
1682 * sync.c (main): Make error message accurate.
1684 * dd.c (skip): Use safe_read instead of read.
1685 (copy): Use full_write instead of write.
1688 Sat Dec 10 00:02:09 1994 Jim Meyering (meyering@comco.com)
1690 * Makefile.in (install): Install `install' first as transformed
1691 `ginstall,' then remove the target (transformed `install')
1692 and move GNU install into its place. Before, the installation
1693 process failed on systems (e.g. HPUX) that can't overwrite the
1694 executable associated with a running process.
1696 * system.h [!HAVE_STRING_H]: Define strchr to index and strrchr to
1697 rindex instead of the other way around.
1698 * rmdir.c (remove_parents): Use strr?chr instead of r?index.
1699 * mvdir.c (main): Likewise.
1700 * dd.c (parse_conversion, scan_args): Likewise.
1701 * cp.c (copy, make_path_private): Likewise.
1703 * system.h: Include <ctype.h> and define IS* macros.
1704 * touch.c: No longer include <ctype.h>.
1705 * chown.c: Likewise.
1706 * install.c: Likewise.
1707 [isascii, ISDIGIT]: Remove definitions.
1708 * chgrp.c: Likewise.
1711 Sun Dec 4 14:53:12 1994 Jim Meyering (meyering@comco.com)
1713 * doc/Makefile.in (DISTFILES): Add getdate.texi.
1715 Fri Nov 11 11:15:20 1994 Jim Meyering (meyering@comco.com)
1717 * mknod.c (my_strtol): New function.
1718 (main): Use it instead of atoi to convert argument strings to
1719 major and minor device numbers. Now, mknod diagnoses invalid
1720 device numbers and accepts octal and hexadecimal as well as
1721 decimal string arguments. Ralf Lammers
1722 <rlammers@physik.uni-osnabrueck.de> suggested that mknod accept
1723 hex device numbers for compatibility with HPUX's mknod program.
1725 * configure.in (AC_REPLACE_FUNCS): Add strtol.
1726 * lib/Makefile.in (SOURCES): Add strtol.c.
1728 Sun Nov 06 00:18:56 1994 Jim Meyering (meyering@comco.com)
1732 Sat Nov 05 15:20:07 1994 Jim Meyering (meyering@comco.com)
1734 * group-member.c: Use up-to-date version.
1735 * group-member.h: New file.
1736 * lib/Makefile.in (DISTFILES): Add group-member.h.
1737 (group-member.o): Depend on group-member.h.
1741 * src/Makefile.in (obstack.o): Depend on obstack.h.
1742 * makepath.c (makepath) [__STDC__]: Add an ANSI-style prototype.
1745 Fri Nov 04 17:27:55 1994 Jim Meyering (meyering@comco.com)
1749 Thu Nov 03 12:59:34 1994 Jim Meyering (meyering@comco.com)
1751 * makepath.h: New file.
1752 * makepath.c: Include it.
1753 Add an argument: PRESERVE_EXISTING.
1754 Declare char* arguments const.
1755 * install.c, mkdir.c: Update callers. Set it in mkdir.c so
1756 that `mkdir -p' ignores existing directories as POSIX mandates.
1757 Before, it would try to change owner and/or permissions of such
1758 directories. Christopher S. Arthur <csa@halcyon.com> reported
1759 the mkdir -p failure.
1760 * lib/Makefile.in (DISTFILES): Add it.
1761 (makepath.o): Depend on makepath.h.
1762 * src/Makefile.in (install.o, mkdir.o): Depend on makepath.h.
1763 * cp.c (make_path_private): Rename function from make_path to
1765 (do_copy): Update caller.
1767 * ls.c: Include <limits.h> before system.h because limits.h on
1768 some systems undefines PATH_MAX, whereas system.h includes pathmax.h
1769 which sets PATH_MAX. From Kaveh Ghazi.
1771 * euidaccess.c: Define S_IXUSR, S_IXGRP, and S_IXOTH in terms of
1772 S_IEXEC if they're not already defined. Reported by Kaveh Ghazi
1773 and Daniel Hagerty <hag@gnu.ai.mit.edu>.
1775 Tue Nov 01 06:18:20 1994 Jim Meyering (meyering@comco.com)
1777 * eaccess.c (euidaccess): Rename from eaccess to avoid conflict
1778 with like-named, different function in some C libraries.
1779 * euidaccess.c: Renamed from eaccess.c
1780 * lib/Makefile.in (SOURCES): Rename eaccess.c.
1781 Update dependency, too.
1782 * configure.in (AC_REPLACE_FUNCS): Check for euidaccess
1784 Mon Oct 31 08:02:31 1994 Jim Meyering (meyering@comco.com)
1786 * ls.c (dired_dump_obstack): Cast obstack_finish for non-ANSI
1787 compilers. Kaveh Ghazi reported the problem.
1789 Sat Oct 29 00:42:18 1994 Jim Meyering (meyering@comco.com)
1791 * fsusage.c (get_fs_usage) [STAT_STATFS4]: Define CONVERT_BLOCKS
1792 to adjust_blocks for _AIX. Was getting off-by-8x numbers.
1794 * df.c: Make --sync the default.
1795 Add new option: --no-sync.
1796 Remove short option alias for --sync.
1799 * ls.c [!STDC_HEADERS]: Declare free.
1800 (dired_dump_obstack): Cast pos[i] (of type size_t) to int so it
1801 matches %d in printf.
1802 (quote_filename): Fix typo in stpcpy call.
1804 Thu Oct 27 00:02:45 1994 Jim Meyering (meyering@comco.com)
1806 * fsusage.c: Include <sys/stat.h> before safe-stat.h.
1808 * cp.c (make_path): Don't change protections on existing directory.
1809 Reported by Andreas Schwab.
1811 * df.c: New option: --sync. No longer perform sync by default.
1812 Do it only when this option is used. Invoking sync can be very
1813 expensive, and it's not clear that doing so yields more up to date
1814 results. With encouragement/prodding from Paolo Zeppegno
1815 (paolo@to.sem.it), Nick Holloway, and Kaveh Ghazi.
1817 Thu Oct 20 00:52:59 1994 Jim Meyering (meyering@comco.com)
1819 * system.h [!S_IEXEC]: Define as S_IXUSR.
1821 * cp.h [S_IEXEC]: Remove definition. cp.c doesn't use it.
1823 * ls.c [!INT_MAX]: Define to 2^31 - 1 so subsequent #if test works.
1824 [S_IEXEC]: Remove definition. It's in system.h now.
1825 (usage): Sort options, but without segregating upper and lower case.
1827 * ls.c: Support for new option: --dired (-D).
1828 (dired, dired_pos, dired_obstack, subdired_obstack): Global variables.
1829 [PUTCHAR, FPUTS, FPUTS_LITERAL, PUSH_CURRENT_DIRED_POS]: New macros
1830 (dired_dump_obstack, quote_filename): New functions.
1831 (main): Initialize obstacks.
1832 (decode_switches): Recognize -D.
1833 (print_dir): Make arguments `const.'
1834 Record directory name indices in obstack.
1835 (print_dir, print_long_format, print_type_indicator): Use macros
1836 FPUTS, FPUTS_LITERAL, PUTCHAR for output.
1837 (print_long_format): Record file name indices in obstack.
1838 (print_name_with_quoting): Just call quote_filename and output the
1841 Mon Oct 17 23:56:36 1994 Jim Meyering (meyering@comco.com)
1843 * savedir.c: Indent CPP conditionals. Change some #ifdefs to #ifs.
1844 From Franc,ois Pinard.
1846 Mon Oct 17 10:27:26 1994 David J. MacKenzie (djm@duality.gnu.ai.mit.edu)
1848 * lib/dirname.c: Use strrchr, not rindex.
1850 Sun Oct 16 07:53:27 1994 Jim Meyering (meyering@comco.com)
1852 * system.h (S_IXUSR, S_IXGRP, S_IXOTH): Define these in terms of
1853 S_IEXEC if they're not already defined. From Kaveh Ghazi.
1855 * eaccess.c (eaccess_stat): Don't use NULL in comparison.
1856 Some systems don't define it except in stdio.h -- and including
1857 (yes, just including) stdio.h has been known to significantly
1858 increase object code size (though admittedly, that probably
1859 happens only on old systems). Kaveh Ghazi reported the problem.
1861 * src/Makfile.in lib/Makfile.in (DEFS): Remove -Dlint.
1862 It causes problems on broken pyramid system.
1865 Sat Oct 08 10:39:32 1994 Jim Meyering (meyering@comco.com)
1867 * mountlist.c: Always include <sys/param.h> if it exists.
1868 (fstype_to_string) [__NetBSD__]: Don't define this function.
1869 (read_filesystem_list) [__NetBSD__]: Use fsp's f_fstypename field,
1870 rather than fstype_to_string (f_type). With suggestions from
1871 Greg Hudson (ghudson@mit.edu).
1873 * lib/Makefile.in (OBJECTS): Remove eaccess.o.
1874 * configure.in (AC_REPLACE_FUNCS): Add `eaccess' here instead.
1875 The Hurd and Linux will have it.
1877 Fri Oct 07 20:27:48 1994 Jim Meyering (meyering@comco.com)
1879 * (doc): New subdirectory with texinfo documentation.
1880 * fileutils.texi: Thanks to Franc,ois Pinard and Karl Berry!
1882 * Makefile.in (All of them): Update from the ones in sh-utils.
1883 From now on, rules and definitions that are comon to the fileutils,
1884 textutils, and sh-utils will get ChangeLog entries only in the
1887 * Makefile.in (install, uninstall): Prepend ginstall->install
1888 mapping to standard $(transform) sed mapping.
1890 * chgrp.c, chmod.c, chown.c, install.c, mkdir.c, mkfifo.c, mknod.c,
1891 rm.c, rmdir.c (main): Diagnose wrong number of argument -- usually
1892 too few -- instead of just referring the user to the --help option.
1893 * mknod.c (main): Give diagnostics explaining specific problems
1894 instead of just the usage message. Reported by Karl Berry.
1896 * configure.in: Overhaul tests that determine how to get filesystem
1897 usage statistics. Now, most use AC_TRY_RUN and test for the precise
1898 feature that will be used. I know that that will make configuring a
1899 little harder for the people who cross compile, but if one of them
1900 is annoyed enough (or complains loudly enough :-) maybe someone will
1901 find the time to add tests to be used solely when cross compiling.
1902 * acconfig.h (STAT_READ): Rename to STAT_READ_FILSYS.
1903 * fsusage.c: Reorganize accordingly.
1905 Tue Oct 04 20:38:12 1994 Jim Meyering (meyering@comco.com)
1907 * chmod.c (main): Remove trailing slashes from file name arguments.
1908 Otherwise, `chmod 600 foo/; chmod 700 foo/' failed with the error
1909 `chmod: foo/: Permission denied' under Linux 1.1.51. Reported by
1910 Thomas Koenig (ig25@fg70.rz.uni-karlsruhe.de).
1911 * chown.c (main): Likewise.
1913 Thu Oct 2 23:03:32 1994 Jim Meyering (meyering@comco.com)
1915 * configure.in: Replace obsolete AC_DIR_HEADER with AC_HEADER_DIRENT
1916 and AC_FUNC_CLOSEDIR_VOID.
1918 * configure.in: Remove AC_SIZEOF_TYPE(int).
1919 ls.c: Instead of comparing SIZEOF_INT == 2, compare INT_MAX to 2^16.
1920 Suggestion from Roland McGrath.
1922 Sat Oct 01 21:23:27 1994 Jim Meyering (meyering@comco.com)
1924 * src/*.c: Remove CONFIG_BROKETS conditional.
1926 * {*/,}Makefile.in: Revamp to look much like those in sh-utils.
1927 * acconfig.h (HAVE_FTRUNCATE): Remove it.
1928 (ino_t, D_INO_IN_DIRENT): Add these.
1930 * configure.in: Convert for autoconf-2.0.
1931 * backupfile.c: Likewise.
1932 * savedir.c: Likewise.
1934 * mkdir.c, rmdir.c: Split the two functions from old mkdir.c into
1937 * chgrp.c [_POSIX_VERSION]: Test this instead of _POSIX_SOURCE.
1939 * ls.c: Don't use SIZEOF_INT because it would require configure
1940 to run a program -- then cross compilers would lose. Instead,
1941 compare INT_MAX to 64k-1 since all we need to know is whether
1942 an int is 2 bytes or larger.
1944 * rm.c [D_INO]: Use D_INO_IN_DIRENT rather than _POSIX_SOURCE in the
1945 test for how to define this macro.
1947 * system.h: Use HAVE_SYS_PARAM_H (not _POSIX_SOURCE) in test
1948 for whether to include <sys/param.h>.
1949 Likewise for <utime.h>.
1950 Update for DIRENT->HAVE_DIRENT_H etc. autoconf-2.0 changes.
1951 Ditto for VOID_CLOSEDIR->CLOSEDIR_VOID.
1953 * xgetcwd.c [!_POSIX_VERSION && !HAVE_GETCWD]: Remove
1954 !defined (_POSIX_VERSION) conjunct. From Kaveh Ghazi.
1956 Mon Sep 26 17:47:17 1994 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu)
1958 * lib/*.c: Remove CONFIG_BROKETS conditional.
1959 * lib/Makefile.in src/Makefile.in: Don't define it.
1961 Sun Sep 25 12:20:52 1994 Jim Meyering (meyering@comco.com)
1963 * ln.c (do_link): Give a diagnostic when trying to make a hard
1964 link to a nonexistent source file. Before, running the command
1965 `ln -i no-such-file existing-file' and responding `yes' to the
1966 prompt would both remove `existing-file' and fail to make a link.
1967 Karl Berry reported the problem.
1969 Sat Sep 10 04:34:34 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1971 * src/rm.c (remove_dir): Pass pathname to eaccess_stat.
1973 Fri Sep 2 13:54:13 1994 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
1975 * lib/Makefile.in (safe-lstat.c, safe-lstat.h, safe-stat.c,
1976 safe-stat.h): Use $(srcdir) to find source files.
1977 (.c.o): Use -I. to get safe-lstat.h and safe-stat.h from the
1979 * src/Makefile.in (incl): Add -I../lib to get lib/safe-lstat.h and
1980 lib/safe-stat.h from the build directory.
1982 Sat Aug 27 16:33:04 1994 Jim Meyering (meyering@comco.com)
1984 * ln.c (main): Accept new option --no-dereference (-n).
1985 (do_link): If the destination command line argument is a symlink
1986 to a directory and --no-dereference is given, use that as the
1987 destination instead of the file in the directory.
1988 * ln.1: Document this.
1990 * system.h [BROKEN_STAT_MACROS]: Remove unnecessary #ifdef's.
1991 From Francois Pinard.
1993 * isdir.c, makepath.c, rename.c [STAT_MACRO_BROKEN]: Remove
1996 Thu Aug 25 00:12:20 1994 Jim Meyering (meyering@comco.com)
1998 * dd.c (copy): Clean up and fix off-by-one error when freeing
2001 Thu Aug 18 11:41:16 1994 Jim Meyering (meyering@comco.com)
2003 * du.c (du_files) [HAVE_FCHDIR]: Use open (".", ...) and fchdir
2004 instead of xgetcwd and chdir. Otherwise, running du in a subdirectory
2005 of an unreadable directory would fail because xgetcwd fails.
2006 * configure.in (AC_HAVE_FUNCS): Add fchdir. AIX-2.3 (for one)
2009 * lib/Makefile.in (DISTFILES): Include getdate.c and posixtim.c
2010 so one doesn't need $(YACC).
2011 Add dependencies on safe-stat.h.
2013 Sat Jul 30 08:08:02 1994 Jim Meyering (meyering@comco.com)
2015 * du.c (main): Don't initialize automatic array CWD_ONLY in declaration.
2016 Some compilers don't allow that.
2018 * backupfile.c [DIRENT]: Remove spurious `|| defined(_POSIX_VERSION)'.
2021 * safe-xstat.c.in, safe-xstat.h.in: New files.
2022 * lib/Makefile.in: Add rules and dependencies for building safe-stat.c,
2023 safe-stat.h, safe-lstat.c, and safe-lstat.h from them.
2025 * eaccess.c (eaccess): Use SAFE_STAT instead of stat
2026 (and/or SAFE_LSTAT instead of lstat) to avoid unnecessary failure
2027 on systems for which stat (lstat) can return EINTR.
2028 * fsusage.c (statfs): Ditto.
2029 * isdir.c (isdir): Ditto.
2030 * makepath.c (make_path): Ditto.
2031 * rename.c (rename): Ditto.
2032 * chgrp.c (change_file_group): Ditto.
2033 * chmod.c (change_file_mode): Ditto.
2034 * chown.c (change_file_owner): Ditto.
2035 * cp-hash.c (remember_created): Ditto.
2036 * cp.c (main, do_copy): Ditto.
2037 * df.c (main, show_point): Ditto.
2038 * du.c (main, du_files, count_entry): Ditto.
2039 * install.c (copy_file): Ditto.
2040 * ln.c (main, do_link): Ditto.
2041 * ls.c (gobble_file): Ditto.
2042 * mv.c (is_real_dir, do_move): Ditto.
2043 * mvdir.c (main): Ditto.
2045 * touch.c (main, touch): Ditto.
2047 * Makefile.in (install): Tell GNU make that this target is .PHONY
2048 so it doesn't unnecessarily build ./install from install.sh.
2050 Tue Jul 26 11:33:53 1994 Jim Meyering (meyering@comco.com)
2052 * system.h: Remove `|| defined(_POSIX_VERSION)' from test that
2053 decides whether to include <fcntl.h>. From Francois Pinard.
2055 Sun Jul 03 08:44:00 1994 Jim Meyering (meyering@comco.com)
2057 * configure.in [AC_HAVE_HEADERS]: Add sys/param.h, for definition
2058 of HAVE_SYS_PARAM_H, now tested in pathmax.h.
2060 * makepath.c (make_path): Avoid spurious failure for file names
2061 that contain `/.' or `/..'. From Andreas Schwab
2062 <schwab@issan.informatik.uni-dortmund.de>.
2064 * dd.c (main): Handle SIGPIPE like other interrupts.
2065 From Scott L. Burson <gyro@zeta-soft.com>.
2067 * df.c (main, show_dev, usage): New option --print-type=fstype.
2068 From Arne Henrik Juul.
2071 Thu Jun 30 10:28:32 1994 Jim Meyering (meyering@comco.com)
2073 * ls.c (longdiff) [SIZEOF_INT == 2]: Choose which version of this
2074 macro to use based on SIZEOF_INT rather than obsolete INT_16_BITS.
2075 [INODE_DIGITS]: New macro.
2076 (print_long_format): Use it.
2077 (print_file_name_and_frills): Ditto.
2078 (length_of_file_name_and_frills): Ditto.
2079 (print_long_format): Add a couple casts to unsigned types.
2081 * ls.c: Change type name from `struct file' to `struct fileinfo'.
2082 David J. Mackenzie reported a name conflict on HPUX with the former.
2084 * dd.c (copy): Allocate an extra byte so I/O buffer begins on an
2085 even address. This because the ITOS 3000WS running SEIUX 3.1
2086 (a descendant of MIPS RISC/OS 4.x) has SCSI device drivers that
2087 require the I/O buffer begin on an even address. From
2088 Tilman Schmidt <tilman@gb1.sema.de>.
2090 Mon Jun 20 23:45:34 1994 Jim Meyering (meyering@comco.com)
2092 * configure.in: Use AC_PROGRAM_PATH to get values for LN, MV, RM.
2093 (AC_HAVE_FUNCS): Add getgroups.
2094 (AC_OUTPUT): Remove touch command.
2096 * eaccess.c (in_group): Remove static function. Use group_member
2098 (eaccess_stat, eaccess): Change calling sequence to take filename.
2099 Save UID and GID and use access if they are the same as effective IDs.
2100 (main) [TEST]: Test driver.
2101 * cp.c (copy): Update callers.
2102 * mv.c (do_move): Ditto.
2103 * rm.c (remove_file): Ditto.
2105 * cp.c (copy): With --preserve (-p) for non-root users, don't even
2106 try to preserve file ownership in chown call. Otherwise, on systems
2107 with the mis-feature allowing non-root users to change file ownership,
2108 the subsequent chmod would fail.
2110 * userspec.c (parse_user_spec): Rewrite. Be careful to free all
2111 allocated memory upon error.
2112 (main) [TEST]: Test driver.
2114 * src/Makefile.in (uninstall): Delete $(LIBPROGS) one at a time
2115 instead of like `rm -f $(libdir)/$(LIBPROGS)'. The old way loses
2116 when LIBPROGS is empty and $(libdir) is a non-directory, and would
2117 lose if LIBPROGS could ever have more than one word.
2118 * (RM, LN, MV, INSTALL): Use values determined by ./configure instead
2119 of the newly built binaries so people can build with a cross
2120 compiler and still run `make (un)install.'
2122 * chgrp.c (change_file_group): Give a better error message when
2123 failing because the invoking user does not belong to the requested
2124 group. This affects systems on which chown sets errno to EPERM
2125 for both `inaccessible file' and `user not a member of the specified
2126 group' errors. Before, `chgrp bin file-I-own' would give the
2127 misleading and incorrect diagnostic `chgrp: file-I-own: Not owner'.
2128 Now it reports `you are not a member of group `bin''.
2129 Thomas A Peterson (tap@src.honeywell.com) reported this weakness.
2131 * long-options.c: Move from src/ to lib/.
2132 * long-options.h: Ditto.
2133 * src/Makefile.in: Remove references to long-options.[ch].
2134 * lib/Makefile.in (SOURCES, OBJECTS): Add long-options.[co].
2136 Sat Jun 18 15:45:34 1994 Jim Meyering (meyering@comco.com)
2138 * du.c (count_entry): Print "/" instead of zero-length string.
2139 From Kjetil Torgrim Homme <kjetilho@ifi.uio.no>.
2141 Sun May 29 13:43:50 1994 Jim Meyering (meyering@comco.com)
2143 * group-member.c: New file.
2144 * lib/Makefile.in (SOURCES, OBJECTS): Add group-member.[co].
2147 * Makefile.in (PROGS): Add sync.
2148 (SOURCES): Add sync.c
2149 * src/Makefile.in: Add rules and dependencies for sync.
2151 * configure.in: Use AC_SET_MAKE and AC_PROG_INSTALL.
2152 If AC_FUNC_CHECK doesn't find getgroups, add -lbsd if possible.
2153 This was reported by Tilman Schmidt <ts@gb1.sema.de>
2154 to be necessary on an ITOS 3000WS running SEIUX 3.1.
2156 * Makefile.in: Edit MAKE assignments into @SET_MAKE@.
2157 (Makefile): Remove dependencies on */Makefile.in.
2158 Change the rule so running config.status creates only Makefile.
2159 (stamp-config): Have config.status generate only config.h.
2161 * {lib,man,src}/Makefile.in (Makefile): Add single dependency on
2162 Makefile.in and rule to make config.status create only Makefile.
2164 * system.h: Move from lib to src.
2165 * src/Makefile.in (DISTFILES): Add system.h.
2166 * lib/Makefile.in (DISTFILES): Remove system.h.
2168 Mon Apr 18 19:54:24 1994 Jim Meyering (meyering@comco.com)
2170 * documentation: Change uses of `pathname' and `path' as per
2173 Fri Apr 15 20:41:15 1994 Jim Meyering (meyering@comco.com)
2175 * mv.c (main): Give a reason for failure when given fewer than
2176 two non-option arguments, rather than just the pointer to --help.
2177 * ln.c (main): Ditto, but for no non-option arguments.
2179 * configure.in: Update for autoconf-1.8.
2180 Use AC_CHECKING instead of echo.
2181 Use AC_SIZEOF_TYPE instead of obsolete AC_INT_16_BITS.
2183 Wed Apr 13 11:18:19 1994 Jim Meyering (meyering@comco.com)
2185 * cp.c (copy_reg): Correct off-by-DEV_BSIZE error in test for
2186 whether a file has holes. From Michael Bushnell <mib@gnu.ai.mit.edu>.
2188 Wed Mar 30 08:53:21 1994 Jim Meyering (meyering@comco.com)
2190 * configure.in: Use AC_SET_MAKE.
2191 * Makefile.in: Edit MAKE assignments into @SET_MAKE@.
2193 Mon Mar 14 11:01:09 1994 Jim Meyering (meyering@comco.com)
2195 * fsusage.c (adjust_blocks): Return -1 when FROMSIZE is non-positive.
2196 Suggestion from Andries.Brouwer@cwi.nl. He reported that df failed
2197 with divide by zero when trying to process an entry for an nfs file
2198 system mounted over a SLIP line after the SLIP connection had been
2200 [convert_blocks]: Rename macro to CONVERT_BLOCKS.
2202 Sat Jan 29 13:24:07 1994 Jim Meyering (meyering@comco.com)
2204 * du.c (main): Call du_files (with ".") when there are no
2205 non-option arguments rather than treating that as a special case.
2206 (du_files): Ignore return value from count_entry.
2207 (count_entry): Accumulate file sizes into new global sum used for
2208 the -c option; the return value is unchanged and is still used
2209 by recursive calls. Now, using -S and -c together works.
2210 Add parentheses to clarify precedence.
2212 Fri Jan 28 11:02:21 1994 Jim Meyering (meyering@comco.com)
2214 * configure.in: Don't set LDFLAGS since linking now uses both
2217 Thu Jan 13 17:27:38 1994 Jim Meyering (meyering@comco.com)
2219 * src/Makefile.in: Change all link commands to use both $(CFLAGS)
2222 Mon Jan 10 01:20:38 1994 Jim Meyering (meyering@comco.com)
2224 * man/Makefile.in (manprefix): Use binprefix as the default.
2226 Thu Dec 30 23:11:10 1993 Jim Meyering (meyering@comco.com)
2228 * The following changes are necessary to avoid spurious failures
2229 when a read or write system call is interrupted (e.g. by SIGTSTP).
2230 A POSIX implementation of those system calls may either return
2231 -1 and set errno to EINTR or return a positive value indicating
2232 that a partial read or write has completed successfully. On Linux
2233 0.99.14, interrupted read and write system calls return -1/EINTR.
2234 Thanks to Bruno Haible <haible@ma2s2.mathematik.uni-karlsruhe.de>
2235 for pointing this out.
2237 * full-write.c, safe-read.c: New files.
2239 * cp.c (copy_reg): Use full_write instead of write. Handle
2240 errno == EINTR (instead of failing) after read system call.
2241 * dd.c (skip): Handle errno == EINTR (instead of failing) after
2243 (copy): Use safe_read instead of read.
2244 * install.c (copy_file): Use safe_read and full_write instead of
2245 read and write system calls.
2246 * mv.c (copy_reg): Ditto.
2247 * touch.c (utime_now): Ditto.
2249 Tue Dec 28 15:49:32 1993 Jim Meyering (meyering@comco.com)
2251 * install.sh: New file.
2252 Makefile.in [DISTFILES]: Add it.
2254 Sat Dec 18 01:12:24 1993 Jim Meyering (meyering@comco.com)
2256 * configure.in (AC_OUTPUT): Put `touch stamp-config' in second arg
2257 so it goes in config.status. This eliminates unnecessary second run
2260 Thu Nov 18 00:03:24 1993 Jim Meyering (meyering@comco.com)
2262 * configure.in [STAT_STATFS2_FSIZE]: Fix test (that had obsolete
2263 and now-broken use of AC_HEADER_EGREP) so that this flag is set
2266 Mon Oct 25 20:27:00 1993 Jim Meyering (meyering@comco.com)
2268 * cp-aux.c, df.c, install.c, ln.c, ls.c, mkdir.c, mkfifo.c,
2269 mknod.c, mv.c, touch.c: Use the preferred `--longopt=arg'
2270 syntax in --help message rather than `--longopt arg'.
2271 From Francois Pinard.
2273 Tue Oct 19 07:02:18 1993 Jim Meyering (meyering@comco.com)
2277 Mon Oct 18 00:13:40 1993 Jim Meyering (meyering@comco.com)
2279 * src/*.c (usage): Now the usage message is simply
2280 "Try `%s --help' for more information. From Francois Pinard.
2282 * src/Makefile.in [LIBPROGS]: Depend on ../lib/libfu.a and
2283 version.o. From Francois Pinard.
2285 * src/*.c (usage): Remove blank line before "Try `%s --help..."
2288 Sun Oct 17 00:19:58 1993 Jim Meyering (meyering@comco.com)
2290 * fileblocks.c [!NINDIR]: Define BSIZE only if it's not already
2293 * ls.c (print_long_format): Cast printf args major and minor
2294 so they'll have types matching %u format even on systems
2295 where those macros have signed type.
2297 Sat Oct 16 00:25:42 1993 Jim Meyering (meyering@comco.com)
2299 * chmod.c (change_file_mode): Reapply Oct 6 change for symlinks.
2300 Somehow it got removed from working sources.
2302 * lib/Makefile.in [OBJECTS]: Change dependency to ../config.h so
2303 it works when building in a subdirectory. From Rick Sladkey
2304 (jrs@world.std.com).
2306 Wed Oct 13 19:43:47 1993 Jim Meyering (meyering@comco.com)
2308 * cp.c (copy), ls.c (get_link_name): Complete Aug 27 change so
2309 that we use PATH_MAX + 1 rather than sizeof(char*) as size of
2310 buffer in readlink call. This was causing spurious errors.
2312 * cp.c (copy), mv.c (do_move), rm.c (remove_file, remove_dir):
2313 Cast to `unsigned int' stat->st_mode printf arguments corresponding
2314 to %o formats to avoid warnings.
2316 * lib/Makefile.in [DEFS]: Remove -DMVDIR. Add -DCONFIG_BROKETS.
2317 (rename.o): Add a specific rule. Use -DMVDIR=... here instead.
2319 * src/Makefile.in [DEFS]: Add -DCONFIG_BROKETS.
2320 (distclean): Don't delete dir.c and vdir.c; they aren't
2323 * lib/Makefile.in: Make all .o files depend on $(srcdir)/../config.h.
2324 * src/Makefile.in: Ditto.
2326 Sun Oct 10 13:38:54 1993 Jim Meyering (meyering@comco.com)
2328 * src/Makefile.in (dist): Depend on $(DISTFILES).
2330 * src/Makefile.in [libdir, LIBPROGS]: Define them.
2331 From Francois Pinard.
2333 * posixtm.y: [HAVE_CONFIG_H, CONFIG_BROKETS]: Include <config.h>
2334 or "config.h". From Francois Pinard.
2336 * makepath.c: [HAVE_CONFIG_H, CONFIG_BROKETS]: Remove the duplicate
2337 #ifdef block following the alloca #ifdefs. From Francois Pinard.
2339 * df.c: Remove unnecessary dcl of strstr.
2341 Sat Oct 9 13:30:28 1993 Jim Meyering (meyering@comco.com)
2343 * configure.in [STATFS_OSF1]: Change name to STAT_STATFS3_OSF1
2344 to be consistent with names of the other STAT_* macros.
2345 * acconfig.h: Ditto.
2348 * acconfig.h: Add comments.
2349 * Makefile.in: Remove comments about -D flags that could be added
2350 to DEFS; now (using autoheader) those comments end up in config.h.
2352 * Makefile.in (configure, config.h.in): Warn that they may not be
2353 up to date. Don't touch them.
2355 * ls.c (usage): Split long usage string between two fprintf
2356 statements to avoid default limit of SGI's cc on string length.
2358 * Makefile.in, src/Makefile.in [PROGS]: Alphabetize.
2360 * configure.in: Remove AC_UNISTD_H; add unistd.h to AC_HAVE_HEADERS.
2362 Thu Oct 07 12:57:10 1993 Jim Meyering (meyering@comco.com)
2364 * chgrp.c, chmod.c, chown.c, cp-aux.c, cp.c, dd.c, df.c, du.c,
2365 install.c, ln.c, ls.c, mkdir.c, mkfifo.c, mknod.c, mv.c, mvdir.c,
2366 rm.c, rmdir.c, touch.c (usage): Using --help gets long well-
2367 formatted help. Now --help writes to stdout and exits successfully.
2368 From Francois Pinard <pinard@iro.umontreal.ca>.
2370 * lib/Makefile.in [libdir]: Make sure it's defined.
2372 * posixtm.y [!__GNUC__ && !HAVE_ALLOCA_H]: Declare alloca as void*
2373 rather than char*. The latter conflicts with a dcl from bison.simple.
2375 Wed Oct 06 18:22:00 1993 Jim Meyering (meyering@comco.com)
2377 * chmod.c (change_file_mode): Add an argument to control how symbolic
2379 (main, change_dir_mode): Reflect changed calling sequence.
2380 Now symlinks listed on the command line are processed (they
2381 were ignored before); the permissions of the dereferenced files are
2382 changed. Symlinks encountered in recursive traversals are still
2383 ignored. This makes GNU chmod act more like e.g. Sun's.
2384 From Nick Holloway <alfie@dcs.warwick.ac.uk>.
2385 * chmod.1: Document it.
2387 Tue Oct 05 14:52:02 1993 Jim Meyering (meyering@comco.com)
2389 * configure.in: Add AC_STAT_MACROS_BROKEN.
2391 * isdir.c, makepath.c, rename.c, system.h [STAT_MACROS_BROKEN]:
2394 * install.c (install_file_in_dir): Use stpcpy instead of slow sprintf.
2396 * argmatch.c, backupfile.c, basename.c, dirname.c, eaccess.c,
2397 fileblocks.c, fsusage.c, getversion.c, idcache.c, isdir.c,
2398 makepath.c, mountlist.c, rename.c, savedir.c, stripslash.c,
2399 userspec.c, xgetcwd.c, xstrdup.c, yesno.c, [HAVE_CONFIG_H,
2400 CONFIG_BROKETS]: Include <config.h> or "config.h".
2402 * lib/Makefile.in, src/Makefile.in [.c.o]: Put -I.. before
2403 -I$(srcdir) so <config.h> will get the right file.
2405 * chgrp.c, chmod.c, chown.c, cp-aux.c, cp-hash.c, cp.c, dd.c,
2406 df.c, du.c, install.c, ln.c, ls.c, mkdir.c, mkfifo.c, mknod.c,
2407 mv.c, mvdir.c, rm.c, rmdir.c, touch.c, version.c [HAVE_CONFIG_H,
2408 CONFIG_BROKETS]: Include <config.h> or "config.h".
2410 * configure.in [AC_CONFIG_HEADER]: Use it.
2412 * configure.in (rename.o) [MVDIR definition]: Remove it.
2413 * lib/Makefile.in [DEFS]: Put it here instead.
2415 * config.h.in, acconfig.h: New files
2416 * Makefile [DISTFILES]: Add them.
2417 (config.h.in): Add a rule to warn if it may need to be rebuilt.
2419 * lib/Makefile [YACC]: Get definition from @YACC@.
2421 * system.h: Include <unistd.h>. This is needed for the definition
2424 Thu Sep 9 08:52:10 1993 Jim Meyering (meyering@comco.com)
2426 * src/*.c: Print version on standard output, not stderr.
2428 Fri Aug 27 23:53:50 1993 Jim Meyering (meyering@comco.com)
2430 * cp.c (copy), ls.c (get_link_name): Don't use PATH_MAX as array
2431 length in declarations because on some systems it gets defined
2432 to the function pathconf. Use dynamic allocation instead.
2434 * fsusage.c (adjust_blocks): Use `1' instead of `+1'. Many
2435 compilers don't parse the latter. From Kaveh R. Ghazi.
2437 Thu Aug 26 22:26:09 1993 Jim Meyering (meyering@comco.com)
2439 * ls.c (print_long_format, print_file_name_and_frills): Cast inode
2440 number to unsigned long and print it with %lu to avoid warnings from
2441 gcc -Wformat because the size and type of ino_t are system dependent.
2443 * cp.c (do_copy): Plug a memory leak with --parents.
2445 * ln.c (main): Like mv and cp, convert `ln x y/' to ln x y/x
2446 when a is not a directory.
2447 [PATH_BASENAME_CONCAT]: New macro.
2448 (do_link): Use it here, too.
2450 * ls.c (sort_files): Add `default: abort();' clause to switch stmts.
2452 * cp.c (do_copy): Don't remove trailing slashes from source.
2454 Wed Aug 25 21:40:00 1993 Jim Meyering (meyering@comco.com)
2456 * cp.c: Add --parents as synonym for --path. Change --path to
2457 --parents in comments. --path is deprecated.
2459 * rm.c (clear_directory): Fix incorrect test for determining when
2460 to reallocate buffer. Thanks to Ric Anderson <ric@CS.Arizona.EDU>.
2462 Fri Aug 13 17:19:52 1993 Jim Meyering (meyering@comco.com)
2464 * fsusage (adjust_blocks): Round away from zero -- this matters
2465 when computing the negative free-block count for disks that are
2466 more than 100% full.
2468 * mv.c (movefile): Use nested calls to stpcpy instead of sprintf.
2469 (is_real_dir): New function.
2470 (movefile): In addition to when dest is a directory, if dest has
2471 a trailing `/' and source is not a directory, presume the target
2472 is dest/`basename source`. This converts `mv x y/' to `mv x y/x'
2473 when x is not a directory. This change means that the command
2474 `mv any file/' will now fail rather than performing the move.
2476 * cp.c (do_copy): Similarly, convert `cp x y/' to cp x y/x when
2477 x is not a directory.
2479 Wed Aug 4 17:43:18 1993 Jim Meyering (meyering@comco.com)
2481 * ls.c (get_link_name): Don't ever use the stat field st_size as a
2482 buffer size. Too many systems don't set it properly for mount points.
2483 Instead, use a fixed-length buffer. From Michael Joosten
2484 <joost@ori.CAdlab.DE>.
2485 * cp.c (copy): Ditto.
2487 Mon Jul 19 17:39:01 1993 Jim Meyering (meyering@comco.com)
2489 * backupfile.c (concat): Temporary STR1_LENGTH should have type `int'
2492 Fri Jul 16 22:00:16 1993 David J. MacKenzie (djm@goldman.gnu.ai.mit.edu)
2494 * dd.c (print_stats): Change message from "truncated blocks"
2495 to "truncated records" for final POSIX.2 spec.
2497 Fri Jun 25 17:18:15 1993 Jim Meyering (meyering@comco.com)
2499 * mkdir.c, rmdir.c: Change --path long option to --parents to avoid
2500 confusion with search-path semantics of --path as an option to other
2501 programs. --path will still work, but is no longer documented.
2503 Tue Jun 8 00:46:26 1993 Jim Meyering (meyering@comco.com)
2505 * dd.c (parse_integer): Also accept `c' multiplier for consistency
2506 with find's -size option.
2508 Thu May 27 00:03:51 1993 Jim Meyering (meyering@comco.com)
2512 * configure.in (STAT_OSF1): Reference the statfs f_fsize member
2513 so that configure defines STAT_OSF1 only if there is such a member.
2514 Without such a reference, a Pyramid MIServer running OSx 5.1
2515 improperly defined STAT_OSF1 instead of the one it needed:
2518 Wed May 26 00:57:46 1993 Jim Meyering (meyering@comco.com)
2520 * ls.h, ls-ls.c ls-dir.c, ls-vdir.c: New files that define or
2521 simply set the new global variable ls_mode. ls_mode defines whether
2522 the executable built from ls.o should act like ls, dir, or vdir.
2523 * ls.c (decode_switches): Use the variable instead of #ifdefs.
2524 This is modelled after the approach used in GNU binutils 2.x for
2525 ar and ranlib. Here we avoid two redundant compilations.
2527 * install.c (change_attributes, copy_file, install_file_in_file):
2528 Don't call chown if we can efficiently determine that doing so is
2529 unnecessary. On some systems, calls to chown (even with your own
2530 uid and gid) fail unless made by root. On such systems install
2531 got spurious failures.
2533 Sat May 22 02:13:12 1993 Jim Meyering (meyering@comco.com)
2537 Fri May 21 18:42:27 1993 Jim Meyering (meyering@comco.com)
2539 * rename.c (rename): Be careful not to unlink `from' if it happens
2540 to be equal to `to' or (on filesystems that silently truncate
2541 filenames after 14 characters) if `from' and `to' share the
2542 significant characters. From Bruno Haible
2543 <haible@ma2s2.mathematik.uni-karlsruhe.de>.
2545 * mountlist.c, fsusage.c: Make these work under m88k DolphinOS.
2546 From Kjetil Wiekhorst J|rgensen <jorgens@pvv.unit.no>.
2548 Tue May 18 23:49:26 1993 Jim Meyering (meyering@comco.com)
2550 * mkinstalldirs: New file.
2551 * Makefile.in (installdirs): Use it.
2553 Sat May 15 01:20:26 1993 Jim Meyering (meyering@comco.com)
2555 * ln.c (do_link): Make `ln -s dir_pathname .' work when the
2556 pathname has a trailing slash.
2558 Fri May 14 23:45:52 1993 Jim Meyering (meyering@comco.com)
2560 * all source: With --version, print version and exit immediately.
2562 Wed May 12 20:48:55 1993 Jim Meyering (meyering@comco.com)
2564 * configure.in: Add check for the -ldgc library that is required
2565 for getmntent on m88k DGUX-5.4 systems.
2567 * Makefile.in (installdirs): New rules for creating installation
2568 directories. (install): Depend on it.
2570 Sat May 8 11:31:14 1993 Jim Meyering (meyering@comco.com)
2572 * lib/Makefile.in (dist): Use `cp -p' instead of just `cp'
2575 Thu May 6 22:45:25 1993 Jim Meyering (meyering@comco.com)
2577 * makepath.c: Use explicit dcl of errno only if !STDC_HEADERS.
2578 Some systems have <errno.h> but don't declare errno.
2579 From Kaveh R. Ghazi <ghazi@caip.rutgers.edu>.
2581 * getdate.y: Test TIME_WITH_SYS_TIME, not TIME_AND_SYS_TIME.
2583 Wed May 5 00:21:12 1993 Jim Meyering (meyering@comco.com)
2585 * configure.in: Add AC_TIME_WITH_SYS_TIME.
2586 * getdate.y: Use it (this is a version local to fileutils).
2588 Tue May 4 20:25:41 1993 Jim Meyering (meyering@comco.com)
2590 * du.c (count_entry): Give an error and exit if chdir ("..") fails.
2591 From Bruce Evans <bde@runx.oz.AU>.
2593 * eaccess (eaccess_stat): Cast NGROUPS_MAX to appropriate types.
2594 From Bruce Evans <bde@runx.oz.AU>.
2596 Mon May 3 22:09:24 1993 Jim Meyering (meyering@comco.com)
2598 * configure.in: Add AC_GETGROUPS_T.
2599 * eaccess.c: Don't define GETGROUPS_T. Now configure does it.
2601 Sun May 2 09:18:53 1993 Jim Meyering (meyering@comco.com)
2603 * configure.in: Check for libypsec.a on Dolphin M88K machines.
2604 This can result in significant speedup for programs that access
2605 YP information. From Kjetil Wiekhorst J{\o}rgensen
2606 <jorgens@pvv.unit.no>.
2608 Fri Apr 30 02:21:48 1993 Jim Meyering (meyering@comco.com)
2610 * ls.c (main): Make `-f' work like on standard Unix ls, instead
2611 of as a short equivalent of --full-time.
2612 * ls.1: Document it.
2614 Thu Apr 29 00:46:46 1993 Jim Meyering (meyering@comco.com)
2616 * src/Makefile.in [dir.o, vdir.o]: Make ordering of CFLAGS etc
2617 in compilation rules consistent with that in .c.o rule.
2619 * Makefile.in (dist): Depend on Makefile so that changes to
2620 Makefile.in (like adding new files to DISTRIB) are reflected
2621 in the new distribution.
2623 Tue Apr 27 21:35:11 1993 Jim Meyering (meyering@comco.com)
2625 * configure.in: Remove unnecessary AC_PROG_INSTALL.
2627 Fri Apr 23 23:39:16 1993 Jim Meyering (meyering@comco.com)
2629 * {lib,src}/Makefile.in [.c.o]: Make CPPFLAGS and CFLAGS follow
2630 other options so users can use them to override DEFS.
2632 * lib/mktime.c: Use new version from glibc instead of one from
2633 libc-subst. `touch' built with the latter didn't set proper
2634 time unless given a specific --date option.
2636 Thu Apr 22 00:22:25 1993 Jim Meyering (meyering@comco.com)
2638 * makepath.c: Decouple inclusion of errno.h from definition of
2639 STDC_HEADERS; many systems have errno.h, yet shouldn't define
2641 * makepath.c (make_path): Add EPERM clause only if both AFS and
2643 * configure.in: Test for errno.h header file.
2645 Mon Apr 19 11:21:14 1993 Jim Meyering (meyering@comco.com)
2649 * ls.c, touch.c: Don't include time.h explicitly -- it's included
2650 by system.h. From Franc,ois Pinard.
2652 * posixtm.y: Use TM_IN_SYS_TIME.
2654 * backupfile.c [index, rindex]: Don't redefine them.
2656 * system.h [alloca]: Don't redefine it.
2658 * configure.in: Check for sys/time.h; getdate.y needs it for
2659 structs timeval and timezone on some systems.
2661 Sun Apr 18 22:40:19 1993 David J. MacKenzie (djm@kropotkin.gnu.ai.mit.edu)
2663 * ls.c: Include fnmatch.h after system.h, so we get our
2664 definitions of FNM_*, not those from unistd.h.
2666 * mountlist.c [MOUNTED_GETMNTINFO]: Add #ifdef around MOUNT_PC.
2668 * configure.in: Fix test for 4.4BSD statfs to not grep for a
2669 macro in cpp output.
2671 Sun Apr 18 02:35:36 1993 Jim Meyering (meyering@comco.com)
2673 * configure.in: Check for gettimeofday.
2674 Check for `struct tm'.
2675 Change MVDIR definition so it works with new AC_DEFINE.
2677 * system.h: Remove last vestiges of USG; instead, use specific
2678 test for TM_IN_SYS_TIME to determine whether to include time.h
2681 * src/Makefile.in (install): Rewrite the test for whether to install
2682 mvdir so that it doesn't cause gratuitous failures with broken shells.
2683 Split long rule so the pieces fit in 80-column lines.
2685 Thu Apr 15 23:44:01 1993 Jim Meyering (meyering@comco.com)
2687 * lib/Makefile.in (posixtm.c): Add dependency on getdate.c to enforce
2688 sequential invocations of YACC.
2689 * (posixtm.c, getdate.c): Remove use of `bison -o' and associated
2690 conditional rename commands -- not needed since the parser generators
2691 won't be run in parallel; now bison (when used) is always invoked
2694 Tue Apr 13 09:18:18 1993 Jim Meyering (meyering@comco.com)
2696 * configure.in: Find a parser generator.
2697 * Makefile.in [MDEFINES]: Add YACC to the list of variables passed to
2699 * lib/Makefile.in (posixtm.c, getdate.c): Try first to build with
2700 `bison -o' -- for parallel makes. If that fails, use $(YACC).
2702 * posixtm.y [HAVE_MEMCPY && !HAVE_BCOPY]: Define bcopy in terms
2703 of memcpy for old versions of bison that generate parsers that
2706 * configure.in: Add tests for memcpy and bcopy.
2708 Mon Apr 12 23:02:14 1993 Jim Meyering (meyering@comco.com)
2710 * configure.in (mounted, space): Add filesystem checks for DEC Alpha
2711 running OSF/1 to complement new code in mountlist.c and fsusage.c.
2713 * lib/mountlist.c (read_filesystem_list) [MOUNTED_GETFSSTAT]: Add code
2714 to do it the OSF/1 way on a DEC alpha.
2715 From Brian Fox (bfox@tinker.crseo.ucsb.edu).
2717 * lib/fsusage.c (get_fs_usage) [STATFS_OSF1]: Add code to call OSF/1's
2718 variant of statfs. From Brian Fox (bfox@tinker.crseo.ucsb.edu).
2720 Sun Apr 11 20:29:31 1993 Jim Meyering (meyering@comco.com)
2722 * df.c (main, show_dev): Don't list dummy (automounter) filesystems
2723 unless they're explicitly listed on the command line or if the -a
2726 Fri Apr 9 11:40:48 1993 Jim Meyering (meyering@comco.com)
2728 * src/Makefile.in [.c.o]: Put CFLAGS after include directives.
2730 Wed Apr 7 23:54:48 1993 Jim Meyering (meyering@comco.com)
2732 * eaccess.c: Undefine NGROUPS_MAX before redefining it.
2733 From ghazi@caip.rutgers.edu (Kaveh R. Ghazi).
2735 Mon Apr 5 20:14:17 1993 Jim Meyering (meyering@comco.com)
2737 * chgrp.c, chmod.c, chown.c, install.c, ls.c, mkfifo.c, mknod.c,
2738 touch.c: Add `case 0: break;' for long-only options help and version.
2740 Sun Apr 4 09:38:00 1993 Jim Meyering (meyering@comco.com)
2742 * src/*.c (usage): Mention --help and --version.
2743 (main): Handle flag_help and flag_version before checking for
2746 * cp.c (copy): Declare to be static.
2748 * cp.c (copy, make_path, re_protect): Explicitly cast alloca return
2750 * ln.c (do_link): Ditto
2751 * mv.c (do_move): Ditto
2752 * makepath.c (make_path): Ditto
2754 * lib/eaccess.c (eaccess_stat): Cast to unsigned the value to
2755 be right-shifted to avoid ANSI vs K&R semantic ambiguity.
2757 * src/Makefile.in (incl): New variable.
2759 * chown.c (main): Explicitly cast -1 to [ug]id_t to avoid compiler
2762 * cp.h: Remove unneeded extern dcl of exit_status.
2764 * basename.c [rindex]: Don't redefine it.
2765 * system.h [rindex, incl, bcopy, bzero]: Ditto.
2766 * userspec.c [index]: Ditto.
2768 * Makefile.in [CFLAGS, LDFLAGS]: Don't hard-code these; get their
2769 definitions from configure.
2770 * configure.in [CFLAGS, LDFLAGS]: Assign reasonable defaults.
2772 Sat Apr 3 18:17:23 1993 Jim Meyering (meyering@comco.com)
2774 * Makefile.in [Makefile]: Add dependencies and a rule to remake it.
2775 [targets that cd then run make in subdirectories]: Don't depend
2776 on `cd ..'; use a subshell instead.
2777 [info, install-info, dvi, check, installcheck]: New targets but no
2778 rules; comply with standards.
2780 * src/Makefile.in [.c.o, dir.o, vdir.o]: Put CFLAGS after DEFS and
2781 CPPFLAGS per standards.texi.
2782 Use automatically generated dependencies.
2784 * mvdir.c (main): Remove dcl of unused variable.
2786 Thu Apr 1 18:05:48 1993 Jim Meyering (meyering@comco.com)
2788 * install.c, chgrp.c, dd.c [isascii]: Undefine before redefining.
2790 * ls.c: Move some dcls so they appear before first function.
2792 * all programs: Add --help and --version options.
2793 * version.c: Remove `Version: ' and newlines from version string.
2795 * dd.c: Convert usage to take no arguments.
2796 * lib/Makefile.in [DISTFILES]: Add version.h.
2798 Wed Mar 31 22:03:28 1993 Jim Meyering (meyering@comco.com)
2800 * configure.in [MVDIR]: Don't quote right hand side.
2801 * backupfile.c, chgrp.c, install.c: Define isascii macro to be 1
2802 also if STDC_HEADERS.
2804 Tue Mar 30 17:42:11 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2806 * ls.c: Add -G,--no-group option to inhibit display of group
2808 * ls.1: Document it.
2810 Mon Mar 29 22:22:40 1993 Jim Meyering (meyering@comco.com)
2812 * system.h [ST_NBLOCKS]: Check also for __hpux. From Henrik B}kman
2813 <Henrik.Bakman@csd.uu.se>.
2815 Sun Mar 28 21:22:30 1993 Jim Meyering (meyering@comco.com)
2817 * Makefile.in (dist): Use cp when hard link fails.
2818 Use tar-1.11.2's -z option instead of -Z.
2820 * makepath.c [index]: Don't redefine.
2822 Fri Mar 26 00:32:39 1993 Jim Meyering (meyering@comco.com)
2824 * df.c (add_excluded_fs_type, excluded_fs_type): New functions adding
2825 support for --exclude-type option. Derived from Kaveh R. Ghazi
2826 <ghazi@caip.rutgers.edu>.
2828 * ls.c (decode_switches, print_long_format): New option: --full-time.
2829 From K. Richard Pixley (rich@rtl.cygnus.com)
2831 Thu Mar 25 21:02:36 1993 David J. MacKenzie (djm@goldman.gnu.ai.mit.edu)
2833 * dirname.c [rindex]: Don't redefine.
2835 Tue Mar 23 23:13:33 1993 Jim Meyering (meyering@comco.com)
2837 * ls.c (gobble_file): Don't stat symlinks unless we need to.
2838 From Mike Rendell <michael@mercury.cs.mun.ca>.
2840 * dd.c (copy, copy_with_block, copy_with_block): Decrement
2841 pending_spaces only if it's > 0. The following command didn't
2843 perl -e 'print "a a\n";'| dd of=/dev/null ibs=1 cbs=3 conv=unblock
2844 With suggestions from Chris Weber <weber@bucknell.edu>,
2845 Marlys.A.Nelson@uwrf.edu, and Albert-Lunde@nwu.edu.
2847 Fri Mar 05 00:02:53 1993 Jim Meyering (meyering@comco.com)
2849 * chmod.c: Add long-named options.
2851 Mon Feb 15 23:34:55 1993 Jim Meyering (meyering@comco.com)
2853 * rm.c (remove_file): Don't ask about overriding a mode if the
2854 target is a symbolic link -- some systems (like SGI's Irix 4.0)
2855 zero the permissions fields of symbolic links.
2856 From Arne Henrik Juul (arnej@imf.unit.no).
2858 Fri Dec 11 16:46:50 1992 David J. MacKenzie (djm@kropotkin.gnu.ai.mit.edu)
2860 * rm.c (main): If -f is given, don't complain if no file args
2863 Tue Dec 8 21:09:16 1992 David J. MacKenzie (djm@kropotkin.gnu.ai.mit.edu)
2865 * posixtm.y: Include alloca.h if HAVE_ALLOCA_H, not if sparc.
2867 Mon Dec 7 20:09:59 1992 Jim Meyering (meyering@idefix.comco.com)
2869 * install.c (isnumber), chgrp.c (change_file_group): Define ISDIGIT
2870 and use it instead of isdigit.
2872 * dd.c: Define ISLOWER and ISUPPER independent of STDC_HEADERS.
2873 Define ISDIGIT and use it instead of isdigit.
2875 Wed Dec 2 12:28:10 1992 Jim Meyering (meyering@idefix.comco.com)
2877 * all files using getopt.h: Convert static declarations of
2878 struct option to use new macros from getopt.h: no_argument,
2879 required_argument, and optional_argument.
2881 Tue Nov 24 07:54:45 1992 David J. MacKenzie (djm@goldman.gnu.ai.mit.edu)
2883 * system.h: Use HAVE_FCNTL_H instead of USG.
2885 * xgetcwd.c: Use HAVE_GETCWD instead of USG.
2887 * backupfile.c, basename.c, dirname.c, idcache.c, makepath.c,
2888 mountlist.c, stripslash.c, userspec.c, xstrdup.c, system.h:
2889 Use HAVE_STRING_H instead of USG.
2891 * system.h: Use SYSDIR and NDIR instead of USG.
2892 Define direct as dirent, not vice-versa.
2893 * ls.c, rm.c, backupfile.c, savedir.c: Use `struct dirent',
2894 not `struct direct'.
2896 Thu Nov 12 23:10:56 1992 David J. MacKenzie (djm@goldman.gnu.ai.mit.edu)
2898 * system.h: If dirent is #defined, don't define direct as dirent;
2899 for Sinix. Derived from Heinfried Korn (korn@med-in.uni-sb.de).
2901 Mon Nov 9 14:13:57 1992 Jim Meyering (meyering@idefix.comco.com)
2903 * fsusage.c (adjust_blocks): Reverse Oct 31 change --
2904 the function is more readable than the macro.
2906 * All files in src: Make all functions and extern variables static.
2907 Make all longopts arrays const as well as static.
2908 Make a couple statically initialized aggregates `const.'
2910 Sat Oct 31 16:32:17 1992 Jim Meyering (meyering@idefix.comco.com)
2912 * fsusage.c (adjust_blocks): Convert to a macro. The static
2913 function wasn't always used.
2915 * makepath.c, cp.c, ls.c: Add parentheses to expressions
2916 like (c = *p++) as per suggestion from gcc -Wall.
2918 * dd.c (swab_buffer): Fix typo that incremented pointer instead
2919 of counter. Add braces around static struct initializers.
2921 Fri Oct 30 11:40:58 1992 David J. MacKenzie (djm@goldman.gnu.ai.mit.edu)
2923 * ln.c, cp.c (main): Make -s on systems without symlinks an
2924 error, not a warning.
2926 Thu Oct 29 14:57:21 1992 David J. MacKenzie (djm@kropotkin.gnu.ai.mit.edu)
2930 * cp.c (copy, re_protect), mv.c (copy_reg): Do utime and chown
2931 before chmod, so set[ug]id bits don't get nuked.
2934 Wed Oct 28 16:13:18 1992 David J. MacKenzie (djm@kropotkin.gnu.ai.mit.edu)
2936 * cp.c, mv.c, ln.c: Rename some variables to use consistent
2937 terminology: source and destination.
2939 * ln.c, mkdir.c, mkfifo.c, mknod.c: Don't strip trailing slashes.
2940 * install.c: Don't strip slashes from dest. dirs.
2942 Mon Aug 24 12:49:14 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
2944 * xgetcwd.c: Make path_max unsigned, not long. From Bruce Evans.
2946 Sun Aug 23 03:06:04 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
2948 * idcache.c: Use a union for uid_t and gid_t. From
2949 bde@runx.oz.au (Bruce Evans).
2951 * eaccess.c: Use NGROUPS_MAX if it's defined. 386BSD is like sun.
2953 Sat Aug 22 02:36:49 1992 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu)
2955 * makepath.c: Use uid_t and gid_t.
2957 * system.h, makepath.c: Use HAVE_ALLOCA_H, not sparc.
2959 * cp.c (make_path, re_protect): Allocate room for terminating NULs.
2961 Fri Aug 21 21:12:18 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
2963 * fsusage.c [STAT_STATVFS]: Use f_bsize if f_frsize is 0.
2964 From Paul M Reilly <pmr@rock.concert.net>.
2966 * xgetcwd.c [!errno]: Declare errno. From Karl Berry.
2968 * chown.c (main, change_file_owner, change_dir_owner): Use
2969 uid_t and gid_t. From Rob McMahon <cudcv@csv.warwick.ac.uk>
2970 and glaze@cs.mu.oz.au (Glaze).
2972 Thu Jul 23 14:29:17 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
2976 Sat Jul 18 20:12:56 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
2978 * idcache.c: Use uid_t and gid_t.
2979 (getuidbyname, getgidbyname): New functions, for cpio.
2981 * userspec.c: New file, from code in chown.c.
2984 Fri Jul 17 00:43:38 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
2986 * system.h: Protect from getopt prototype in stdlib.h.
2988 * ls.c [_AIX]: Include sys/ioctl.h.
2989 * fsusage.c: Include sys/vfs.h if AIX PS/2, but not if RS6000.
2990 From tranle@intellicorp.com (Minh Tran-Le).
2992 * mvdir.c: Declare getcwd. From Francois Pinard.
2994 * chown.c, chgrp.c, install.c [_POSIX_SOURCE]: Define endpwent
2995 and endgrent as empty.
2997 * makepath.c (make_path): Add cast to alloca call.
3000 * cp.c (copy, re_protect), mv.c (copy_reg): Notify root of
3001 EPERM errors from chown.
3002 * makepath.c, install.c [AFS]: Ignore EPERM from chown.
3004 * system.h (ST_NBLOCKS) [_AIX && _I386]: st_blocks is in 4K units.
3005 * fsusage.c (statfs) [_AIX && _I386]: Supply this function.
3006 From tranle@intellicorp.com (Minh Tran-Le).
3008 Thu Jul 16 23:08:39 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
3010 * df.c (print_header, show_dev): In inode format, print the
3011 total number of inodes as well.
3013 * fsusage.[ch], df.c (show_dev): Count internally using
3014 512-byte blocks, not 1024-byte, to avoid rounding errors.
3016 Mon Jul 6 20:03:54 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
3018 * rename.c: Use S_ISDIR instead of S_IFDIR.
3020 Fri Jul 3 14:36:34 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
3022 * fileblocks.c, system.h, cp.c, dd.c, mv.c, touch.c: Change
3023 FOO_MISSING to HAVE_FOO.
3025 Wed Jun 3 19:28:04 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3027 * xgetcwd.c (xgetcwd): Accept errno==EINVAL as nonfatal.
3029 Wed May 20 00:05:52 1992 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu)
3031 * system.h: If we include a header file specifically to get
3032 major et al., assume we have them.
3034 Mon May 11 20:04:10 1992 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu)
3036 * chgrp.c, chown.c: --show-changes -> --changes.
3038 Sat May 9 18:39:38 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3040 * system.h: Define DEV_BSIZE if not defined.
3042 Thu Apr 30 13:55:37 1992 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu)
3044 * du.c (count_entry): Remove the trailing "/" before printing.
3046 Wed Apr 29 11:34:38 1992 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu)
3048 * rename.c (rename): If removing `from' fails, remove `to' to
3049 clean up. From Matthew Farwell <dylan@ibmpcug.co.uk>.
3051 Thu Apr 23 21:14:16 1992 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu)
3053 * ls.c (gobble_file): Only read the link contents if -l or the
3054 file was named on the command line.
3056 Wed Apr 22 02:16:38 1992 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu)
3058 * fsusage.c (get_fs_usage) [STAT_STATFS4 and _SEQUENT_]: Has f_bavail.
3059 From Donn Cave <donn@carson.u.washington.edu>.
3061 * getversion.c (get_version): If given invalid arg, exit.
3063 * cp.c (copy): Fix mode with chmod if copying as a regular file.
3065 * system.h, dd.c: SIGTYPE -> RETSIGTYPE.
3067 Sat Apr 18 00:18:41 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3069 * fsusage.[ch] (get_fs_usage): Take another arg, the device name.
3070 * fsusage.c (get_fs_usage) [STAT_READ]: Fix number of inodes
3071 calculation. Use the device name. From Brian Matthews.
3072 * df.c (show_dev): Pass the device name.
3074 Fri Apr 17 11:25:28 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3076 * fsusage.c: Special-case AIX.
3078 * mountlist.c [MOUNTED_VMOUNT]: New code for AIX, from
3079 Garrett A. Wollman (wollman@uvm.edu).
3081 * ls.c (gobble_file): Use stat, not lstat, on symlinked-to
3082 file, for Unix compat. From ian@airs.com (Ian Lance Taylor).
3084 Mon Apr 6 14:16:06 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3086 * xgetcwd.c: Include stdio.h to get NULL.
3088 Thu Apr 2 14:41:18 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3090 * df.c: Call sync only once, instead of once per filesystem.
3092 Wed Apr 1 16:00:08 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3096 Tue Mar 31 13:39:06 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3098 * df.c (main): stat all arg pathnames before getting
3099 list of mounted filesystems.
3100 (show_entry, show_point): Take a struct stat * as another arg,
3101 to avoid repeatedly statting files.
3103 Mon Mar 30 12:21:28 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3105 * install.c (main): Allow symbolic modes for -m.
3106 (atoo): Function removed.
3108 * mkdir.c (main): Include invalid -m arg in error message.
3110 * fsusage.c (get_fs_usage) [STAT_STATFS4]: Go back to using
3111 512 instead of f_bsize. Empirically, it gives the right answer.
3113 * mvdir.c (main): Don't deref NULL pointer on last iteration
3116 * fsusage.c (adjust_blocks): New function.
3117 (get_fs_usage): Call it.
3119 * mvdir.c (main): Don't possibly try to use ".." entry of new dir
3122 * fsusage.c (get_fs_usage) [STAT_STATFS4]: Use f_bsize member
3125 Sat Mar 28 00:36:57 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3127 * dd.c (copy_simple, copy_with_block, copy_with_unblock,
3128 translate_buffer, swab_buffer): New functions, mostly made
3129 from code taken from copy. Incorporate some optimizations due
3130 to Stuart Kemp: For each type of conversion, only check
3131 whether to do it once per buffer read, instead of once per character.
3132 (copy): If conv=block and the input didn't end with a newline,
3133 pad the final block with spaces.
3135 Wed Mar 25 14:35:17 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3137 * system.h: Don't use BSIZE for calculating ST_BLKSIZE if it
3140 * mountlist.c [MOUNTED_FREAD], fsusage.c [STAT_READ]: New code
3141 for SVR2, from archive@ideahb.sublink.org (Lele Gaifax).
3143 Tue Mar 24 14:53:19 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3145 * mvdir.c: Use getcwd, not getwd.
3147 * system.h, xgetcwd.c: Redo how PATH_MAX is figured out, to
3150 * fsusage.c, mountlist.c: New files split from fsinfo.c.
3151 Revise conditionals to make the two files independent of each other.
3152 * fsusage.h, mountlist.h: New files split from fsinfo.h.
3155 Mon Mar 23 13:01:07 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3157 * fsinfo.c (read_filesystem_list): Take another arg, all_fs.
3158 [FS_MNTENT]: Ignore type "auto" (from amd) as well as "ignore"
3159 (from automounter), if not all_fs.
3160 * df.c (main): Pass the new arg.
3162 * fsinfo.h: Add function decls.
3164 * chown.c, chgrp.c, chmod.c: Remove -L option. Didn't handle
3165 changing symlinks correctly and wasn't very useful.
3167 Sat Mar 14 17:38:38 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3169 * dirname.c (dirname): Don't use strdup.
3171 Fri Mar 13 14:56:15 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
3173 * rm.c (remove_file, remove_dir, clear_directory): If -f was
3174 given, don't complain about ENOENT when removing.
3176 Mon Mar 9 00:09:48 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
3178 * install.c (main): Allow making multiple dirs with -d.
3179 (usage): Document it.
3180 * makepath.c (make_path): Clear umask while working and
3181 restore it when done. chmod dirs that should have
3182 set[ug]id or sticky bits set, if we're chowning them.
3183 Make chown failure nonfatal. Do chmod after chown, not before.
3185 * du.c (count_entry): Set exit_status on nonfatal error.
3188 Sun Mar 8 22:07:50 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
3190 * du.c (du_files): New function, from code in main.
3191 Use xgetcwd instead of getcwd or getwd.
3192 * system.h: Don't declare getcwd or getwd.
3194 * xgetcwd.c: New file.
3196 * ls.c (main): Exit with `exit_status' instead of 0.
3197 (print_dir, gobble_file, get_link_name): Set exit_status on error.
3199 * ls.c (print_long_format): Allow a slop factor for deciding
3200 what is in the future.
3202 * All programs: Change usage messages and documentation for
3203 long options to use -- instead of +.
3205 * df.c (main, usage): Add -v option for SysV compat.
3207 Tue Feb 4 12:45:09 1992 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3209 * fileblocks.c [!NINDIR]: Try to fake indirect block info for
3210 systems that don't define it.
3212 Thu Jan 16 01:04:16 1992 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3214 * df.c (print_header): Capitalize some header words for
3217 Sat Jan 4 01:19:25 1992 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3219 * posixtm.y: Capitalize token name.
3221 Tue Dec 24 01:05:44 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3223 * system.h, makepath.c, idcache.c, eaccess.c, backupfile.c,
3224 install.c, dd.c, chown.c, chgrp.c: Change POSIX ifdefs to
3227 Wed Dec 18 16:42:00 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3229 * system.h: To get major, minor and makedev, don't check for
3230 _POSIX_SOURCE and USG; use MAJOR_IN_MKDEV and MAJOR_IN_SYSMACROS.
3232 Mon Dec 16 18:16:42 1991 David J. MacKenzie (djm at wombat.gnu.ai.mit.edu)
3234 * dd.c (skip): Fix typos in arg name.
3235 (output_char): Fix off by one error in check.
3237 Sun Dec 8 19:55:06 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3239 * system.h: Only define major et al. if not already defined.
3241 Fri Dec 6 18:26:53 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3243 * dd.c (main) [POSIX]: Use sigaction instead of signal, which
3246 * df.c, du.c, ls.c: POSIX_ME_HARDER -> POSIXLY_CORRECT.
3248 Wed Dec 4 14:30:16 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3250 * dd.c: Cleanups, mostly from Stuart Kemp:
3251 (output_char): New macro, from code in copy.
3252 (write_output): New function, used by output_char, from code
3254 (skip): New function, from code in copy.
3255 (copy): Use output_char and skip.
3256 Simplify test for quitting before main loop.
3257 Zero buffer using bzero for speed.
3259 Sun Nov 17 19:39:04 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3261 * fsinfo.c (get_fs_usage) [FS_MNTENT]: Take blocksize into account.
3262 (read_filesystem_list) [FS_MNTENT]: Ignore filesystems of type
3263 "ignore" (automounter dummy entries).
3265 * install.c (change_attributes): Do chmod even if chown fails.
3267 Thu Oct 24 23:50:46 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3269 * chown.c (change_file_owner), chgrp.c (change_file_group):
3270 don't skip symlinks, since the chown system call works on them.
3272 Fri 18 Oct 1991 23:29:24 Jim Meyering (meyering at wombat)
3274 * configure: fixed test to detect sequent's strange interpretation
3275 of utime(file, NULL).
3277 Fri Oct 18 00:30:42 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3279 * eaccess.c: GID_T -> GETGROUPS_T, for clarity.
3281 Sat Oct 12 12:25:55 1991 David J. MacKenzie (djm at churchy.gnu.ai.mit.edu)
3283 * configure: Define uid_t and gid_t as int if they're not
3284 defined in sys/types.h. That's probably right for old Unixes
3285 and avoids trying to find the C preprocessor.
3287 * df.c: Don't declare sync, to avoid conflict with Minix (and
3288 maybe others) unistd.h.
3289 (show_point): Cast -1 to dev_t before comparing, in case dev_t
3290 is unsigned. From Rainer Orth.
3292 * chown.c [!POSIX]: Declare getgrgid.
3294 Fri Sep 13 14:55:41 1991 David J. MacKenzie (djm at churchy.gnu.ai.mit.edu)
3296 * eaccess.c [POSIX]: Always use sysconf to get NGROUPS_MAX.
3298 Thu Sep 5 23:40:39 1991 David J. MacKenzie (djm at apple-gunkies)
3300 * system.h: Instead of defining getwd in terms of getcwd with
3301 PATH_MAX as an arg (which might be -1 on POSIX), define getcwd
3303 * du.c (main): Call getcwd with path_max as an arg.
3305 * install.c (change_attributes): Do chown before chmod, so
3306 chown doesn't remove set[ug]id bits.
3308 Wed Aug 28 20:53:50 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3312 Mon Aug 26 15:44:16 1991 David J. MacKenzie (djm at pogo.gnu.ai.mit.edu)
3314 * du.c (main): If pathconf fails, use 1024 for PATH_MAX. This
3315 happens if "/" is NFS-mounted.
3317 Sun Aug 25 00:56:11 1991 David J. MacKenzie (djm at apple-gunkies)
3319 * df.c, fsinfo.c, fsinfo.h: New program.
3320 * configure: Check for various ways of getting info on mounted
3323 Thu Aug 22 10:53:23 1991 David J. MacKenzie (djm at apple-gunkies)
3325 * src/Makefile.in: Workaround #10006 for C compilers that are
3326 too dumb to allow -c and -o together. Copy the source files.
3327 * system.h: Moved from src to lib to avoid having to add yet
3328 more -I options to CFLAGS.
3330 * du.c, ls.c: If POSIX_ME_HARDER is set in environment, use
3331 512-byte blocks by default.
3333 Wed Aug 21 13:03:14 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3337 * du.c, ls.c: Make 1K blocks the default size, and -k a no-op.
3338 Down with dumb standards!
3340 * system.h, backupfile.c, savedir.c [VOID_CLOSEDIR]: Fake a
3341 return value for closedir, which returns void on some systems,
3343 * configure: Check sys/dir.h for 'void closedir'.
3345 Tue Aug 20 22:22:47 1991 Jim Meyering (meyering at nutrimat)
3347 * mvdir.c (main): Clean up loop to stat component
3348 directories -- as in makepath and pathchk.
3350 Tue Aug 20 22:10:47 1991 Jim Meyering (meyering at nutrimat)
3352 * dirname.c (dirname): Allocate exact amount of space
3355 Tue Aug 20 02:13:40 1991 David J. MacKenzie (djm at apple-gunkies)
3357 * savedir.c (savedir): Try to open directory before allocating
3358 buffer. From Jim Meyering.
3360 Mon Aug 19 01:14:13 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3362 * Many files: indent '#pragma alloca' so non-ANSI compilers
3365 * backupfile.c (max_backup_version): Check closedir return
3366 value (though it might not do any good).
3368 Tue Aug 6 20:50:56 1991 David J. MacKenzie (djm at wheat-chex)
3370 * configure, Makefile.in's: Support +srcdir option, using VPATH.
3371 Don't check for bison, just try it and if it fails use yacc.
3372 Create config.status. Fix up clean targets.
3374 * posixtm.y (posixtm): New function.
3376 Most of the following is from Paul Eggert:
3377 * savedir.c (savedir), ls.c (print_dir), rm.c
3378 (clear_directory): Check closedir return for errors.
3379 * dd.c (main): Check for stdin or stdout being closed.
3380 * dd.c (quit), install.c (copy_file): Check for close errors.
3381 * mv.c (copy): Was missing a close.
3383 Sat Aug 3 02:05:51 1991 David J. MacKenzie (djm at apple-gunkies)
3385 * ln.c: Declare link() unconditionally (SCO UNIX needs it).
3387 Tue Jul 30 00:23:19 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3389 * configure: NEED_TZSET has become FTIME_MISSING.
3391 * configure: Define uid_t and gid_t if sys/types.h doesn't.
3393 Sat Jul 27 00:55:16 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3395 * configure: Only compile fileblocks.c if st_blocks is missing.
3397 * cp.c (copy): Make directories with initial mode of source
3398 permissions minus umask, plus 0700. For POSIX and John Gilmore.
3400 * system.h: Include errno.h and, if STDC_HEADERS, stdlib.h.
3401 * All programs: Remove includes of those files.
3403 * ftruncate.c: New file.
3404 * configure: Use it if needed.
3406 Wed Jul 24 02:09:45 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3408 * ls.c (get_name_link), cp.c (copy) [_AIX]: Allocate extra
3409 space for the buffer, since st_size is wrong.
3411 * system.h: Don't declare alloca for AIX.
3412 * makepath.c, posixtm.y, cp.c, du.c, ln.c, ls.c, mv.c:
3413 Declare alloca first (AIX needs it).
3415 * cp.c, dd.c, touch.c: Use SEEK_ instead of L_.
3416 * system.h: Define SEEK_ if not defined.
3418 Tue Jul 23 15:02:20 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3420 * eaccess.c: GID_T is int if ultrix as well as if sun.
3422 Mon Jul 22 11:39:31 1991 David J. MacKenzie (djm at bleen)
3424 * install.c: Use uid_t and gid_t.
3426 * eaccess.c: Support POSIX method of getting multiple groups.
3428 Sat Jul 20 14:24:40 1991 David J. MacKenzie (djm at bleen)
3430 * Move cat cmp cut expand head paste split tac tail unexpand
3433 * system.h [MKFIFO_MISSING]: Define mkfifo macro.
3434 * cp.c, mkfifo.c: Don't define it.
3436 * mknod.c, gmknod.1: New files.
3438 Fri Jul 19 13:43:01 1991 David J. MacKenzie (djm at apple-gunkies)
3440 * version.c: New file.
3441 * All C programs: Link with it, to get version number in the
3442 binary where at least `strings -' and GNU grep can find it.
3444 Mon Jul 15 13:46:53 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3446 * configure: Also look in sys/signal.h for signal decl.
3448 Sun Jul 14 22:43:57 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3450 * Rename touchtm.y back to posixtm.y, as the date command will
3453 Mon Jul 8 22:56:36 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
3455 * Replace lib/Makefile with lib/Makefile.in.
3456 * configure: For some library functions that might be missing,
3457 conditionally add the .o files to lib/Makefile instead of
3458 defining func_MISSING.
3459 * lib/mkdir.c: Renamed from lib/mkrmdir.c.
3461 Sat Jul 6 02:19:09 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3463 * xstrdup.c [STDC_HEADERS]: Include string.h.
3465 * stripslash.h: Include string header file.
3467 * configure: Add to DEFS if Minix.
3469 * system.h [_POSIX_SOURCE]: Make ST_BLKSIZE 1024 instead of
3470 512, for better performance.
3472 * system.h, configure: If sys/mkdev.h exists, use it instead
3475 * configure: echo messages to stdout, not stderr.
3476 Use test programs to see if alloca needs -lPW and if chars are
3479 Tue Jul 2 03:16:32 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3481 * chown.c, chgrp.c [!POSIX]: Declare pwd.h and grp.h functions.
3483 Sat Jun 29 16:46:12 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3485 * cp.h: Don't declare `open', to avoid conflict with varargs
3488 * chown.c, chgrp.c: Include sys/types.h before, not after,
3489 pwd.h and grp.h, to get uid_t and gid_t if necessary.
3491 Fri Jun 28 01:12:45 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3493 * ls.c: Use time_t instead of long, where appropriate.
3495 Thu Jun 27 16:31:45 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3497 * touchtm.y: Renamed from posixtime.y for SysV systems with Bison.
3499 * configure: No longer need to pass bison the -y option.
3500 Now lib/Makefile should allow a parallel make with bison.
3502 * cp.c (copy_reg), cat.c (main),
3503 touch.c (touch, utime_now), mv.c (copy): Check close return
3504 value for delayed error report due to NFS.
3506 Thu Jun 20 01:33:06 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3508 * configure: Include $DEFS when compiling test programs.
3510 * configure: Use test programs instead of grep to check for
3511 USG, POSIX, and ANSI C headers, in case symbols are defined in
3512 header files included by the standard ones. Check for BSD
3513 memory functions (bcopy et al.) as well as string functions.
3514 Add notice to top of generated Makefile saying that it's
3515 automatically generated.
3517 Thu Jun 13 00:50:18 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3521 * configure: If rename is missing, define MVDIR.
3522 Use , instead of / as sed substitution separator so variables'
3523 values can contain slashes.
3525 * du.c (main): Use alloca to allocate `wd' instead of making
3526 it an auto array, since PATH_MAX might be a call to pathconf.
3528 Wed Jun 12 19:56:22 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3530 * cp-aux.c (usage), install.c (usage), ln.c (usage), mv.c
3531 (usage): Combine the option lists for the multiple usage forms.
3533 Tue Jun 11 00:12:15 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3535 * idcache.c: pwd.h and grp.h might need sys/types.h.
3537 * configure: Create Makefile from Makefile.in instead of
3538 makefile from makefile.skel, to more closely follow the new
3539 GNU coding standards.
3541 * ls.c (file_interesting): Use POSIX.2 fnmatch instead of glob_match.
3543 * configure: If $RANDOM is implemented (ksh, bash or zsh), use
3544 the `type' builtin to determine if gcc, bison, ranlib are
3545 available. ksh writes "fubar: command not found" to stderr,
3546 foiling the test -n "`command 2>&1`" method.
3547 Remove makefile on signal.
3549 * system.h: Include sys/param.h if not _POSIX_SOURCE instead
3550 of if not POSIX, to get DEV_BSIZE.
3552 * makepath.c, posixtime.y, system.h: Add _AIX case to alloca decl.
3554 Sun Jun 9 01:26:27 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3558 * basename.c, dirname.c: Use str[r]chr and string.h if
3559 STDC_HEADERS as well as if USG.
3561 * touch.c (utime_now): Created from code in touch ().
3563 Sat Jun 8 11:02:32 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3565 * backupfile.c: Use POSIX instead of _POSIX_SOURCE to
3566 determine whether to check whether readdir returned a valid
3569 Fri Jun 7 21:44:51 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3571 * fileblocks.c (st_blocks), system.h (ST_NBLOCKS): Always
3572 return number of 512 byte blocks, not DEV_BSIZE blocks.
3573 (convert_blocks): Always expect 512-byte blocks.
3575 Thu Jun 6 12:54:26 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3577 * system.h [POSIX]: If PATH_MAX not defined, use pathconf.
3578 Remove NAME_MAX stuff; not used.
3580 * system.h: Make #include <strings.h> depend on not (USG or
3581 STDC_HEADERS) instead of not (USG or POSIX).
3583 * configure: New shell script to aid compilation.
3585 Mon Jun 3 16:42:41 1991 David J. MacKenzie (djm at wheat-chex)
3587 * cp.h: Remove some decls of functions returning int that
3588 conflict with prototypes on HPUX.
3590 * cp.c (make_path, re_protect): New functions from Jim
3591 Meyering. Changes to other functions as well, to add +path,
3592 +link, +symbolic-link options.
3594 Sun Jun 2 15:45:24 1991 David J. MacKenzie (djm at wheat-chex)
3596 * most files: use GPL version 2.
3598 Sat Jun 1 20:17:35 1991 David J. MacKenzie (djm at wheat-chex)
3600 * rm.c, backupfile.c: If _POSIX_SOURCE, don't refer to d_ino.
3602 Sun May 19 18:42:09 1991 David J. MacKenzie (djm at churchy.gnu.ai.mit.edu)
3604 * touch.c: Renamed getdate to get_date to avoid SVR4 conflict.
3606 Thu May 16 23:12:01 1991 David J. MacKenzie (djm at albert.gnu.ai.mit.edu)
3608 * cp.c, mv.c, ln.c: Use alloca and strcpy directly instead of
3609 in a macro for generating backup filename. The latter
3610 sometimes coredumps for some reason.
3612 Sat Apr 20 00:03:09 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
3614 * dd.c: Add conv=notrunc and truncate output file by default,
3617 * rm.c (rm): Refuse to remove path/. and path/.., as well as `.'
3618 and `..', for POSIX.
3620 * chown.c: Allow `:' as well as `.' to separate group from
3621 user, for POSIX.2 draft 11.
3623 * Many programs: Don't bother to get the long-option index
3624 value from getopt_long, since we ignore it.
3626 * Many programs: Separate long-option option names from their
3627 args with `=' instead of ` ' in usage messages.
3629 * touch.c (touch): Don't refuse to touch non-regular files.
3631 Wed Apr 10 12:19:30 1991 David J. MacKenzie (djm at churchy.gnu.ai.mit.edu)
3633 * cp.c, cp-aux.c: Add -a +archive option, an easier to
3634 remember synonym for -dpR.
3636 Fri Mar 15 16:16:54 1991 David J. MacKenzie (djm at geech.ai.mit.edu)
3638 * mv.c (copy): Try to preserve file ownership in
3639 cross-filesystem copies.
3641 * backupfile.c, rm.c: Go back to using d_ino instead of
3642 d_fileno. POSIX.1 specifies neither, and d_ino is more
3643 common, perhaps ubiquitous.
3645 * chown.c (describe_change): Don't print the group name if it
3646 didn't change (thus is a null pointer).
3647 (main): Initialize group name to null.
3649 Mon Feb 25 11:44:14 1991 David J. MacKenzie (djm at geech.ai.mit.edu)
3651 * dd.c (copy): Only seek if not seeking to start of file, so
3652 "dd >> foo" works with Minix shell that doesn't open foo in
3655 Thu Feb 21 11:59:39 1991 David J. MacKenzie (djm at geech.ai.mit.edu)
3657 * ln.c (do_link), mv.c (do_move), cp.c (copy): Store backup
3658 filename using alloca so we don't have to free it every place
3659 we return. From Jim Meyering.
3661 Thu Feb 14 00:41:43 1991 David J. MacKenzie (djm at geech.ai.mit.edu)
3663 * cp.c (copy_reg): Only make holes when copying a regular file
3664 onto a regular file.
3666 Fri Jan 18 06:31:59 1991 David J. MacKenzie (djm at albert.ai.mit.edu)
3668 * ls.c: Move defn. of S_IEXEC to after header files are included.
3669 * cp.h: Always declare stat and lstat.
3671 Thu Jan 10 02:16:55 1991 David J. MacKenzie (djm at albert.ai.mit.edu)
3673 * cp.h: Only declare some system calls if not POSIX.
3675 * eaccess.c, idcache.c, dd.c, install.c, ln.c, system.h:
3676 Change _POSIX_SOURCE to POSIX.
3678 * fileblocks.c, system.h: Change STBLOCKS_MISSING to
3679 ST_BLOCKS_MISSING (was already that way in cp.c).
3681 Fri Dec 28 18:40:34 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
3683 * chmod.c, chown.c, chgrp.c, du.c: Rename -d option to -L for
3684 similarity to ls and cpio.
3686 Thu Dec 27 00:06:45 1990 David J. MacKenzie (djm at egypt)
3688 * rm.c (clear_directory): Keep looking for files to remove
3689 until we don't find any, so that any .nfs* files created by
3690 removing other files are also removed, eventually.
3692 * install.c (main): Strip trailing slashes on all args.
3694 * mv.c (copy): Open target file with mode 0600, not 0777.
3695 [FCHMOD_MISSING]: Perform chmod after closing files, not
3698 * cp.c (do_copy): Don't append `..' to target dir name.
3700 * du.c (main, count_entry, usage): Add -D +dereference-args
3701 and -d +dereference options.
3703 Wed Dec 26 03:39:18 1990 David J. MacKenzie (djm at egypt)
3705 * dirname.c, xstrdup.c: Get decls from standard files, if available.
3707 Thu Dec 20 23:10:22 1990 David J. MacKenzie (djm at egypt)
3709 * makepath.c: New file, adapted from code in mkdir.c,
3710 install.c, and cpio util.c by Jim Meyering.
3711 * mkdir.c, install.c: Use make_path.
3713 Sun Dec 16 00:56:54 1990 David J. MacKenzie (djm at egypt)
3715 * chown.c, chgrp.c: New files.
3717 Sat Dec 15 20:42:32 1990 David J. MacKenzie (djm at egypt)
3719 * cp.h: Declare POSIX functions always -- _POSIX_SOURCE
3720 doesn't imply STDC declarations.
3722 * system.h: Define S_ISTYPE macros not defined by sys/stat.h.
3724 * Many files: Use S_ISTYPE macros.
3726 * backupfile.c, rm.c: Use name d_fileno for member of struct
3727 dirent instead of d_ino, for POSIX.
3729 Wed Dec 12 23:38:22 1990 David J. MacKenzie (djm at egypt)
3731 * ls.c: Declare time() as time_t instead of long, to prevent
3732 conflict with standard header files.
3734 * cp.c (copy_reg): Instead of using NO_SPARSE_FILES, use
3735 st_blocks to determine whether the original file contains any
3736 sparse blocks, and only create them if so. On systems without
3737 st_blocks, to be safe, never create sparse blocks.
3739 Thu Nov 8 12:16:27 1990 David J. MacKenzie (djm at apple-gunkies)
3741 * idcache.c: If _POSIX_SOURCE not defined, declare getpw and
3742 getgr functions (not an optimal solution, but I hate to add
3743 yet another configuration macro).
3745 * Makefile: Define AR and RANLIB and pass to child makes.
3746 lib/Makefile: Use them.
3748 Tue Nov 6 23:18:06 1990 David J. MacKenzie (djm at mole.ai.mit.edu)
3750 * idcache.c: New file from code in ls.c.
3752 Fri Nov 2 14:34:40 1990 David J. MacKenzie (djm at apple-gunkies)
3754 * Move files into src and lib directories, split out library
3755 functions into separate files in lib, and rewrite Makefiles.
3757 Mon Oct 29 01:20:46 1990 David J. MacKenzie (djm at apple-gunkies)
3759 * mv.c (do_move), rm.c (remove_file, remove_dir): If stdin is
3760 a tty and file is unwritable, prompt before overwriting.
3762 * cp.c (copy_reg): Only make sparse files if
3763 NO_SPARSE_FILES is undefined, to accommodate dumb kernels.
3765 * du.c (count_entry): Remove misinformed HPUX kludge that
3766 doesn't really fix the problem.
3768 * rm.c (rm): Check for textual equality with '.' and '..', not
3771 Sat Oct 27 23:38:55 1990 David J. MacKenzie (djm at apple-gunkies)
3773 * rm.c (check_stack): If not interactive, don't prompt when
3774 corruption is found, just quit.
3775 (remove_file, remove_dir): Delete leading spaces in verbose
3778 * cp.c (copy), rm.c (remove_dir): If we think the dest. file
3779 is unwritable, warn the user in the interactive prompt instead
3780 of automatically skipping the file. Because of race
3781 conditions and other protection mechanisms we might not know
3784 Mon Oct 8 18:51:25 1990 David J. MacKenzie (djm at apple-gunkies)
3786 * du.c (main, usage, count_entry): Add +separate-dirs -S option.
3788 * dd.c (main): Don't trap SIGINT if it was being ignored.
3790 Tue Sep 25 16:40:43 1990 David J. MacKenzie (djm at apple-gunkies)
3792 * install.c (copy_file, install_file_in_file): Change
3793 attributes after stripping, to guard against strip programs
3794 that clear setuid bits, etc.
3796 Fri Sep 21 22:31:43 1990 David J. MacKenzie (djm at apple-gunkies)
3798 * cp.c (copy_reg): Put back ftruncate way of making holes
3799 because the other way can't make a hole at the end of a file.
3801 Tue Sep 18 03:47:45 1990 David J. MacKenzie (djm at apple-gunkies)
3803 * install.c (change_attributes): Don't ignore EPERM for chown,
3804 since the default uid is now the current uid.
3806 Sun Sep 9 16:54:19 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
3810 * cp.h: Declare free returning void, not int, so it
3811 doesn't bomb on Xenix.
3813 Fri Sep 7 04:35:35 1990 David J. MacKenzie (djm at apple-gunkies)
3815 * system.h, backupfile.c, savedir.c [DIRENT]: if direct is
3816 defined (as on Ultrix 4.0), undefine it before redefining it.
3818 Tue Sep 4 03:10:24 1990 David J. MacKenzie (djm at apple-gunkies)
3820 * dd.c (apply_translations, translate_charset): Code moved
3821 from parse_conversion.
3822 (apply_translations): Convert from EBCDIC to ASCII before
3825 * mvdir.c (fullpath): Return a value.
3827 * dd.c (copy): Increment count of truncated records once
3828 per record, not once per character that overflows.
3830 Mon Sep 3 22:23:57 1990 David J. MacKenzie (djm at coke)
3832 * dd.c (swab_array): Function removed.
3833 (copy): Rewrite conv=swab to work when odd number of bytes
3835 (scanargs): Die if invalid numeric value is given.
3836 (parse_integer): Return -1 if invalid arg.
3837 (bit_count): Faster version from Jim Meyering.
3839 * cp.c, mkfifo.c [MKFIFO_MISSING]: Define mkfifo.
3841 Thu Aug 30 00:17:02 1990 David J. MacKenzie (djm at apple-gunkies)
3843 * mvdir.c (main): Make sure `from' is not a parent of any part
3844 of `to', not just the explicitly given part.
3845 (fullpath): New function.
3847 Wed Aug 29 19:50:05 1990 David J. MacKenzie (djm at apple-gunkies)
3849 * mvdir.c: Renamed from mv_dir.c, for consistency with mkdir and rmdir.
3850 * dirlib.c: Caller changed.
3852 Tue Aug 28 18:05:24 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
3854 * touch.c (main): Don't interpret first non-option arg as a
3855 time if `--' is given (POSIX-required kludge).
3857 * touch.c: Add long-named options.
3859 * Many files: Include <getopt.h> instead of "getopt.h" since
3860 getopt.h will be in the GNU /usr/include.
3862 * install.c: Declare some functions.
3864 * touch.c, getdate.y, posixtime.y, mktime.c: New files, from bin-src.
3866 * posixtime.y: Move year from before time to after it (but
3867 before the seconds), for 1003.2 draft 10.
3869 Mon Aug 27 03:25:36 1990 David J. MacKenzie (djm at apple-gunkies)
3871 * touch.c (main): If no time is given and first arg is a valid
3872 timespec, use it as one.
3874 Sat Aug 25 01:36:16 1990 David J. MacKenzie (djm at apple-gunkies)
3876 * posixtime.y: Enclose YYABORT in braces in case some yacc's
3879 * touch.c: Remove -i option. Change some error messages.
3880 (readname): Function removed.
3882 Thu Aug 23 12:56:33 1990 David J. MacKenzie (djm at apple-gunkies)
3884 * cp.c (copy): Only restore dir mode if it was changed.
3886 Wed Aug 22 01:45:54 1990 David J. MacKenzie (djm at apple-gunkies)
3888 * cp.c (copy): Don't only backup files when -f is given.
3890 * ls.c: Add -X +sort=extension option. Rename
3891 +kilobyte-file-size to +kilobytes.
3893 * du.c: Rename -f option to -x, for POSIX. Rename
3894 +kilobyte-file-size to +kilobytes. Add -b, +bytes option for
3897 * cp-aux.c (usage): Change -o to -x.
3898 (stpcpy): Renamed from str_cpy. Change callers in cp.c.
3900 * cp.c: New variable, `flag_copy_as_regular'.
3901 (main): For -R, unset `flag_copy_as_regular'.
3902 Rename -o to -x for consistency with du.
3903 (copy): Only unlink destination files when -f is given.
3904 Only prompt when -i given and copying as a regular file.
3905 Move check for previous link after other checks, reducing
3907 Create directories with mode 0700 initially, for POSIX.
3909 Mon Aug 20 03:29:08 1990 David J. MacKenzie (djm at apple-gunkies)
3911 * dd.c (copy): Swap input bytes instead of output bytes.
3912 (swab_array): New function.
3914 * dd.c (copy): If sync and noerror, zero the buffer before the
3915 read instead of after so that any data read before an error
3916 occurred are preserved.
3917 On read error, print stats and seek past the bad block if noerror.
3918 noerror doesn't affect write errors, for POSIX.
3919 (scanargs): Use two buffers if no buffer sizes given.
3920 Do not block or unblock if cbs not given.
3921 (print_stats): New function.
3924 Mon Aug 13 23:30:03 1990 David J. MacKenzie (djm at apple-gunkies)
3926 * cp.c (copy): If dest. exists and is unwritable, skip the file.
3928 * rm.c, mv.c, cp.c, ln.c (main): Respect the last -f or -i given,
3931 * rm.c (remove_file): Only prompt if -i is given.
3932 (main, usage): Remove -o +override-mode option, obsolete if
3933 POSIX accepts our objection about prompting.
3935 * mv.c (do_move): Only prompt if -i is given.
3937 * ln.c (do_link): If dest. file exists and -i and -f not
3938 given, skip the file.
3940 Tue Aug 7 12:51:18 1990 David J. MacKenzie (djm at apple-gunkies)
3942 * dd.c (main): If seek= given, don't truncate output file.
3943 (copy): Use `read' to skip output blocks if not regular file.
3944 Sync with NUL instead of SPC.
3946 Mon Aug 6 14:43:30 1990 David J. MacKenzie (djm at pogo.ai.mit.edu)
3948 * rm.c: Rename `ignore_errors' to `ignore_missing_files', and
3949 have it only suppress messages about nonexisting files.
3950 (main): Get dev and ino of `.' and `..'.
3951 (rm): If file is the same as `.' or `..', return with error.
3952 (remove_file): Remove the file rather than skipping it if
3953 unwritable, no -i, and stdin not tty.
3954 (remove_dir): Return an error if directory is nonwritable,
3955 rather than nonreadable or nonsearchable, for POSIX.2 draft 10.
3957 * chmod.c (main): Use fixed error checking to make sure that
3958 options aren't mixed together in the same args as mode specifiers.
3960 Sun Aug 5 11:51:12 1990 David J. MacKenzie (djm at pogo.ai.mit.edu)
3962 * chmod.c (main): Use umask for '-' op.
3964 Sat Aug 4 10:11:30 1990 David J. MacKenzie (djm at pogo.ai.mit.edu)
3966 * mkfifo.c: Remove -p +path option, no longer specified by POSIX.
3968 Fri Aug 3 13:38:28 1990 David J. MacKenzie (djm at pogo.ai.mit.edu)
3970 * mkdir.c, mkfifo.c, create.c (main): Don't tell mode_compile to
3971 respect the umask for certain operations, since the umask is 0 anyway.
3973 * install.c (get_ids): Use getuid and getgid to get defaults,
3976 Fri Jul 27 14:32:40 1990 David J. MacKenzie (djm at apple-gunkies)
3978 * backupfile.c (dirname): Always replace frontmost slash with a null.
3980 Thu Jul 26 00:20:35 1990 David J. MacKenzie (djm at apple-gunkies)
3982 * cp.h: Declare umask as unsigned short.
3984 * eaccess.c: Make uid and gid unsigned short, and group array unsigned.
3986 Wed Jul 25 18:38:57 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
3988 * rm.c (remove_file, remove_dir): Print verbose message right
3989 before actually trying to remove the file, after the prompting.
3991 * ls.c (getuser, getgroup): Make uid and gid unsigned short, not int.
3993 Tue Jul 24 03:39:42 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
3995 * cp.c (copy), ln.c (do_link), mv.c (do_move): For +verbose,
3996 print the file names just before actually attempting the
3997 copy/link/move, to produce a list of the files that they
3998 actually try to copy/link/move, omitting skipped files.
3999 Remove leading spaces from +verbose output.
4001 Mon Jul 23 16:57:44 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4003 * cp.c (copy): Make +update operate silently, like +one-file-system.
4005 * ln.c: Add -F as synonym for -d, for SunOS compatibility.
4007 Sun Jul 15 23:23:28 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4009 * cp.c (copy): Go back to using xstat on dest.
4011 Wed Jul 11 12:10:33 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4013 * cp.c (copy): Make directories with desired mode plus u+wx so
4014 if the copy is interrupted, the dir is closer to the desired mode.
4015 Don't backup directories.
4017 Sun Jul 8 00:39:31 1990 David J. MacKenzie (djm at apple-gunkies)
4019 * rm.c (main, usage): Add new option -d, +directory.
4020 (rm): If -d given, use remove_file instead of remove_dir for
4022 (remove_file): If directory, print "remove directory `foo'?"
4023 for interactive instead of "remove `foo'?".
4025 * ln.c (main): If -s given, print warning message if symlinks
4027 * mkfifo.c (main): If fifo's are not available, print message
4030 Fri Jul 6 02:02:49 1990 David J. MacKenzie (djm at apple-gunkies)
4032 * install.c (main): Use the current user and group ID for the
4033 default owner and group.
4035 * mv.c (main): New option -u, +update.
4036 (do_move): Don't move nondirectories if -u and there is an existing
4037 destination that has the same or newer mtime.
4038 (usage): Document -u, +update.
4040 * cp.c (main): New option -u, +update.
4041 (copy): Don't copy nondirectories if -u and there is an existing
4042 destination that has the same or newer mtime.
4043 * cp-aux.c (usage): Document -u ,+update.
4045 Thu Jul 5 10:04:12 1990 David J. MacKenzie (djm at apple-gunkies)
4047 * ln.c (do_link): Don't check whether OLD exists before trying
4050 Tue Jul 3 01:51:55 1990 David J. MacKenzie (djm at apple-gunkies)
4052 * ls.c: Allow "+time=atime" and "+time=ctime" for C hackers.
4054 * chmod.c (main): Don't check whether multiple mode arguments
4055 are given, because optind has a different value depending on
4056 whether or not the option is the last character in the
4059 Sat Jun 30 12:32:51 1990 David J. MacKenzie (djm at apple-gunkies)
4061 * cp.c (copy): Use lstat on dest. file, not *xstat.
4063 Mon Jun 25 18:07:20 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4065 * ls.c (print_long_format): Truncate user and group names to 8
4066 chars to preserve column alignment.
4067 (length_of_file_name_and_frills): Don't assume type indicator
4068 will be printed for unknown file types that some os's have.
4070 * install.c: Declare getgrnam for systems where grp.h doesn't.
4072 Sat Jun 23 00:06:35 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4076 * du.c (count_entry) [HPUX_NFS_BUG]: If the size of the file
4077 according to the number of blocks reported is twice or more than
4078 the size of the file according to the number of bytes
4079 reported, halve the number of blocks.
4081 Fri Jun 22 00:38:20 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4083 * cp.c (copy_dir): Initialize 'ret' to 0.
4085 * cp.c (main), ln.c (main), mv.c (main), rm.c (main):
4086 Make -i override -f and -o, to be conservative about
4087 removing peoples' files.
4089 * mkdir.c (make_path), mkfifo.c (make_path): Don't try to stat
4092 * rm.c, rmdir.c, mkdir.c, mkfifo.c: Move code to remove
4093 slashes at the end of an arg from main to
4094 strip_trailing_slashes.
4096 * install.c (strip): Print error message if the `strip'
4097 program can't be run.
4099 * system.h (convert_blocks): Macro moved from du.c and ls.c.
4100 Take a second parameter indicating whether to convert to
4101 kilobytes or 512 byte blocks.
4102 * ls.c, du.c: Pass second parameter to convert_blocks.
4104 Thu Jun 21 01:19:28 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4106 * ls.c (print_long_format): Use mode_string instead of filemodestring.
4108 * ls.c (print_long_format): Compare times as longs, not ints.
4109 (longdiff): Macro to compare two longs efficiently if sizeof
4110 int == sizeof long and less efficiently but correctly if they
4111 are different sizes.
4112 (compare_ctime, etc.): Use longdiff.
4114 * ls.c (decode_switches): Make -k not imply -s, to allow the
4115 summary directory size printed by -l to be in 1k blocks
4116 without having the size of each file printed as well.
4117 (convert_blocks): Provide for systems with a blocksize that is
4118 other than 512 or 1024 bytes.
4120 * du.c (main): Exit with status 0 normally.
4121 (convert_blocks): Provide for systems with a blocksize that is
4122 other than 512 or 1024 bytes.
4124 Wed Jun 20 01:46:09 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4126 * ln.c (do_link): Take out code to give an error if source and
4127 dest are the same file. The dubious usefulness of the special
4128 case to prevent 'ln x x' from removing 'x' (ln -i can be used
4129 instead) is not worth preventing 'ln x y' from failing the
4130 second time in a row, and appears to contradict POSIX anyway.
4132 Mon Jun 18 02:48:17 1990 David J. MacKenzie (djm at apple-gunkies)
4134 * ls.c (print_file_name_and_frills):
4135 (length_of_file_name_and_frills, print_long_format):
4136 Allow 6 digits for i-number, not 5.
4138 Sun Jun 17 00:09:23 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4140 * install.c (install_dir): Don't check whether "" or the root
4141 directory exists (the former fails on some systems).
4143 * system.h: Make inclusion of sys/file.h conditional on USG
4144 and _POSIX_SOURCE, not DIRENT.
4146 * chmod.c (change_dir_mode): Use xrealloc instead of free and
4147 xmalloc in case malloc already left extra room.
4148 (xrealloc): New function.
4150 * rm.c (clear_directory): Prevent buffer overruns.
4151 More efficient string handling. Don't skip rest of directory
4152 if continuing after finding circular inode.
4153 (xrealloc): New function.
4155 Sat Jun 16 01:45:42 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4157 * argmatch.c (invalid_arg): Change order in which the items
4160 * ls.c: Add +tabsize (-T) option.
4162 Fri Jun 15 23:40:55 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4164 * dd.c (scanargs): For ibs and obs, set C_HARDWAY.
4165 (copy): Use different buffers only if C_HARDWAY, not if
4166 blocksizes are the same, to ensure constant output block sizes.
4168 Wed Jun 13 23:56:20 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4170 * savedir.c: New file from code in chmod.c, modified to
4171 prevent buffer overruns.
4172 * chmod.c (change_dir_mode), cp.c (copy_dir), du.c
4173 (count_entry): Use savedir.
4175 Thu Jun 7 03:52:02 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4177 * system.h (ST_BLKSIZE) [!STBLOCKS_MISSING]: If st_blksize is
4178 0 (as on pipe reads on some systems), use BSIZE instead.
4179 Define BSIZE as DEV_BSIZE if necessary.
4181 * Makefile, system.h, fileblocks.c: Use STBLOCKS_MISSING to
4182 control whether st_blksize and st_blocks are used.
4183 * Makefile, system.h, backupfile.c: Use DIRENT to control
4184 whether <dirent.h> is used.
4186 Thu May 31 00:55:36 1990 David J. MacKenzie (djm at apple-gunkies)
4188 * fileblocks.c: New file.
4189 * du.c (blocks_to_kb): Replace with convert_blocks macro.
4190 (main): Recognize new -k option.
4191 (usage): Document it.
4192 * ls.c (nblocks): Replace with convert_blocks macro.
4193 * system.h (ST_BLKSIZE) [USG]: Use BSIZE from sys/param.h instead of
4194 having the user define BLKSIZE.
4195 (ST_NBLOCKS) [USG]: Use st_blocks from fileblocks.c.
4197 Wed May 23 00:40:39 1990 David J. MacKenzie (djm at apple-gunkies)
4199 * argmatch.c: New file, taken from ls.c.
4200 * getversion.c (get_version): Use argmatch, to allow
4201 abbreviations. Default backup type is existing_numbered.
4202 * mv.c (main), ln.c (main), cp.c (main): Only make backups if
4203 -b (+backup) is given. If envar SIMPLE_BACKUP_SUFFIX is set,
4204 use it as a default instead of `~'.
4205 * mv.c (usage), ln.c (usage), cp-aux.c (usage): Update messages.
4207 Tue May 22 00:56:51 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4209 * install.c: New file (from ../bin-src).
4211 * dd.c (copy): Don't count completely failed writes as partial
4212 writes. Make buffers unsigned. If blocking or unblocking,
4213 pad final partial buffer if necessary.
4215 * getversion.c: New file.
4216 * mv.c (main), cp.c (main), ln.c (main): Control backup types
4217 with getenv ("VERSION_CONTROL") and +version-control or -V.
4219 * cp.c (yesno), mv.c (yesno), ln.c (yesno): Stop reading if
4220 EOF reached as well as at newline.
4222 * backupfile.[ch]: Rename var `version_control' to `backup_type'.
4224 Sat May 19 23:38:46 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4226 * touch.c: Change some error messages. Include "getopt.h".
4228 Sat May 19 00:16:50 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4230 * mv.c (main), ln.c (main), cp.c (main): Revise
4231 backup-creation options.
4232 * mv.c (usage), ln.c (usage), cp-aux.c (usage): Revise messages.
4234 * chmod.c (describe_change): Use mode_string instead of
4237 * cp.c (main): Recognize new options for making backups.
4238 * cp.c (copy): Make backups if requested. Fix typo.
4239 * cp-aux.c (usage): Update message.
4241 * mv.c, cp.c: Remove code to conditionally use utimes instead
4242 of utime, since the extra resolution of utimes was not being
4243 used, the emulation overhead is probably insignificant,
4244 and utime is a standard function.
4246 * cp-hash.c: Fix up comments.
4248 Fri May 18 23:06:23 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4250 * mv.c (do_move): Only make backup if dest file exists.
4251 Don't continue moving file if dest can't be backed up.
4252 * ln.c (do_link): Don't try to unlink dest if it was backed up.
4253 Don't continue moving file if dest can't be backed up.
4255 * system.h: Make SIGTYPE default to void if not defined.
4257 * modechange.[ch]: Rename struct and external functions to start
4259 * modechange.c (oatoi): Make static.
4260 (mode_compile): Take an additional arg indicating which
4261 symbolic operators should be affected by the umask.
4262 * modechange.h: Add defines for mode_compile arg mask.
4263 If __STDC__, use prototypes.
4264 * chmod.c, mkdir.c, mkfifo.c, create.c: Account for above changes.
4266 Tue May 15 16:17:34 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4268 * dd.c (copy): Quit with nonzero status if final write fails.
4270 Mon May 14 14:34:10 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4272 * dd.c: Make translation tables unsigned.
4273 (main): Give `input_file' and `output_file' nonzero values for
4275 (parse_conversion): Set new global vars 'space_character' and
4276 'newline_character' to correct values when translating to EBCDIC
4278 (copy): Use 'space_character' and 'newline_character' instead
4279 of hardcoded ASCII values. Ignore attempts to seek on output pipe,
4280 socket, or fifo. If possible, seek instead of reading to skip
4281 initial input records. Sync with `space_character' instead of
4284 * cp.c (copy_reg): Compare lseek values as longs, not ints.
4286 Sat May 12 01:16:42 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4288 * cp-hash (remember_created): Return error status instead of
4290 * cp.c (copy): Change caller.
4291 (do_copy, copy_reg): Return error status instead of fatal error.
4293 * Move rename emulation from mv.c to dirlib.c so other
4294 programs can use it.
4295 * mv.c, ln.c (main): Recognize new options for making backups.
4296 * mv.c (do_move), ln.c (do_link): Make backups if requested.
4297 * mv.c, ln.c (usage): Update message.
4298 * backupfile.c, backupfile.h: New files.
4300 * cp.h: Ifdef out decl of umask because of SunOS 4.1 (POSIX) conflict.
4302 * Define all `main' functions as returning void.
4304 Fri May 11 02:11:03 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4306 * ln.c, mv.c, rm.c, rmdir.c, create.c, chmod.c: Change some
4309 * du.c, cp-aux.c (error): Function removed.
4310 Change callers to use error.c version.
4311 * cp.c (copy, do_copy, copy_dir): Return an error status.
4312 * ls.c (error, fatal, perror_with_name): Functions removed.
4313 Change callers to use error.c.
4315 Sat May 5 23:46:48 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4317 * ln.c (do_link): Don't allow trying to link a file to itself,
4318 because the source file would be removed if they are the same
4319 directory entry, and also for consistency with mv and cp.
4321 Fri May 4 13:42:53 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4323 * cp.c (copy_reg): Only write a null to the end of the file if
4324 the end of the file was sparse.
4326 * ls.c (print_name_with_quoting): Make the char to print
4327 unsigned to prevent sign extension problems with -b.
4329 Fri Apr 20 13:52:15 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4331 * Version 1.2 released.
4333 Wed Apr 18 14:36:15 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4335 * Makefile: Use chsize for ftruncate on Xenix.
4337 * cp.c (copy): Remove broken code that attempted to
4338 substitute for ftruncate on systems missing it.
4340 Mon Apr 16 13:58:01 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4342 * cp-aux.c (usage): Fix mistake in message.
4344 * Version 1.1 released.
4346 Sat Apr 14 17:23:11 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4348 * ls.c (main): Don't remove leading path from program_name.
4349 (basename): Function removed.
4350 (length_of_file_name_and_frills): Don't add 1 for type indicator
4351 for block and character special files.
4353 Thu Apr 12 19:50:15 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4355 * Makefile: Suggest using -DBLKSIZE=512 instead of 1024 for USG.
4357 * dd.c (copy): Print copying statistics when exiting because
4358 of a read or seek error.
4359 (interrupt_handler): New function.
4360 (main): Trap SIGINT to run interrupt_handler, for POSIX.
4362 Tue Apr 10 01:09:38 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4364 * chmod.c (change_file_mode): Don't change the mode of
4367 Mon Apr 9 13:30:00 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4369 * modechange.c (compile_mode): Return an error if an octal
4370 number argument is too large.
4372 Sun Apr 8 20:33:20 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4374 * dd.c: Use `error' instead of `fatal' and `pfatal_with_name',
4375 for greater control of the message format.
4376 * head.c, tail.c: Use `error' instead of `fatal_perror' and
4377 `nonfatal_perror'. Remove some unnecessary info from messages.
4378 * chmod.c, create.c, ln.c, mkdir.c, mkfifo.c, mv.c, mv_dir.c,
4379 rm.c, rmdir.c: Remove definition of `error'.
4380 * error.c: New file created from code in mv.c.
4381 * Makefile: Link the above programs with error.o.
4383 * ln.c (do_link): Use eaccess_stat to determine writability.
4384 * mv.c (do_move): Ditto.
4385 * rm.c (remove_file): Ditto.
4386 (remove_dir): Use eaccess_stat to determine readability and
4387 searchability. Move initial interactive query here from
4389 * Makefile: Link ln, mv, and rm with eaccess.o.
4391 Sat Apr 7 11:47:52 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4393 * Makefile: Link cp with eaccess.o.
4394 * eaccess.c: New file adapted from code in cp.c and cp-aux.c.
4395 * cp.c (copy): Use eaccess_stat to determine writability.
4396 Consider a file unwritable by root if it has no permissions.
4397 (main): Remove groups initialization code.
4398 * cp-aux.c (member): Function deleted.
4400 * cp.c (copy): Temporarily change the mode of directories if
4401 necessary to overwrite them when running recursively.
4402 Consider a directory to be non-overwritable if it lacks write
4403 permission as well as if it lacks execute permission.
4405 * rm.c, mv.c, mv_dir.c, chmod.c, create.c, ln.c: Remove some
4406 irrelevant or redundant information from error messages.
4408 Fri Apr 6 15:20:45 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4410 * cp.c (copy): Only change mode of regular files and directories;
4411 others are already correct.
4413 Thu Apr 5 04:31:56 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4415 * dd.c: Remove the vars that are set by command line options
4416 from a useless struct and give them more meaningful names.
4418 Mon Apr 2 02:58:34 1990 David J. MacKenzie (djm at spike.ai.mit.edu)
4420 * cp.c (main): Use NGROUPS from sys/param.h to determine
4421 whether BSD multiple groups are supported and how large to
4423 * Makefile: Remove references to GETGROUPS_MISSING.
4425 Sun Apr 1 18:53:57 1990 David J. MacKenzie (djm at spike.ai.mit.edu)
4427 * cp.c (main): Always initialize group info.
4429 Sat Mar 31 22:29:57 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4431 * mv.c [RENAME_MISSING] (rename): To rename directories, run
4432 setuid root mv_dir program.
4434 Tue Mar 20 14:28:25 1990 David J. MacKenzie (djm at pogo.ai.mit.edu)
4436 * touch.c: Remove POSIX_COMPAT ifdef since there is no reason
4437 to disable the GNU extensions.
4438 (main): Set new global var `program_name'.
4439 (error): Replace with more versatile version.
4440 Global: Change calls to fprintf and error to use the new error.
4441 (main): Initialize global variables. Don't bother making
4442 temporary copy of arg to -d. Don't ignore any files named on
4443 the command line if -i is given.
4444 (usage): Don't take an arg. Use `program_name' instead of
4446 (touch): In utime emulation for BSD, ftruncate the file to its
4447 original size so empty files stay empty after being touched.
4449 Sun Mar 18 01:02:39 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4451 * ln.c (strip_trailing_slashes): New function.
4452 (main, do_link): Call it.
4454 * cp-aux.c (strip_trailing_slashes): New function.
4455 * cp.c (do_copy): Call it.
4458 * mv.c (strip_trailing_slashes): New function.
4459 (main, movefile): Call it.
4461 Sat Mar 17 21:45:35 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4463 * cp-aux.c, cp.h: Rename user_confirm_overwriting to yesno and
4464 don't have it print a prompt, so it can be used in several
4467 * cp.c (do_copy): Change an error message to resemble mv's.
4468 Remove all trailing slashes from all non-option args.
4469 (main): Set new global var `stdin_not_tty'.
4470 (copy): Use POSIX method of handling file overwriting and
4473 * dirlib.c (mkdir): Use chmod to set the directory mode after
4474 successful creation, so set[ug]id and sticky bits are set
4477 Thu Mar 15 12:33:23 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4479 * Makefile: Add commented out definitions for SCO Xenix.
4481 * ls.c (print_type_indicator): Don't print a '*' next to
4482 executable block or character special files.
4484 * chmod.c (error): New function, replacing nonfatal_perror,
4485 memory_out, and invalid_mode.
4486 Global: Call error instead of the above functions.
4487 (change_dir_mode): Make the new size of the path twice the
4488 size of the name that was too long, rather than twice its old
4491 * rm.c: Move interactive query about whether to remove a
4492 directory from remove_dir to clear_directory; only query for
4493 directories that are not empty.
4495 Wed Mar 14 10:48:40 1990 David J. MacKenzie (djm at rice-chex)
4497 * system.h [USG]: Define X_OK.
4499 * rm.c (main): Set new global var `stdin_not_tty'.
4500 (rm): Most of code moved to two new functions, remove_file and
4502 (remove_file): Use POSIX method of determining whether to remove
4504 (remove_dir): Use POSIX method of determining whether to
4505 remove directories, almost.
4506 (perror_with_name): Function removed.
4507 (error): Simple version replaced with more powerful version.
4508 Global: Change calls to fprintf, perror_with_name, and old
4509 error to calls to new error.
4511 * ln.c (main): Set new global var `stdin_not_tty'.
4512 If force, turn off interactive.
4513 (do_link): By default, don't allow hard links to symbolic links to
4514 directories. Use POSIX method of determining whether to
4515 overwrite destination.
4516 (yesno): Function renamed from confirm, and arg removed.
4517 (lisdir): Function removed.
4519 * mv.c (main): Set new global var `stdin_not_tty'.
4520 (yesno): Function renamed from yes.
4521 (do_move): Use POSIX method of determining whether to
4522 overwrite destination.
4524 * Makefile: Make executables depend on .o files, not .c files,
4525 to allow for parallel compilation.
4527 Tue Mar 13 00:50:14 1990 David J. MacKenzie (djm at rice-chex)
4529 * rm.c (main): Disallow removal of paths that have '..' as the
4531 (basename): New function.
4533 * ls.c (print_type_indicator): Mark FIFOs with '|' and sockets
4535 (print_long_format): Print numbers as unsigned and add extra
4536 space for POSIX flag.
4538 * dd.c: Make the record counts unsigned.
4539 (quit): Print them as unsigned.
4541 * modechange.c (compile_mode): Only get umask value when needed.
4542 If users are not given or are `a', affect set?id and sticky bits.
4543 If memory is exhausted while allocating a new list element,
4544 free the old elements before returning.
4546 * Makefile (CC): Add comment noting that either fixincludes or
4547 -traditional needs to be used for gcc to compile ioctl calls
4550 Mon Mar 12 16:25:23 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
4552 * touch.c [UTIME_OF_NULL_MISSING]: Call lseek() before write().
4554 * posixtime.y [__GNUC__]: Use __builtin_alloca.
4556 Fri Mar 9 10:25:09 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4558 * chmod.c (main): Recognize "a,+-=" as valid options.
4560 * mv.c: Move the code to copy files across filesystems from
4561 do_move to a new function, copy, which will eventually be
4562 replaced with modules from cp and rm (POSIX requires mv to
4563 move directories recursively across filesystems).
4564 (do_move): Don't query about overriding a mode that prohibits
4565 writing if interactive. Remove unneeded variable.
4566 (copy): Unlink target if copy fails partway through.
4568 Thu Mar 8 10:56:16 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4570 * cp.c (copy): Don't remove a destination file of a different
4571 type unless +force is given.
4573 * ls.c (decode_switches, usage): Add -U (for "unsorted") as an
4574 equivalent to +sort=none.
4576 Mon Mar 5 16:31:14 1990 Torbj|rn Granlund (tege at echnaton)
4578 * cp.c (copy): Test for temporarily modified permission mode
4579 after the other test, so that `-p' work for files whose mode
4580 needed a temporary mode change.
4581 * cp.c (copy): Don't waste time calling unlink if we already
4582 know that the destination doesn't exists.
4583 * cp.c (comment before do_copy): Correct.
4584 * cp.c (comment before copy): Describe all params.
4585 * cp.c (copy): Only change permission mode for regular files
4587 * cp.c (copy): Unlink the destination file if its type is
4588 different from the source. If the destination is a
4591 Mon Mar 5 00:34:36 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4593 * chmod.c (nonfatal_perror): Don't check for force_silent.
4594 (change_file_mode, change_dir_mode): If force_silent, don't
4595 print error messages.
4597 * mv.c (main): If force, turn off interactive.
4598 (do_move): Simplify check for query. Rename `stb' to
4599 `to_stats' and `stbf' to `from_stats'.
4600 Return error condition if original file could not be renamed or
4603 * rm.c: Rename global `force_flag' to `ignore_errors' and change its
4604 meaning so that it does not overlap with `override_mode'.
4605 (main): Have -f +force set override_mode. If override_mode is
4606 set, turn off interactive.
4607 (rm): Simplify checks for whether to query the user, based on
4608 the new relationship between override_mode and interactive.
4610 Sun Mar 4 23:39:03 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4612 * ln.c (main): Reword an error message to be more like mv's.
4614 * rmdir.c: Move global `errors' into main instead of having
4617 * mkdir.c: Move global `errors' into main and have make_path
4618 return an error status instead of having error set it.
4620 * chmod.c: Move global `errors' into main and have
4621 change_file_mode and change_dir_mode return an error status
4622 instead of setting it in nonfatal_perror.
4624 Sat Mar 3 13:59:40 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4626 * ln.c (main): Don't strip leading dirs from argv[0].
4628 * ln.c (confirm), mv.c (yes, do_move),
4629 cp-aux.c (user_confirm_overwriting), rm.c (rm, yesno, check_stack):
4630 Print query messages to stderr instead of stdout, for POSIX.
4631 Include program name in messages.
4633 Sat Mar 3 11:27:27 1990 Torbj|rn Granlund (tege at echnaton)
4635 * cp.c (copy): Don't unlink directories with flag_force
4636 (`-f'). Also avoid using force when not necessary.
4637 Always copy fifo's and symbolic links as themselves.
4639 * cp.c (copy_reg): Make int scan first, char scan then, to
4640 find first non-zero byte. This to avoid false hole
4643 Sat Mar 3 10:22:28 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4645 * mv.c: Rename `pgm' to `program_name'. Move global `errors'
4646 into main. Have do_move and movefile return an error status
4647 instead having error set it. Remove global vars `args'
4649 (main): Rename `ac' and `av' to `argc' and `argv' and use them
4650 and `optind' instead of `args' and `args_left'.
4652 * cp.c (copy): Don't ignore errors other than EPERM from chown.
4654 Fri Mar 2 16:20:57 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4656 * rm.c (main, usage): Allow -R as a synonym for -r, for POSIX.
4658 * cp.c (copy): If flag_preserve, preserve the owner and group
4659 if possible, as well as mode.
4660 (main): Allow -R as a synonym for -r option, for POSIX.
4661 * cp-aux.c (usage): Mention -R.
4663 Tue Feb 27 11:49:04 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4665 * cp.c (copy): If not recursive, copy special files and
4666 symlinks like regular files and omit fifos.
4668 Mon Feb 26 19:55:24 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
4670 * ls.c (print_long_format): If time is in the future, print the year.
4671 Make the cutoff for old files 6 months not 300 days.
4673 Mon Feb 26 13:31:07 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
4675 * touch.c, Makefile: Use getdate.y instead of unctime.y.
4677 * touch.c: Remove posixtime.
4678 (main): Check for error from posixtime.
4679 posixtime.y: New file.
4681 * touch.c: Change a few cryptic error messages.
4682 Include <errno.h> not <sys/errno.h>.
4683 (just_set_amtime): New variable.
4684 (touch): Add if (just_set_amtime) code.
4686 Mon Feb 26 15:03:29 1990 Torbj|rn Granlund (tege at echnaton)
4688 * cp.c (copy): Test for recursive copy in DIR alternative in
4689 the switch statement, so all file types are copied correctly
4690 even in a non-recursive copy.
4691 * cp.c (copy): Return after having created a symlink, since
4692 chmod and utimes dereference, and would affect the symlink
4693 target. Remove test for symlinks after switch.
4695 Sun Feb 25 18:31:09 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4697 * Makefile: Compile ls after vdir so systems with a cc that
4698 can't do -c -o don't have to compile ls.c twice for ls.
4700 * dd.c (usage): Add braces around alternatives.
4702 * ls.c (print_long_format): Always print the group, for POSIX.
4703 (decode_switches): Make -g option a no-op for BSD users.
4704 (usage): Remove +group option.
4706 Wed Feb 21 11:13:26 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4708 * ln.c (error): New function.
4709 (main, do_link): Call error instead of fprintf and exit.
4710 (main): Recognize new -d +directory option to allow superuser to
4711 make hard links to dirs, like the BSD ln -f option.
4712 (do_link): Don't allow hard links to dirs (they are hard to
4713 get rid of -- rmdir and unlink don't do it), unless -d was given.
4714 (usage): Mention -d +directory option.
4716 * rmdir.c (main): Remove trailing slashes from args (added by
4717 shell file completion but the rmdir syscall can't handle them).
4718 * mkdir.c (main): Remove trailing slashes from args, for
4719 uniformity with rmdir (you can't do file completion on dirs
4720 that haven't been made yet . . .).
4722 * mv.c: Rename global var `nargs' to `args_left' to avoid
4723 conflict with undocumented BSD libc function (the new name is
4726 Tue Feb 20 17:09:19 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4728 * dd.c: Use new global var `program_name' in error messages
4729 instead of hardcoded "dd".
4730 (main): Set program_name from argv[0].
4732 * chmod.c, head.c, tail.c (main): Don't strip leading dirs
4734 (basename): Function removed.
4736 * rm.c (main): Don't strip leading dirs from argv[0].
4738 Mon Feb 19 14:34:18 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4740 * rm.c (main): Strip trailing slashes from each arg.
4742 Thu Feb 15 13:23:52 1990 David J. MacKenzie (djm at rice-chex)
4744 * Makefile [HPUX CFLAGS]: Add -DUTIMES_MISSING.
4746 Wed Feb 14 15:01:18 1990 David J. MacKenzie (djm at rice-chex)
4748 * Makefile (dist): Don't make a non-compressed tar file.
4750 * mv.c (do_move): Refuse to copy non-regular files across filesystems.
4752 Tue Feb 13 15:06:18 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
4754 * touch.c (getname): New function.
4757 Mon Feb 12 11:30:45 1990 David J. MacKenzie (djm at rice-chex)
4759 * ln.c (do_link): Check error return from unlink.
4762 * du.c (main): Check error return from stat.
4763 (str_copyc, str_concatc): Don't return a value, since it is
4766 * cp.c (copy): Check error return from unlink and chmod. Fix
4767 typo in call to error.
4769 * mv.c (do_move): Check error return of fchmod/chmod and utime[s].
4770 (rename): Check error return of unlink.
4772 * Makefile Definitions of preprocessor macros moved from
4773 cp.c and mv.c. HAVE_FTRUNCATE changed to FTRUNCATE_MISSING.
4774 * Makefile, dirlib.c: NEED_MKDIR changed to MKDIR_MISSING.
4775 * mv.c, cp.c: Change USG ifdefs to UTIMES_MISSING.
4777 Sun Feb 11 17:50:29 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4779 * chmod.c (usage): Add yet another ellipsis.
4781 Sun Feb 11 16:41:30 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
4783 * cp.c (copy_reg): Use HAVE_FTRUNCATE to decide whether to
4785 (main): Use GETGROUPS_MISSING to decide whether to use getgroups().
4786 [hpux || !USG]: Define HAVE_FTRUNCATE.
4787 [USG && !hpux]: Define GETGROUPS_MISSING.
4788 mv.c (rename): Put in #ifdef RENAME_MISSING not #ifdef USG.
4789 (do_move): Use FCHMOD_MISSING to decide whether to use fchmod().
4790 [USG && !hpux]: Define FCHMOD_MISSING and RENAME_MISSING.
4792 Fri Feb 9 10:25:03 1990 David J. MacKenzie (djm at rice-chex)
4794 * mv.c (movefile): Remove trailing slashes from FROM (some
4795 filename completion systems add them for dirs, and they cause
4796 the rename syscall to fail).
4798 Thu Feb 8 22:50:12 1990 Torbj|rn Granlund (tege at sics.se)
4800 * cp.c (copy_reg): Change error handling after lseek, since
4801 this is a fatal error. Also change error message to
4802 something more generally understood.
4803 * Handle files that end in a zero block on USG systems.
4805 * cp-aux.c (error): Use FATAL to recog fatal errs.
4807 Thu Feb 8 21:25:40 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4809 * ln.c: Remove incorrect comment.
4811 * cp.c, cp-aux.c (usage): Change +dereference option to
4812 +no-dereference, since dereferencing is done by default and
4813 the option turns it off.
4815 Mon Feb 5 17:29:20 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
4817 * Version 1.0 released.
4822 version-control: never