home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / gnu / fileutils-3.9-src.lha / src / amiga / fileutils-3.9 / ChangeLog < prev    next >
Encoding:
Text File  |  1993-10-19  |  89.0 KB  |  2,560 lines

  1. Mon Oct 18 00:13:40 1993  Jim Meyering  (meyering@comco.com)
  2.  
  3.     * src/*.c (usage): Now the usage message is simply
  4.     "Try `%s --help' for more information.  From Francois Pinard.
  5.  
  6.     * src/Makefile.in [LIBPROGS]: Depend on ../lib/libfu.a and
  7.     version.o.  From Francois Pinard.
  8.  
  9.     * src/*.c (usage): Remove blank line before "Try `%s --help..."
  10.     in usage message.
  11.  
  12. Sun Oct 17 00:19:58 1993  Jim Meyering  (meyering@comco.com)
  13.  
  14.     * fileblocks.c [!NINDIR]: Define BSIZE only if it's not already
  15.     defined.
  16.  
  17.     * ls.c (print_long_format): Cast printf args major and minor
  18.     so they'll have types matching %u format even on systems
  19.     where those macros have signed type.
  20.  
  21. Sat Oct 16 00:25:42 1993  Jim Meyering  (meyering@comco.com)
  22.  
  23.     * chmod.c (change_file_mode): Reapply Oct 6 change for symlinks.
  24.     Somehow it got removed from working sources.
  25.  
  26.         * lib/Makefile.in [OBJECTS]: Change dependency to ../config.h so
  27.     it works when building in a subdirectory.  From Rick Sladkey
  28.     (jrs@world.std.com).
  29.  
  30. Wed Oct 13 19:43:47 1993  Jim Meyering  (meyering@comco.com)
  31.  
  32.     * cp.c (copy), ls.c (get_link_name): Complete Aug 27 change so
  33.     that we use PATH_MAX + 1 rather than sizeof(char*) as size of
  34.     buffer in readlink call.  This was causing spurious errors.
  35.  
  36.         * cp.c (copy), mv.c (do_move), rm.c (remove_file, remove_dir):
  37.         Cast to `unsigned int' stat->st_mode printf arguments corresponding
  38.         to %o formats to avoid warnings.
  39.  
  40.         * lib/Makefile.in [DEFS]: Remove -DMVDIR.  Add -DCONFIG_BROKETS.
  41.         (rename.o): Add a specific rule.  Use -DMVDIR=... here instead.
  42.  
  43.         * src/Makefile.in [DEFS]: Add -DCONFIG_BROKETS.
  44.         (distclean): Don't delete dir.c and vdir.c; they aren't
  45.         created anymore.
  46.  
  47.         * lib/Makefile.in: Make all .o files depend on $(srcdir)/../config.h.
  48.         * src/Makefile.in: Ditto.
  49.  
  50. Sun Oct 10 13:38:54 1993  Jim Meyering  (meyering@comco.com)
  51.  
  52.     * src/Makefile.in (dist): Depend on $(DISTFILES).
  53.  
  54.     * src/Makefile.in [libdir, LIBPROGS]: Define them.
  55.     From Francois Pinard.
  56.  
  57.     * posixtm.y: [HAVE_CONFIG_H, CONFIG_BROKETS]: Include <config.h>
  58.     or "config.h".  From Francois Pinard.
  59.  
  60.     * makepath.c: [HAVE_CONFIG_H, CONFIG_BROKETS]: Remove the duplicate
  61.     #ifdef block following the alloca #ifdefs.  From Francois Pinard.
  62.  
  63.     * df.c: Remove unnecessary dcl of strstr.
  64.  
  65. Sat Oct  9 13:30:28 1993  Jim Meyering  (meyering@comco.com)
  66.  
  67.     * configure.in [STATFS_OSF1]: Change name to STAT_STATFS3_OSF1
  68.     to be consistent with names of the other STAT_* macros.
  69.     * acconfig.h: Ditto.
  70.     * fsusage.c: Ditto.
  71.  
  72.     * acconfig.h: Add comments.
  73.     * Makefile.in: Remove comments about -D flags that could be added
  74.     to DEFS; now (using autoheader) those comments end up in config.h.
  75.  
  76.     * Makefile.in (configure, config.h.in): Warn that they may not be
  77.     up to date.  Don't touch them.
  78.  
  79.     * ls.c (usage): Split long usage string between two fprintf
  80.     statements to avoid default limit of SGI's cc on string length.
  81.  
  82.     * Makefile.in, src/Makefile.in [PROGS]: Alphabetize.
  83.  
  84.     * configure.in: Remove AC_UNISTD_H; add unistd.h to AC_HAVE_HEADERS.
  85.  
  86. Thu Oct 07 12:57:10 1993  Jim Meyering  (meyering@comco.com)
  87.  
  88.     * chgrp.c, chmod.c, chown.c, cp-aux.c, cp.c, dd.c, df.c, du.c,
  89.     install.c, ln.c, ls.c, mkdir.c, mkfifo.c, mknod.c, mv.c, mvdir.c,
  90.     rm.c, rmdir.c, touch.c (usage): Using --help gets long well-
  91.     formatted help.  Now --help writes to stdout and exits successfully.
  92.     From Francois Pinard <pinard@iro.umontreal.ca>.
  93.  
  94.     * lib/Makefile.in [libdir]: Make sure it's defined.
  95.  
  96.     * posixtm.y [!__GNUC__ && !HAVE_ALLOCA_H]: Declare alloca as void*
  97.     rather than char*.  The latter conflicts with a dcl from bison.simple.
  98.  
  99. Wed Oct 06 18:22:00 1993  Jim Meyering  (meyering@comco.com)
  100.  
  101.     * chmod.c (change_file_mode): Add an argument to control how symbolic
  102.     links are treated.
  103.     (main, change_dir_mode): Reflect changed calling sequence.
  104.     Now symlinks listed on the command line are processed (they
  105.     were ignored before); the permissions of the dereferenced files are
  106.     changed.  Symlinks encountered in recursive traversals are still
  107.     ignored.  This makes GNU chmod act more like e.g. Sun's.
  108.     From Nick Holloway <alfie@dcs.warwick.ac.uk>.
  109.     * chmod.1: Document it.
  110.  
  111. Tue Oct 05 14:52:02 1993  Jim Meyering  (meyering@comco.com)
  112.  
  113.     * configure.in: Add AC_STAT_MACROS_BROKEN.
  114.  
  115.     * isdir.c, makepath.c, rename.c, system.h [STAT_MACROS_BROKEN]:
  116.     Test this.
  117.  
  118.     * xmalloc.c [CONFIG_BROKETS]: Test this.
  119.  
  120.     * install.c (install_file_in_dir): Use stpcpy instead of slow sprintf.
  121.  
  122.     * argmatch.c, backupfile.c, basename.c, dirname.c, eaccess.c,
  123.     fileblocks.c, fsusage.c, getversion.c, idcache.c, isdir.c,
  124.     makepath.c, mountlist.c, rename.c, savedir.c, stripslash.c,
  125.     userspec.c, xgetcwd.c, xstrdup.c, yesno.c, [HAVE_CONFIG_H,
  126.     CONFIG_BROKETS]: Include <config.h> or "config.h".
  127.  
  128.     * lib/Makefile.in, src/Makefile.in [.c.o]: Put -I.. before
  129.     -I$(srcdir) so <config.h> will get the right file.
  130.  
  131.     * chgrp.c, chmod.c, chown.c, cp-aux.c, cp-hash.c, cp.c, dd.c,
  132.     df.c, du.c, install.c, ln.c, ls.c, mkdir.c, mkfifo.c, mknod.c,
  133.     mv.c, mvdir.c, rm.c, rmdir.c, touch.c, version.c [HAVE_CONFIG_H,
  134.     CONFIG_BROKETS]: Include <config.h> or "config.h".
  135.  
  136.     * configure.in [AC_CONFIG_HEADER]: Use it.
  137.  
  138.     * configure.in (rename.o) [MVDIR definition]: Remove it.
  139.     * lib/Makefile.in [DEFS]: Put it here instead.
  140.  
  141.     * config.h.in, acconfig.h: New files
  142.     * Makefile [DISTFILES]: Add them.
  143.     (config.h.in): Add a rule to warn if it may need to be rebuilt.
  144.  
  145.     * lib/Makefile [YACC]: Get definition from @YACC@.
  146.  
  147.     * system.h: Include <unistd.h>.  This is needed for the definition
  148.     of _POSIX_VERSION.
  149.  
  150. Thu Sep  9 08:52:10 1993  Jim Meyering  (meyering@comco.com)
  151.  
  152.     * src/*.c: Print version on standard output, not stderr.
  153.  
  154. Fri Aug 27 23:53:50 1993  Jim Meyering  (meyering@comco.com)
  155.  
  156.     * cp.c (copy), ls.c (get_link_name): Don't use PATH_MAX as array
  157.     length in declarations because on some systems it gets defined
  158.     to the function pathconf.  Use dynamic allocation instead.
  159.  
  160.     * fsusage.c (adjust_blocks): Use `1' instead of `+1'.  Many
  161.     compilers don't parse the latter.  From Kaveh R. Ghazi.
  162.  
  163. Fri Aug 27 10:27:13 1993  Paul Eggert  (eggert@twinsun.com)
  164.  
  165.     * xmalloc.c: Include "config.h" if HAVE_CONFIG_H.  Use size_t,
  166.     not int, when needed.
  167.     (VOID): New macro.  Use it when needed.
  168.     (error): Declaration uses varargs if required.
  169.  
  170. Thu Aug 26 22:26:09 1993  Jim Meyering  (meyering@comco.com)
  171.  
  172.     * ls.c (print_long_format, print_file_name_and_frills): Cast inode
  173.     number to unsigned long and print it with %lu to avoid warnings from
  174.     gcc -Wformat because the size and type of ino_t are system dependent.
  175.  
  176.     * cp.c (do_copy): Plug a memory leak with --parents.
  177.  
  178.     * ln.c (main): Like mv and cp, convert `ln x y/' to ln x y/x
  179.     when a is not a directory.
  180.     [PATH_BASENAME_CONCAT]: New macro.
  181.     (do_link): Use it here, too.
  182.  
  183.     * ls.c (sort_files): Add `default: abort();' clause to switch stmts.
  184.  
  185.     * cp.c (do_copy): Don't remove trailing slashes from source.
  186.  
  187. Wed Aug 25 21:40:00 1993  Jim Meyering  (meyering@comco.com)
  188.  
  189.     * cp.c: Add --parents as synonym for --path.  Change --path to
  190.     --parents in comments.  --path is deprecated.
  191.  
  192.     * rm.c (clear_directory): Fix incorrect test for determining when
  193.     to reallocate buffer.  Thanks to Ric Anderson <ric@CS.Arizona.EDU>.
  194.  
  195. Fri Aug 13 17:19:52 1993  Jim Meyering  (meyering@comco.com)
  196.  
  197.     * fsusage (adjust_blocks): Round away from zero -- this matters
  198.     when computing the negative free-block count for disks that are
  199.     more than 100% full.
  200.  
  201.     * mv.c (movefile): Use nested calls to stpcpy instead of sprintf.
  202.     (is_real_dir): New function.
  203.     (movefile): In addition to when dest is a directory, if dest has
  204.     a trailing `/' and source is not a directory, presume the target
  205.     is dest/`basename source`.  This converts `mv x y/' to `mv x y/x'
  206.     when x is not a directory.  This change means that the command
  207.     `mv any file/' will now fail rather than performing the move.
  208.  
  209.     * cp.c (do_copy): Similarly, convert `cp x y/' to cp x y/x when
  210.     x is not a directory.
  211.  
  212. Wed Aug  4 17:43:18 1993  Jim Meyering  (meyering@comco.com)
  213.  
  214.     * ls.c (get_link_name): Don't ever use the stat field st_size as a
  215.     buffer size.  Too many systems don't set it properly for mount points.
  216.     Instead, use a fixed-length buffer.  From Michael Joosten
  217.     <joost@ori.CAdlab.DE>.
  218.     * cp.c (copy): Ditto.
  219.  
  220. Mon Jul 19 17:39:01 1993  Jim Meyering  (meyering@comco.com)
  221.  
  222.     * backupfile.c (concat): Temporary STR1_LENGTH should have type `int'
  223.     instead of `char.'
  224.  
  225. Fri Jul 16 22:00:16 1993  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  226.  
  227.     * dd.c (print_stats): Change message from "truncated blocks"
  228.     to "truncated records" for final POSIX.2 spec.
  229.  
  230. Fri Jun 25 17:18:15 1993  Jim Meyering  (meyering@comco.com)
  231.  
  232.     * mkdir.c, rmdir.c: Change --path long option to --parents to avoid
  233.     confusion with search-path semantics of --path as an option to other
  234.     programs.  --path will still work, but is no longer documented.
  235.  
  236. Tue Jun  8 00:46:26 1993  Jim Meyering  (meyering@comco.com)
  237.  
  238.     * dd.c (parse_integer): Also accept `c' multiplier for consistency
  239.     with find's -size option.
  240.  
  241. Thu May 27 00:03:51 1993  Jim Meyering  (meyering@comco.com)
  242.  
  243.     * Version 3.8.
  244.  
  245.     * configure.in (STAT_OSF1): Reference the statfs f_fsize member
  246.     so that configure defines STAT_OSF1 only if there is such a member.
  247.     Without such a reference, a Pyramid MIServer running OSx 5.1
  248.     improperly defined STAT_OSF1 instead of the one it needed:
  249.     STAT_STATFS2_BSIZE.
  250.  
  251. Wed May 26 00:57:46 1993  Jim Meyering  (meyering@comco.com)
  252.  
  253.     * ls.h, ls-ls.c ls-dir.c, ls-vdir.c: New files that define or
  254.     simply set the new global variable ls_mode.  ls_mode defines whether
  255.     the executable built from ls.o should act like ls, dir, or vdir.
  256.     * ls.c (decode_switches): Use the variable instead of #ifdefs.
  257.     This is modelled after the approach used in GNU binutils 2.x for
  258.     ar and ranlib.  Here we avoid two redundant compilations.
  259.  
  260.     * install.c (change_attributes, copy_file, install_file_in_file):
  261.     Don't call chown if we can efficiently determine that doing so is
  262.     unnecessary.  On some systems, calls to chown (even with your own
  263.     uid and gid) fail unless made by root.  On such systems install
  264.     got spurious failures.
  265.  
  266. Sat May 22 02:13:12 1993  Jim Meyering  (meyering@comco.com)
  267.  
  268.     * Version 3.6.
  269.  
  270. Fri May 21 18:42:27 1993  Jim Meyering  (meyering@comco.com)
  271.  
  272.     * rename.c (rename): Be careful not to unlink `from' if it happens
  273.     to be equal to `to' or (on filesystems that silently truncate
  274.     filenames after 14 characters) if `from' and `to' share the
  275.     significant characters.  From Bruno Haible
  276.     <haible@ma2s2.mathematik.uni-karlsruhe.de>.
  277.  
  278.     * mountlist.c, fsusage.c: Make these work under m88k DolphinOS.
  279.     From Kjetil Wiekhorst J|rgensen <jorgens@pvv.unit.no>.
  280.  
  281. Tue May 18 23:49:26 1993  Jim Meyering  (meyering@comco.com)
  282.  
  283.     * mkinstalldirs: New file.
  284.     * Makefile.in (installdirs): Use it.
  285.  
  286. Sat May 15 01:20:26 1993  Jim Meyering  (meyering@comco.com)
  287.  
  288.     * ln.c (do_link): Make `ln -s dir_pathname .' work when the
  289.     pathname has a trailing slash.
  290.  
  291. Fri May 14 23:45:52 1993  Jim Meyering  (meyering@comco.com)
  292.  
  293.     * all source: With --version, print version and exit immediately.
  294.  
  295. Wed May 12 20:48:55 1993  Jim Meyering  (meyering@comco.com)
  296.  
  297.     * configure.in: Add check for the -ldgc library that is required
  298.     for getmntent on m88k DGUX-5.4 systems.
  299.  
  300.     * Makefile.in (installdirs): New rules for creating installation
  301.     directories. (install): Depend on it.
  302.  
  303. Sat May  8 11:31:14 1993  Jim Meyering  (meyering@comco.com)
  304.  
  305.     * lib/Makefile.in (dist): Use `cp -p' instead of just `cp'
  306.     if linking fails.
  307.  
  308. Thu May  6 22:45:25 1993  Jim Meyering  (meyering@comco.com)
  309.  
  310.     * makepath.c: Use explicit dcl of errno only if !STDC_HEADERS.
  311.     Some systems have <errno.h> but don't declare errno.
  312.     From Kaveh R. Ghazi <ghazi@caip.rutgers.edu>.
  313.  
  314.     * getdate.y: Test TIME_WITH_SYS_TIME, not TIME_AND_SYS_TIME.
  315.  
  316. Wed May  5 00:21:12 1993  Jim Meyering  (meyering@comco.com)
  317.  
  318.     * configure.in: Add AC_TIME_WITH_SYS_TIME.
  319.     * getdate.y: Use it (this is a version local to fileutils).
  320.  
  321. Tue May  4 20:25:41 1993  Jim Meyering  (meyering@comco.com)
  322.  
  323.     * du.c (count_entry): Give an error and exit if chdir ("..") fails.
  324.     From Bruce Evans <bde@runx.oz.AU>.
  325.  
  326.     * eaccess (eaccess_stat): Cast NGROUPS_MAX to appropriate types.
  327.     From Bruce Evans <bde@runx.oz.AU>.
  328.  
  329. Mon May  3 22:09:24 1993  Jim Meyering  (meyering@comco.com)
  330.  
  331.     * configure.in: Add AC_GETGROUPS_T.
  332.     * eaccess.c: Don't define GETGROUPS_T.  Now configure does it.
  333.  
  334. Sun May  2 09:18:53 1993  Jim Meyering  (meyering@comco.com)
  335.  
  336.     * configure.in: Check for libypsec.a on Dolphin M88K machines.
  337.     This can result in significant speedup for programs that access
  338.     YP information.  From Kjetil Wiekhorst J{\o}rgensen
  339.     <jorgens@pvv.unit.no>.
  340.  
  341. Fri Apr 30 02:21:48 1993  Jim Meyering  (meyering@comco.com)
  342.  
  343.     * ls.c (main): Make `-f' work like on standard Unix ls, instead
  344.     of as a short equivalent of --full-time.
  345.     * ls.1: Document it.
  346.  
  347. Thu Apr 29 00:46:46 1993  Jim Meyering  (meyering@comco.com)
  348.  
  349.     * src/Makefile.in [dir.o, vdir.o]: Make ordering of CFLAGS etc
  350.     in compilation rules consistent with that in .c.o rule.
  351.  
  352.     * Makefile.in (dist): Depend on Makefile so that changes to
  353.     Makefile.in (like adding new files to DISTRIB) are reflected
  354.     in the new distribution.
  355.  
  356. Tue Apr 27 21:35:11 1993  Jim Meyering  (meyering@comco.com)
  357.  
  358.     * configure.in: Remove unnecessary AC_PROG_INSTALL.
  359.  
  360. Fri Apr 23 23:39:16 1993  Jim Meyering  (meyering@comco.com)
  361.  
  362.     * {lib,src}/Makefile.in [.c.o]: Make CPPFLAGS and CFLAGS follow
  363.     other options so users can use them to override DEFS.
  364.  
  365.     * lib/mktime.c: Use new version from glibc instead of one from
  366.     libc-subst.  `touch' built with the latter didn't set proper
  367.     time unless given a specific --date option.
  368.  
  369. Thu Apr 22 00:22:25 1993  Jim Meyering  (meyering@comco.com)
  370.  
  371.     * makepath.c: Decouple inclusion of errno.h from definition of
  372.     STDC_HEADERS; many systems have errno.h, yet shouldn't define
  373.     STDC_HEADERS.
  374.     * makepath.c (make_path): Add EPERM clause only if both AFS and
  375.     EPERM are defined.
  376.     * configure.in: Test for errno.h header file.
  377.  
  378. Mon Apr 19 11:21:14 1993  Jim Meyering  (meyering@comco.com)
  379.  
  380.     * Version 3.5.
  381.  
  382.     * ls.c, touch.c: Don't include time.h explicitly -- it's included
  383.     by system.h.  From Franc,ois Pinard.
  384.  
  385.     * posixtm.y: Use TM_IN_SYS_TIME.
  386.  
  387.     * backupfile.c [index, rindex]: Don't redefine them.
  388.  
  389.     * system.h [alloca]: Don't redefine it.
  390.  
  391.     * configure.in: Check for sys/time.h; getdate.y needs it for
  392.     structs timeval and timezone on some systems.
  393.  
  394. Sun Apr 18 22:40:19 1993  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
  395.  
  396.     * ls.c: Include fnmatch.h after system.h, so we get our
  397.     definitions of FNM_*, not those from unistd.h.
  398.  
  399.     * mountlist.c [MOUNTED_GETMNTINFO]: Add #ifdef around MOUNT_PC.
  400.  
  401.     * configure.in: Fix test for 4.4BSD statfs to not grep for a
  402.     macro in cpp output.
  403.  
  404. Sun Apr 18 02:35:36 1993  Jim Meyering  (meyering@comco.com)
  405.  
  406.     * configure.in: Check for gettimeofday.
  407.     Check for `struct tm'.
  408.     Change MVDIR definition so it works with new AC_DEFINE.
  409.  
  410.     * system.h: Remove last vestiges of USG;  instead, use specific
  411.     test for TM_IN_SYS_TIME to determine whether to include time.h
  412.     or sys/time.h.
  413.  
  414.     * src/Makefile.in (install): Rewrite the test for whether to install
  415.     mvdir so that it doesn't cause gratuitous failures with broken shells.
  416.     Split long rule so the pieces fit in 80-column lines.
  417.  
  418. Thu Apr 15 23:44:01 1993  Jim Meyering  (meyering@comco.com)
  419.  
  420.     * lib/Makefile.in (posixtm.c): Add dependency on getdate.c to enforce
  421.     sequential invocations of YACC.
  422.     * (posixtm.c, getdate.c): Remove use of `bison -o' and associated
  423.     conditional rename commands -- not needed since the parser generators
  424.     won't be run in parallel;  now bison (when used) is always invoked
  425.     with -y.
  426.  
  427. Tue Apr 13 09:18:18 1993  Jim Meyering  (meyering@comco.com)
  428.  
  429.     * configure.in: Find a parser generator.
  430.     * Makefile.in [MDEFINES]: Add YACC to the list of variables passed to
  431.     sub-makes.
  432.     * lib/Makefile.in (posixtm.c, getdate.c): Try first to build with
  433.     `bison -o' -- for parallel makes.  If that fails, use $(YACC).
  434.  
  435.     * posixtm.y [HAVE_MEMCPY && !HAVE_BCOPY]: Define bcopy in terms
  436.     of memcpy for old versions of bison that generate parsers that
  437.     use bcopy.
  438.  
  439.     * configure.in: Add tests for memcpy and bcopy.
  440.  
  441. Mon Apr 12 23:02:14 1993  Jim Meyering  (meyering@comco.com)
  442.  
  443.     * configure.in (mounted, space): Add filesystem checks for DEC Alpha
  444.     running OSF/1 to complement new code in mountlist.c and fsusage.c.
  445.  
  446.     * lib/mountlist.c (read_filesystem_list) [MOUNTED_GETFSSTAT]: Add code
  447.     to do it the OSF/1 way on a DEC alpha.
  448.     From Brian Fox (bfox@tinker.crseo.ucsb.edu).
  449.  
  450.     * lib/fsusage.c (get_fs_usage) [STATFS_OSF1]: Add code to call OSF/1's
  451.     variant of statfs.  From Brian Fox (bfox@tinker.crseo.ucsb.edu).
  452.  
  453. Sun Apr 11 20:29:31 1993  Jim Meyering  (meyering@comco.com)
  454.  
  455.     * df.c (main, show_dev): Don't list dummy (automounter) filesystems
  456.     unless they're explicitly listed on the command line or if the -a
  457.     option is given.
  458.  
  459. Fri Apr  9 11:40:48 1993  Jim Meyering  (meyering@comco.com)
  460.  
  461.     * src/Makefile.in [.c.o]: Put CFLAGS after include directives.
  462.  
  463. Wed Apr  7 23:54:48 1993  Jim Meyering  (meyering@comco.com)
  464.  
  465.     * eaccess.c: Undefine NGROUPS_MAX before redefining it.
  466.     From ghazi@caip.rutgers.edu (Kaveh R. Ghazi).
  467.  
  468. Mon Apr  5 20:14:17 1993  Jim Meyering  (meyering@comco.com)
  469.  
  470.     * chgrp.c, chmod.c, chown.c, install.c, ls.c, mkfifo.c, mknod.c,
  471.     touch.c: Add `case 0: break;' for long-only options help and version.
  472.  
  473. Sun Apr  4 09:38:00 1993  Jim Meyering  (meyering@comco.com)
  474.  
  475.     * src/*.c (usage): Mention --help and --version.
  476.     (main): Handle flag_help and flag_version before checking for
  477.     invocation errors.
  478.  
  479.     * cp.c (copy): Declare to be static.
  480.  
  481.     * cp.c (copy, make_path, re_protect): Explicitly cast alloca return
  482.     value to (char *).
  483.     * ln.c (do_link): Ditto
  484.     * mv.c (do_move): Ditto
  485.     * makepath.c (make_path): Ditto
  486.  
  487.     * lib/eaccess.c (eaccess_stat): Cast to unsigned the value to
  488.     be right-shifted to avoid ANSI vs K&R semantic ambiguity.
  489.  
  490.     * src/Makefile.in (incl): New variable.
  491.  
  492.     * chown.c (main): Explicitly cast -1 to [ug]id_t to avoid compiler
  493.     warnings.
  494.  
  495.     * cp.h: Remove unneeded extern dcl of exit_status.
  496.  
  497.     * basename.c [rindex]: Don't redefine it.
  498.     * system.h [rindex, incl, bcopy, bzero]: Ditto.
  499.     * userspec.c [index]: Ditto.
  500.  
  501.     * Makefile.in [CFLAGS, LDFLAGS]: Don't hard-code these; get their
  502.     definitions from configure.
  503.     * configure.in [CFLAGS, LDFLAGS]: Assign reasonable defaults.
  504.  
  505. Sat Apr  3 18:17:23 1993  Jim Meyering  (meyering@comco.com)
  506.  
  507.     * Makefile.in [Makefile]: Add dependencies and a rule to remake it.
  508.     [targets that cd then run make in subdirectories]: Don't depend
  509.     on `cd ..';  use a subshell instead.
  510.     [info, install-info, dvi, check, installcheck]: New targets but no
  511.     rules; comply with standards.
  512.  
  513.     * src/Makefile.in [.c.o, dir.o, vdir.o]: Put CFLAGS after DEFS and
  514.     CPPFLAGS per standards.texi.
  515.     Use automatically generated dependencies.
  516.  
  517.     * mvdir.c (main): Remove dcl of unused variable.
  518.  
  519. Thu Apr  1 18:05:48 1993  Jim Meyering  (meyering@comco.com)
  520.  
  521.     * install.c, chgrp.c, dd.c [isascii]: Undefine before redefining.
  522.  
  523.     * ls.c: Move some dcls so they appear before first function.
  524.  
  525.     * all programs: Add --help and --version options.
  526.     * version.c: Remove `Version: ' and newlines from version string.
  527.  
  528.     * dd.c: Convert usage to take no arguments.
  529.     * lib/Makefile.in [DISTFILES]: Add version.h.
  530.  
  531. Wed Mar 31 22:03:28 1993  Jim Meyering  (meyering@comco.com)
  532.  
  533.     * configure.in [MVDIR]: Don't quote right hand side.
  534.     * backupfile.c, chgrp.c, install.c: Define isascii macro to be 1
  535.     also if STDC_HEADERS.
  536.  
  537. Tue Mar 30 17:42:11 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
  538.  
  539.     * ls.c: Add -G,--no-group option to inhibit display of group
  540.     information.
  541.     * ls.1: Document it.
  542.  
  543. Mon Mar 29 22:22:40 1993  Jim Meyering  (meyering@comco.com)
  544.  
  545.     * system.h [ST_NBLOCKS]:  Check also for __hpux.  From Henrik B}kman
  546.     <Henrik.Bakman@csd.uu.se>.
  547.  
  548. Sun Mar 28 21:22:30 1993  Jim Meyering  (meyering@comco.com)
  549.  
  550.     * Makefile.in (dist): Use cp when hard link fails.
  551.     Use tar-1.11.2's -z option instead of -Z.
  552.  
  553.     * makepath.c [index]: Don't redefine.
  554.  
  555. Fri Mar 26 00:32:39 1993  Jim Meyering  (meyering@comco.com)
  556.  
  557.     * df.c (add_excluded_fs_type, excluded_fs_type): New functions adding
  558.     support for --exclude-type option.  Derived from Kaveh R. Ghazi
  559.     <ghazi@caip.rutgers.edu>.
  560.  
  561.     * ls.c (decode_switches, print_long_format): New option: --full-time.
  562.     From K. Richard Pixley (rich@rtl.cygnus.com)
  563.  
  564. Thu Mar 25 21:02:36 1993  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  565.  
  566.     * dirname.c [rindex]: Don't redefine.
  567.  
  568. Tue Mar 23 23:13:33 1993  Jim Meyering  (meyering@comco.com)
  569.  
  570.     * ls.c (gobble_file): Don't stat symlinks unless we need to.
  571.     From Mike Rendell <michael@mercury.cs.mun.ca>.
  572.  
  573.     * dd.c (copy, copy_with_block, copy_with_block): Decrement
  574.     pending_spaces only if it's > 0. The following command didn't
  575.     terminate:
  576.     perl -e 'print "a  a\n";'| dd of=/dev/null ibs=1 cbs=3 conv=unblock
  577.     With suggestions from Chris Weber <weber@bucknell.edu>,
  578.     Marlys.A.Nelson@uwrf.edu, and Albert-Lunde@nwu.edu.
  579.  
  580. Fri Mar 05 00:02:53 1993  Jim Meyering  (meyering@comco.com)
  581.  
  582.     * chmod.c: Add long-named options.
  583.  
  584. Mon Feb 15 23:34:55 1993  Jim Meyering  (meyering@comco.com)
  585.  
  586.     * rm.c (remove_file): Don't ask about overriding a mode if the
  587.     target is a symbolic link -- some systems (like SGI's Irix 4.0)
  588.     zero the permissions fields of symbolic links.
  589.     From Arne Henrik Juul (arnej@imf.unit.no).
  590.  
  591. Fri Dec 11 16:46:50 1992  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
  592.  
  593.     * rm.c (main): If -f is given, don't complain if no file args
  594.     are given.
  595.  
  596. Tue Dec  8 21:09:16 1992  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
  597.  
  598.     * posixtm.y: Include alloca.h if HAVE_ALLOCA_H, not if sparc.
  599.  
  600. Mon Dec  7 20:09:59 1992  Jim Meyering  (meyering@idefix.comco.com)
  601.  
  602.     * install.c (isnumber), chgrp.c (change_file_group): Define ISDIGIT
  603.     and use it instead of isdigit.
  604.  
  605.     * dd.c: Define ISLOWER and ISUPPER independent of STDC_HEADERS.
  606.     Define ISDIGIT and use it instead of isdigit.
  607.  
  608. Wed Dec  2 12:28:10 1992  Jim Meyering  (meyering@idefix.comco.com)
  609.  
  610.     * all files using getopt.h: Convert static declarations of
  611.     struct option to use new macros from getopt.h: no_argument,
  612.     required_argument, and optional_argument.
  613.  
  614. Tue Nov 24 07:54:45 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  615.  
  616.     * system.h: Use HAVE_FCNTL_H instead of USG.
  617.  
  618.     * xgetcwd.c: Use HAVE_GETCWD instead of USG.
  619.  
  620.     * backupfile.c, basename.c, dirname.c, idcache.c, makepath.c,
  621.     mountlist.c, stripslash.c, userspec.c, xstrdup.c, system.h:
  622.     Use HAVE_STRING_H instead of USG.
  623.  
  624.     * system.h: Use SYSDIR and NDIR instead of USG.
  625.     Define direct as dirent, not vice-versa.
  626.     * ls.c, rm.c, backupfile.c, savedir.c: Use `struct dirent',
  627.     not `struct direct'.
  628.  
  629. Thu Nov 12 23:10:56 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  630.  
  631.     * system.h: If dirent is #defined, don't define direct as dirent;
  632.     for Sinix.  Derived from Heinfried Korn (korn@med-in.uni-sb.de).
  633.  
  634. Mon Nov  9 14:13:57 1992  Jim Meyering  (meyering@idefix.comco.com)
  635.  
  636.     * fsusage.c (adjust_blocks): Reverse Oct 31 change --
  637.     the function is more readable than the macro.
  638.  
  639.     * All files in src: Make all functions and extern variables static.
  640.     Make all longopts arrays const as well as static.
  641.     Make a couple statically initialized aggregates `const.'
  642.  
  643. Sat Oct 31 16:32:17 1992  Jim Meyering  (meyering@idefix.comco.com)
  644.  
  645.     * fsusage.c (adjust_blocks): Convert to a macro.  The static
  646.     function wasn't always used.
  647.  
  648.     * makepath.c, cp.c, ls.c: Add parentheses to expressions
  649.     like (c = *p++) as per suggestion from gcc -Wall.
  650.  
  651.     * dd.c (swab_buffer): Fix typo that incremented pointer instead
  652.     of counter.  Add braces around static struct initializers.
  653.  
  654. Fri Oct 30 11:40:58 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  655.  
  656.     * ln.c, cp.c (main): Make -s on systems without symlinks an
  657.     error, not a warning.
  658.  
  659. Thu Oct 29 14:57:21 1992  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
  660.  
  661.     * Version 3.4.
  662.  
  663.     * cp.c (copy, re_protect), mv.c (copy_reg): Do utime and chown
  664.     before chmod, so set[ug]id bits don't get nuked.
  665.     Don't use fchmod.
  666.  
  667. Wed Oct 28 16:13:18 1992  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
  668.  
  669.     * cp.c, mv.c, ln.c: Rename some variables to use consistent
  670.     terminology: source and destination.
  671.  
  672.     * ln.c, mkdir.c, mkfifo.c, mknod.c: Don't strip trailing slashes.
  673.     * install.c: Don't strip slashes from dest. dirs.
  674.  
  675. Mon Aug 24 12:49:14 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  676.  
  677.     * xgetcwd.c: Make path_max unsigned, not long.  From Bruce Evans.
  678.  
  679. Sun Aug 23 03:06:04 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  680.  
  681.     * idcache.c: Use a union for uid_t and gid_t.  From
  682.     bde@runx.oz.au (Bruce Evans).
  683.  
  684.     * eaccess.c: Use NGROUPS_MAX if it's defined.  386BSD is like sun.
  685.  
  686. Sat Aug 22 02:36:49 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  687.  
  688.     * makepath.c: Use uid_t and gid_t.
  689.  
  690.     * system.h, makepath.c: Use HAVE_ALLOCA_H, not sparc.
  691.  
  692.     * cp.c (make_path, re_protect): Allocate room for terminating NULs.
  693.  
  694. Fri Aug 21 21:12:18 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  695.  
  696.     * fsusage.c [STAT_STATVFS]: Use f_bsize if f_frsize is 0.
  697.     From Paul M Reilly <pmr@rock.concert.net>.
  698.  
  699.     * xgetcwd.c [!errno]: Declare errno.  From Karl Berry.
  700.  
  701.     * chown.c (main, change_file_owner, change_dir_owner): Use
  702.     uid_t and gid_t.  From Rob McMahon <cudcv@csv.warwick.ac.uk>
  703.     and glaze@cs.mu.oz.au (Glaze).
  704.  
  705. Thu Jul 23 14:29:17 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  706.  
  707.     * Version 3.3.
  708.  
  709. Sat Jul 18 20:12:56 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  710.  
  711.     * idcache.c: Use uid_t and gid_t.
  712.     (getuidbyname, getgidbyname): New functions, for cpio.
  713.  
  714.     * userspec.c: New file, from code in chown.c.
  715.     * chown.c: Use it.
  716.  
  717. Fri Jul 17 00:43:38 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  718.  
  719.     * system.h: Protect from getopt prototype in stdlib.h.
  720.  
  721.     * ls.c [_AIX]: Include sys/ioctl.h.
  722.     * fsusage.c: Include sys/vfs.h if AIX PS/2, but not if RS6000.
  723.     From tranle@intellicorp.com (Minh Tran-Le).
  724.  
  725.     * mvdir.c: Declare getcwd.  From Francois Pinard.
  726.  
  727.     * chown.c, chgrp.c, install.c [_POSIX_SOURCE]: Define endpwent
  728.     and endgrent as empty.
  729.  
  730.     * makepath.c (make_path): Add cast to alloca call.
  731.     From Jim Meyering.
  732.  
  733.     * cp.c (copy, re_protect), mv.c (copy_reg): Notify root of
  734.     EPERM errors from chown.
  735.     * makepath.c, install.c [AFS]: Ignore EPERM from chown.
  736.  
  737.     * system.h (ST_NBLOCKS) [_AIX && _I386]: st_blocks is in 4K units.
  738.     * fsusage.c (statfs) [_AIX && _I386]: Supply this function.
  739.     From tranle@intellicorp.com (Minh Tran-Le).
  740.  
  741. Thu Jul 16 23:08:39 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  742.  
  743.     * df.c (print_header, show_dev): In inode format, print the
  744.     total number of inodes as well.
  745.  
  746.     * fsusage.[ch], df.c (show_dev): Count internally using
  747.     512-byte blocks, not 1024-byte, to avoid rounding errors.
  748.  
  749. Mon Jul  6 20:03:54 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  750.  
  751.     * rename.c: Use S_ISDIR instead of S_IFDIR.
  752.  
  753. Fri Jul  3 14:36:34 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  754.  
  755.     * fileblocks.c, system.h, cp.c, dd.c, mv.c, touch.c: Change
  756.     FOO_MISSING to HAVE_FOO.
  757.  
  758. Wed Jun  3 19:28:04 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  759.  
  760.     * xgetcwd.c (xgetcwd): Accept errno==EINVAL as nonfatal.
  761.  
  762. Wed May 20 00:05:52 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  763.  
  764.     * system.h: If we include a header file specifically to get
  765.     major et al., assume we have them.
  766.  
  767. Mon May 11 20:04:10 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  768.  
  769.     * chgrp.c, chown.c: --show-changes -> --changes.
  770.  
  771. Sat May  9 18:39:38 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  772.  
  773.     * system.h: Define DEV_BSIZE if not defined.
  774.  
  775. Thu Apr 30 13:55:37 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  776.  
  777.     * du.c (count_entry): Remove the trailing "/" before printing.
  778.  
  779. Wed Apr 29 11:34:38 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  780.  
  781.     * rename.c (rename): If removing `from' fails, remove `to' to
  782.     clean up.  From Matthew Farwell <dylan@ibmpcug.co.uk>.
  783.  
  784. Thu Apr 23 21:14:16 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  785.  
  786.     * ls.c (gobble_file): Only read the link contents if -l or the
  787.     file was named on the command line.
  788.  
  789. Wed Apr 22 02:16:38 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  790.  
  791.     * fsusage.c (get_fs_usage) [STAT_STATFS4 and _SEQUENT_]: Has f_bavail.
  792.     From Donn Cave <donn@carson.u.washington.edu>.
  793.  
  794.     * getversion.c (get_version): If given invalid arg, exit.
  795.  
  796.     * cp.c (copy): Fix mode with chmod if copying as a regular file.
  797.  
  798.     * system.h, dd.c: SIGTYPE -> RETSIGTYPE.
  799.  
  800. Sat Apr 18 00:18:41 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  801.  
  802.     * fsusage.[ch] (get_fs_usage): Take another arg, the device name.
  803.     * fsusage.c (get_fs_usage) [STAT_READ]: Fix number of inodes
  804.     calculation.  Use the device name.  From Brian Matthews.
  805.     * df.c (show_dev): Pass the device name.
  806.  
  807. Fri Apr 17 11:25:28 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  808.  
  809.     * fsusage.c: Special-case AIX.
  810.  
  811.     * mountlist.c [MOUNTED_VMOUNT]: New code for AIX, from
  812.     Garrett A. Wollman (wollman@uvm.edu).
  813.  
  814.     * ls.c (gobble_file): Use stat, not lstat, on symlinked-to
  815.     file, for Unix compat.  From ian@airs.com (Ian Lance Taylor).
  816.  
  817. Mon Apr  6 14:16:06 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  818.  
  819.     * xgetcwd.c: Include stdio.h to get NULL.
  820.  
  821. Thu Apr  2 14:41:18 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  822.  
  823.     * df.c: Call sync only once, instead of once per filesystem.
  824.  
  825. Wed Apr  1 16:00:08 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  826.  
  827.     * Version 3.2.
  828.  
  829. Tue Mar 31 13:39:06 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  830.  
  831.     * df.c (main): stat all arg pathnames before getting
  832.     list of mounted filesystems.
  833.     (show_entry, show_point): Take a struct stat * as another arg,
  834.     to avoid repeatedly statting files.
  835.  
  836. Mon Mar 30 12:21:28 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  837.  
  838.     * install.c (main): Allow symbolic modes for -m.
  839.     (atoo): Function removed.
  840.  
  841.     * mkdir.c (main): Include invalid -m arg in error message.
  842.  
  843.     * fsusage.c (get_fs_usage) [STAT_STATFS4]: Go back to using
  844.     512 instead of f_bsize.  Empirically, it gives the right answer.
  845.  
  846.     * mvdir.c (main): Don't deref NULL pointer on last iteration
  847.     of loop.
  848.  
  849.     * fsusage.c (adjust_blocks): New function.
  850.     (get_fs_usage): Call it.
  851.  
  852.     * mvdir.c (main): Don't possibly try to use ".." entry of new dir
  853.     before creating it.
  854.  
  855.     * fsusage.c (get_fs_usage) [STAT_STATFS4]: Use f_bsize member
  856.     of struct statfs.
  857.  
  858. Sat Mar 28 00:36:57 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  859.  
  860.     * dd.c (copy_simple, copy_with_block, copy_with_unblock,
  861.     translate_buffer, swab_buffer): New functions, mostly made
  862.     from code taken from copy.  Incorporate some optimizations due
  863.     to Stuart Kemp: For each type of conversion, only check
  864.     whether to do it once per buffer read, instead of once per character.
  865.     (copy): If conv=block and the input didn't end with a newline,
  866.     pad the final block with spaces.
  867.  
  868. Wed Mar 25 14:35:17 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  869.  
  870.     * system.h: Don't use BSIZE for calculating ST_BLKSIZE if it
  871.     isn't defined.
  872.  
  873.     * mountlist.c [MOUNTED_FREAD], fsusage.c [STAT_READ]: New code
  874.     for SVR2, from archive@ideahb.sublink.org (Lele Gaifax).
  875.  
  876. Tue Mar 24 14:53:19 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  877.  
  878.     * mvdir.c: Use getcwd, not getwd.
  879.  
  880.     * system.h, xgetcwd.c: Redo how PATH_MAX is figured out, to
  881.     work on SVR3.
  882.  
  883.     * fsusage.c, mountlist.c: New files split from fsinfo.c.
  884.     Revise conditionals to make the two files independent of each other.
  885.     * fsusage.h, mountlist.h: New files split from fsinfo.h.
  886.     * df.c: Use them.
  887.  
  888. Mon Mar 23 13:01:07 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  889.  
  890.     * fsinfo.c (read_filesystem_list): Take another arg, all_fs.
  891.     [FS_MNTENT]: Ignore type "auto" (from amd) as well as "ignore"
  892.     (from automounter), if not all_fs.
  893.     * df.c (main): Pass the new arg.
  894.  
  895.     * fsinfo.h: Add function decls.
  896.  
  897.     * chown.c, chgrp.c, chmod.c: Remove -L option.  Didn't handle
  898.     changing symlinks correctly and wasn't very useful.
  899.  
  900. Sat Mar 14 17:38:38 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  901.  
  902.     * dirname.c (dirname): Don't use strdup.
  903.  
  904. Fri Mar 13 14:56:15 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  905.  
  906.     * rm.c (remove_file, remove_dir, clear_directory): If -f was
  907.     given, don't complain about ENOENT when removing.
  908.  
  909. Mon Mar  9 00:09:48 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  910.  
  911.     * install.c (main): Allow making multiple dirs with -d.
  912.     (usage): Document it.
  913.     * makepath.c (make_path): Clear umask while working and
  914.     restore it when done.  chmod dirs that should have
  915.     set[ug]id or sticky bits set, if we're chowning them.
  916.     Make chown failure nonfatal.  Do chmod after chown, not before.
  917.  
  918.     * du.c (count_entry): Set exit_status on nonfatal error.
  919.     (main): Use it.
  920.  
  921. Sun Mar  8 22:07:50 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  922.  
  923.     * du.c (du_files): New function, from code in main.
  924.     Use xgetcwd instead of getcwd or getwd.
  925.     * system.h: Don't declare getcwd or getwd.
  926.  
  927.     * xgetcwd.c: New file.
  928.  
  929.     * ls.c (main): Exit with `exit_status' instead of 0.
  930.     (print_dir, gobble_file, get_link_name): Set exit_status on error.
  931.  
  932.     * ls.c (print_long_format): Allow a slop factor for deciding
  933.     what is in the future.
  934.  
  935.     * All programs: Change usage messages and documentation for
  936.     long options to use -- instead of +.
  937.  
  938.     * df.c (main, usage): Add -v option for SysV compat.
  939.  
  940. Tue Feb  4 12:45:09 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  941.  
  942.     * fileblocks.c [!NINDIR]: Try to fake indirect block info for
  943.     systems that don't define it.
  944.  
  945. Thu Jan 16 01:04:16 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  946.  
  947.     * df.c (print_header): Capitalize some header words for
  948.     POSIX.2a draft 8.
  949.  
  950. Sat Jan  4 01:19:25 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  951.  
  952.     * posixtm.y: Capitalize token name.
  953.  
  954. Tue Dec 24 01:05:44 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  955.  
  956.     * system.h, makepath.c, idcache.c, eaccess.c, backupfile.c,
  957.     install.c, dd.c, chown.c, chgrp.c: Change POSIX ifdefs to
  958.     HAVE_UNISTD_H.
  959.  
  960. Wed Dec 18 16:42:00 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  961.  
  962.     * system.h: To get major, minor and makedev, don't check for
  963.     _POSIX_SOURCE and USG; use MAJOR_IN_MKDEV and MAJOR_IN_SYSMACROS.
  964.  
  965. Mon Dec 16 18:16:42 1991  David J. MacKenzie  (djm at wombat.gnu.ai.mit.edu)
  966.  
  967.     * dd.c (skip): Fix typos in arg name.
  968.     (output_char): Fix off by one error in check.
  969.  
  970. Sun Dec  8 19:55:06 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  971.  
  972.     * system.h: Only define major et al. if not already defined.
  973.  
  974. Fri Dec  6 18:26:53 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  975.  
  976.     * dd.c (main) [POSIX]: Use sigaction instead of signal, which
  977.     POSIX doesn't have.
  978.  
  979.     * df.c, du.c, ls.c: POSIX_ME_HARDER -> POSIXLY_CORRECT.
  980.  
  981. Wed Dec  4 14:30:16 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  982.  
  983.     * dd.c: Cleanups, mostly from Stuart Kemp:
  984.     (output_char): New macro, from code in copy.
  985.     (write_output): New function, used by output_char, from code
  986.     in copy.
  987.     (skip): New function, from code in copy.
  988.     (copy): Use output_char and skip.
  989.     Simplify test for quitting before main loop.
  990.     Zero buffer using bzero for speed.
  991.  
  992. Sun Nov 17 19:39:04 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  993.  
  994.     * fsinfo.c (get_fs_usage) [FS_MNTENT]: Take blocksize into account.
  995.     (read_filesystem_list) [FS_MNTENT]: Ignore filesystems of type
  996.     "ignore" (automounter dummy entries).
  997.  
  998.     * install.c (change_attributes): Do chmod even if chown fails.
  999.  
  1000. Thu Oct 24 23:50:46 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1001.  
  1002.     * chown.c (change_file_owner), chgrp.c (change_file_group):
  1003.     don't skip symlinks, since the chown system call works on them.
  1004.  
  1005. Fri 18 Oct 1991 23:29:24  Jim Meyering  (meyering at wombat)
  1006.  
  1007.     * configure: fixed test to detect sequent's strange interpretation
  1008.     of utime(file, NULL).
  1009.  
  1010. Fri Oct 18 00:30:42 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1011.  
  1012.     * eaccess.c: GID_T -> GETGROUPS_T, for clarity.
  1013.  
  1014. Sat Oct 12 12:25:55 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
  1015.  
  1016.     * configure: Define uid_t and gid_t as int if they're not
  1017.     defined in sys/types.h.  That's probably right for old Unixes
  1018.     and avoids trying to find the C preprocessor.
  1019.  
  1020.     * df.c: Don't declare sync, to avoid conflict with Minix (and
  1021.     maybe others) unistd.h.
  1022.     (show_point): Cast -1 to dev_t before comparing, in case dev_t
  1023.     is unsigned.  From Rainer Orth.
  1024.  
  1025.     * chown.c [!POSIX]: Declare getgrgid.
  1026.  
  1027. Fri Sep 13 14:55:41 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
  1028.  
  1029.     * eaccess.c [POSIX]: Always use sysconf to get NGROUPS_MAX.
  1030.  
  1031. Thu Sep  5 23:40:39 1991  David J. MacKenzie  (djm at apple-gunkies)
  1032.  
  1033.     * system.h: Instead of defining getwd in terms of getcwd with
  1034.     PATH_MAX as an arg (which might be -1 on POSIX), define getcwd
  1035.     in terms of getwd.
  1036.     * du.c (main): Call getcwd with path_max as an arg.
  1037.  
  1038.     * install.c (change_attributes): Do chown before chmod, so
  1039.     chown doesn't remove set[ug]id bits.
  1040.  
  1041. Wed Aug 28 20:53:50 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1042.  
  1043.     * Version 3.1.
  1044.  
  1045. Mon Aug 26 15:44:16 1991  David J. MacKenzie  (djm at pogo.gnu.ai.mit.edu)
  1046.  
  1047.     * du.c (main): If pathconf fails, use 1024 for PATH_MAX.  This
  1048.     happens if "/" is NFS-mounted.
  1049.  
  1050. Sun Aug 25 00:56:11 1991  David J. MacKenzie  (djm at apple-gunkies)
  1051.  
  1052.     * df.c, fsinfo.c, fsinfo.h: New program.
  1053.     * configure: Check for various ways of getting info on mounted
  1054.     filesystems.
  1055.  
  1056. Thu Aug 22 10:53:23 1991  David J. MacKenzie  (djm at apple-gunkies)
  1057.  
  1058.     * src/Makefile.in: Workaround #10006 for C compilers that are
  1059.     too dumb to allow -c and -o together.  Copy the source files.
  1060.     * system.h: Moved from src to lib to avoid having to add yet
  1061.     more -I options to CFLAGS.
  1062.  
  1063.     * du.c, ls.c: If POSIX_ME_HARDER is set in environment, use
  1064.     512-byte blocks by default.
  1065.  
  1066. Wed Aug 21 13:03:14 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1067.  
  1068.     * Version 3.0.
  1069.  
  1070.     * du.c, ls.c: Make 1K blocks the default size, and -k a no-op.
  1071.     Down with dumb standards!
  1072.  
  1073.     * system.h, backupfile.c, savedir.c [VOID_CLOSEDIR]: Fake a
  1074.     return value for closedir, which returns void on some systems,
  1075.     like Sequents.
  1076.     * configure: Check sys/dir.h for 'void closedir'.
  1077.  
  1078. Tue Aug 20 22:22:47 1991  Jim Meyering  (meyering at nutrimat)
  1079.  
  1080.     * mvdir.c (main):  Clean up loop to stat component
  1081.     directories -- as in makepath and pathchk.
  1082.  
  1083. Tue Aug 20 22:10:47 1991  Jim Meyering  (meyering at nutrimat)
  1084.  
  1085.     * dirname.c (dirname):  Allocate exact amount of space
  1086.     needed for result.
  1087.  
  1088. Tue Aug 20 02:13:40 1991  David J. MacKenzie  (djm at apple-gunkies)
  1089.  
  1090.     * savedir.c (savedir): Try to open directory before allocating
  1091.     buffer.  From Jim Meyering.
  1092.  
  1093. Mon Aug 19 01:14:13 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1094.  
  1095.     * Many files: indent '#pragma alloca' so non-ANSI compilers
  1096.     don't choke on it.
  1097.  
  1098.     * backupfile.c (max_backup_version): Check closedir return
  1099.     value (though it might not do any good).
  1100.  
  1101. Tue Aug  6 20:50:56 1991  David J. MacKenzie  (djm at wheat-chex)
  1102.  
  1103.     * configure, Makefile.in's: Support +srcdir option, using VPATH.
  1104.     Don't check for bison, just try it and if it fails use yacc.
  1105.     Create config.status.  Fix up clean targets.
  1106.  
  1107.     * posixtm.y (posixtm): New function.
  1108.  
  1109.     Most of the following is from Paul Eggert:
  1110.     * savedir.c (savedir), ls.c (print_dir), rm.c
  1111.     (clear_directory): Check closedir return for errors.
  1112.     * dd.c (main): Check for stdin or stdout being closed.
  1113.     * dd.c (quit), install.c (copy_file): Check for close errors.
  1114.     * mv.c (copy): Was missing a close.
  1115.  
  1116. Sat Aug  3 02:05:51 1991  David J. MacKenzie  (djm at apple-gunkies)
  1117.  
  1118.     * ln.c: Declare link() unconditionally (SCO UNIX needs it).
  1119.  
  1120. Tue Jul 30 00:23:19 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1121.  
  1122.     * configure: NEED_TZSET has become FTIME_MISSING.
  1123.  
  1124.     * configure: Define uid_t and gid_t if sys/types.h doesn't.
  1125.  
  1126. Sat Jul 27 00:55:16 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1127.  
  1128.     * configure: Only compile fileblocks.c if st_blocks is missing.
  1129.  
  1130.     * cp.c (copy): Make directories with initial mode of source
  1131.     permissions minus umask, plus 0700.  For POSIX and John Gilmore.
  1132.  
  1133.     * system.h: Include errno.h and, if STDC_HEADERS, stdlib.h.
  1134.     * All programs: Remove includes of those files.
  1135.  
  1136.     * ftruncate.c: New file.
  1137.     * configure: Use it if needed.
  1138.  
  1139. Wed Jul 24 02:09:45 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1140.  
  1141.     * ls.c (get_name_link), cp.c (copy) [_AIX]: Allocate extra
  1142.     space for the buffer, since st_size is wrong.
  1143.  
  1144.     * system.h: Don't declare alloca for AIX.
  1145.     * makepath.c, posixtm.y, cp.c, du.c, ln.c, ls.c, mv.c:
  1146.     Declare alloca first (AIX needs it).
  1147.  
  1148.     * cp.c, dd.c, touch.c: Use SEEK_ instead of L_.
  1149.     * system.h: Define SEEK_ if not defined.
  1150.  
  1151. Tue Jul 23 15:02:20 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1152.  
  1153.     * eaccess.c: GID_T is int if ultrix as well as if sun.
  1154.  
  1155. Mon Jul 22 11:39:31 1991  David J. MacKenzie  (djm at bleen)
  1156.  
  1157.     * install.c: Use uid_t and gid_t.
  1158.  
  1159.     * eaccess.c: Support POSIX method of getting multiple groups.
  1160.  
  1161.     * xmalloc.c (xmalloc, xrealloc): Exit with value 2 on error,
  1162.     not 1, so cmp can use it.
  1163.  
  1164. Sat Jul 20 14:24:40 1991  David J. MacKenzie  (djm at bleen)
  1165.  
  1166.     * Move cat cmp cut expand head paste split tac tail unexpand
  1167.     to textutils.
  1168.  
  1169.     * system.h [MKFIFO_MISSING]: Define mkfifo macro.
  1170.     * cp.c, mkfifo.c: Don't define it.
  1171.  
  1172.     * mknod.c, gmknod.1: New files.
  1173.  
  1174. Fri Jul 19 13:43:01 1991  David J. MacKenzie  (djm at apple-gunkies)
  1175.  
  1176.     * version.c: New file.
  1177.     * All C programs: Link with it, to get version number in the
  1178.     binary where at least `strings -' and GNU grep can find it.
  1179.  
  1180. Mon Jul 15 13:46:53 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1181.  
  1182.     * configure: Also look in sys/signal.h for signal decl.
  1183.  
  1184. Sun Jul 14 22:43:57 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1185.  
  1186.     * Rename touchtm.y back to posixtm.y, as the date command will
  1187.     use it too.
  1188.  
  1189. Mon Jul  8 22:56:36 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1190.  
  1191.     * Replace lib/Makefile with lib/Makefile.in.
  1192.     * configure: For some library functions that might be missing,
  1193.     conditionally add the .o files to lib/Makefile instead of
  1194.     defining func_MISSING.
  1195.     * lib/mkdir.c: Renamed from lib/mkrmdir.c.
  1196.  
  1197. Sat Jul  6 02:19:09 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  1198.  
  1199.     * xstrdup.c [STDC_HEADERS]: Include string.h.
  1200.  
  1201.     * stripslash.h: Include string header file.
  1202.  
  1203.     * configure: Add to DEFS if Minix.
  1204.  
  1205.     * system.h [_POSIX_SOURCE]: Make ST_BLKSIZE 1024 instead of
  1206.     512, for better performance.
  1207.  
  1208.     * system.h, configure: If sys/mkdev.h exists, use it instead
  1209.     of sys/sysmacros.h.
  1210.  
  1211.     * configure: echo messages to stdout, not stderr.
  1212.     Use test programs to see if alloca needs -lPW and if chars are
  1213.     unsigned.
  1214.  
  1215. Tue Jul  2 03:16:32 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  1216.  
  1217.     * chown.c, chgrp.c [!POSIX]: Declare pwd.h and grp.h functions.
  1218.  
  1219. Sat Jun 29 16:46:12 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  1220.  
  1221.     * cp.h: Don't declare `open', to avoid conflict with varargs
  1222.     prototypes.
  1223.  
  1224.     * chown.c, chgrp.c: Include sys/types.h before, not after,
  1225.     pwd.h and grp.h, to get uid_t and gid_t if necessary.
  1226.  
  1227. Fri Jun 28 01:12:45 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  1228.  
  1229.     * ls.c: Use time_t instead of long, where appropriate.
  1230.  
  1231. Thu Jun 27 16:31:45 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  1232.  
  1233.     * touchtm.y: Renamed from posixtime.y for SysV systems with Bison.
  1234.  
  1235.     * configure: No longer need to pass bison the -y option.
  1236.     Now lib/Makefile should allow a parallel make with bison.
  1237.  
  1238.     * cp.c (copy_reg), cat.c (main),
  1239.     touch.c (touch, utime_now), mv.c (copy): Check close return
  1240.     value for delayed error report due to NFS.
  1241.  
  1242. Thu Jun 20 01:33:06 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  1243.  
  1244.     * configure: Include $DEFS when compiling test programs.
  1245.  
  1246.     * configure: Use test programs instead of grep to check for
  1247.     USG, POSIX, and ANSI C headers, in case symbols are defined in
  1248.     header files included by the standard ones.  Check for BSD
  1249.     memory functions (bcopy et al.) as well as string functions.
  1250.     Add notice to top of generated Makefile saying that it's
  1251.     automatically generated.
  1252.  
  1253. Thu Jun 13 00:50:18 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  1254.  
  1255.     * Version 2.1.
  1256.  
  1257.     * configure: If rename is missing, define MVDIR.
  1258.     Use , instead of / as sed substitution separator so variables'
  1259.     values can contain slashes.
  1260.  
  1261.     * du.c (main): Use alloca to allocate `wd' instead of making
  1262.     it an auto array, since PATH_MAX might be a call to pathconf.
  1263.  
  1264. Wed Jun 12 19:56:22 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  1265.  
  1266.     * cp-aux.c (usage), install.c (usage), ln.c (usage), mv.c
  1267.     (usage): Combine the option lists for the multiple usage forms.
  1268.  
  1269. Tue Jun 11 00:12:15 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  1270.  
  1271.     * idcache.c: pwd.h and grp.h might need sys/types.h.
  1272.  
  1273.     * configure: Create Makefile from Makefile.in instead of
  1274.     makefile from makefile.skel, to more closely follow the new
  1275.     GNU coding standards.
  1276.  
  1277.     * ls.c (file_interesting): Use POSIX.2 fnmatch instead of glob_match.
  1278.  
  1279.     * configure: If $RANDOM is implemented (ksh, bash or zsh), use
  1280.     the `type' builtin to determine if gcc, bison, ranlib are
  1281.     available.  ksh writes "fubar: command not found" to stderr,
  1282.     foiling the test -n "`command 2>&1`" method.
  1283.     Remove makefile on signal.
  1284.  
  1285.     * system.h: Include sys/param.h if not _POSIX_SOURCE instead
  1286.     of if not POSIX, to get DEV_BSIZE.
  1287.  
  1288.     * makepath.c, posixtime.y, system.h: Add _AIX case to alloca decl.
  1289.  
  1290. Sun Jun  9 01:26:27 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  1291.  
  1292.     * Version 2.0.
  1293.  
  1294.     * basename.c, dirname.c: Use str[r]chr and string.h if
  1295.     STDC_HEADERS as well as if USG.
  1296.  
  1297.     * touch.c (utime_now): Created from code in touch ().
  1298.  
  1299. Sat Jun  8 11:02:32 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  1300.  
  1301.     * backupfile.c: Use POSIX instead of _POSIX_SOURCE to
  1302.     determine whether to check whether readdir returned a valid
  1303.     entry.
  1304.  
  1305. Fri Jun  7 21:44:51 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  1306.  
  1307.     * fileblocks.c (st_blocks), system.h (ST_NBLOCKS): Always
  1308.     return number of 512 byte blocks, not DEV_BSIZE blocks.
  1309.     (convert_blocks): Always expect 512-byte blocks.
  1310.  
  1311. Thu Jun  6 12:54:26 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  1312.  
  1313.     * system.h [POSIX]: If PATH_MAX not defined, use pathconf.
  1314.     Remove NAME_MAX stuff; not used.
  1315.  
  1316.     * system.h: Make #include <strings.h> depend on not (USG or
  1317.     STDC_HEADERS) instead of not (USG or POSIX).
  1318.  
  1319.     * configure: New shell script to aid compilation.
  1320.  
  1321. Mon Jun  3 16:42:41 1991  David J. MacKenzie  (djm at wheat-chex)
  1322.  
  1323.     * cp.h: Remove some decls of functions returning int that
  1324.     conflict with prototypes on HPUX.
  1325.  
  1326.     * cp.c (make_path, re_protect): New functions from Jim
  1327.     Meyering.  Changes to other functions as well, to add +path,
  1328.     +link, +symbolic-link options.
  1329.  
  1330. Sun Jun  2 15:45:24 1991  David J. MacKenzie  (djm at wheat-chex)
  1331.  
  1332.     * most files: use GPL version 2.
  1333.  
  1334. Sat Jun  1 20:17:35 1991  David J. MacKenzie  (djm at wheat-chex)
  1335.  
  1336.     * rm.c, backupfile.c: If _POSIX_SOURCE, don't refer to d_ino.
  1337.  
  1338. Sun May 19 18:42:09 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
  1339.  
  1340.     * touch.c: Renamed getdate to get_date to avoid SVR4 conflict.
  1341.  
  1342. Thu May 16 23:12:01 1991  David J. MacKenzie  (djm at albert.gnu.ai.mit.edu)
  1343.  
  1344.     * cp.c, mv.c, ln.c: Use alloca and strcpy directly instead of
  1345.     in a macro for generating backup filename.  The latter
  1346.     sometimes coredumps for some reason.
  1347.  
  1348. Sat Apr 20 00:03:09 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  1349.  
  1350.     * dd.c: Add conv=notrunc and truncate output file by default,
  1351.     for POSIX.
  1352.  
  1353.     * rm.c (rm): Refuse to remove path/. and path/.., as well as `.'
  1354.     and `..', for POSIX.
  1355.  
  1356.     * chown.c: Allow `:' as well as `.' to separate group from
  1357.     user, for POSIX.2 draft 11.
  1358.  
  1359.     * Many programs: Don't bother to get the long-option index
  1360.     value from getopt_long, since we ignore it.
  1361.  
  1362.     * Many programs: Separate long-option option names from their
  1363.     args with `=' instead of ` ' in usage messages.
  1364.  
  1365.     * touch.c (touch): Don't refuse to touch non-regular files.
  1366.  
  1367. Wed Apr 10 12:19:30 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
  1368.  
  1369.     * cp.c, cp-aux.c: Add -a +archive option, an easier to
  1370.     remember synonym for -dpR.
  1371.  
  1372. Fri Mar 15 16:16:54 1991  David J. MacKenzie  (djm at geech.ai.mit.edu)
  1373.  
  1374.     * mv.c (copy): Try to preserve file ownership in
  1375.     cross-filesystem copies.
  1376.  
  1377.     * backupfile.c, rm.c: Go back to using d_ino instead of
  1378.     d_fileno.  POSIX.1 specifies neither, and d_ino is more
  1379.     common, perhaps ubiquitous.
  1380.  
  1381.     * chown.c (describe_change): Don't print the group name if it
  1382.     didn't change (thus is a null pointer).
  1383.     (main): Initialize group name to null.
  1384.  
  1385. Mon Feb 25 11:44:14 1991  David J. MacKenzie  (djm at geech.ai.mit.edu)
  1386.  
  1387.     * dd.c (copy): Only seek if not seeking to start of file, so
  1388.     "dd >> foo" works with Minix shell that doesn't open foo in
  1389.     append mode.
  1390.  
  1391. Thu Feb 21 11:59:39 1991  David J. MacKenzie  (djm at geech.ai.mit.edu)
  1392.  
  1393.     * ln.c (do_link), mv.c (do_move), cp.c (copy): Store backup
  1394.     filename using alloca so we don't have to free it every place
  1395.     we return.  From Jim Meyering.
  1396.  
  1397. Thu Feb 14 00:41:43 1991  David J. MacKenzie  (djm at geech.ai.mit.edu)
  1398.  
  1399.     * cp.c (copy_reg): Only make holes when copying a regular file
  1400.     onto a regular file.
  1401.  
  1402. Fri Jan 18 06:31:59 1991  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1403.  
  1404.     * ls.c: Move defn. of S_IEXEC to after header files are included.
  1405.     * cp.h: Always declare stat and lstat.
  1406.  
  1407. Thu Jan 10 02:16:55 1991  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1408.  
  1409.     * cp.h: Only declare some system calls if not POSIX.
  1410.  
  1411.     * eaccess.c, idcache.c, dd.c, install.c, ln.c, system.h:
  1412.     Change _POSIX_SOURCE to POSIX.
  1413.  
  1414.     * fileblocks.c, system.h: Change STBLOCKS_MISSING to
  1415.     ST_BLOCKS_MISSING (was already that way in cp.c).
  1416.  
  1417. Fri Dec 28 18:40:34 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1418.  
  1419.     * chmod.c, chown.c, chgrp.c, du.c: Rename -d option to -L for
  1420.     similarity to ls and cpio.
  1421.  
  1422. Thu Dec 27 00:06:45 1990  David J. MacKenzie  (djm at egypt)
  1423.  
  1424.     * rm.c (clear_directory): Keep looking for files to remove
  1425.     until we don't find any, so that any .nfs* files created by
  1426.     removing other files are also removed, eventually.
  1427.  
  1428.     * install.c (main): Strip trailing slashes on all args.
  1429.  
  1430.     * mv.c (copy): Open target file with mode 0600, not 0777.
  1431.     [FCHMOD_MISSING]: Perform chmod after closing files, not
  1432.     before, for MS-DOS.
  1433.  
  1434.     * cp.c (do_copy): Don't append `..' to target dir name.
  1435.  
  1436.     * du.c (main, count_entry, usage): Add -D +dereference-args
  1437.     and -d +dereference options.
  1438.  
  1439. Wed Dec 26 03:39:18 1990  David J. MacKenzie  (djm at egypt)
  1440.  
  1441.     * dirname.c, xstrdup.c: Get decls from standard files, if available.
  1442.  
  1443. Thu Dec 20 23:10:22 1990  David J. MacKenzie  (djm at egypt)
  1444.  
  1445.     * makepath.c: New file, adapted from code in mkdir.c,
  1446.     install.c, and cpio util.c by Jim Meyering.
  1447.     * mkdir.c, install.c: Use make_path.
  1448.  
  1449. Sun Dec 16 00:56:54 1990  David J. MacKenzie  (djm at egypt)
  1450.  
  1451.     * chown.c, chgrp.c: New files.
  1452.  
  1453. Sat Dec 15 20:42:32 1990  David J. MacKenzie  (djm at egypt)
  1454.  
  1455.     * cp.h: Declare POSIX functions always -- _POSIX_SOURCE
  1456.     doesn't imply STDC declarations.
  1457.  
  1458.     * system.h: Define S_ISTYPE macros not defined by sys/stat.h.
  1459.  
  1460.     * Many files: Use S_ISTYPE macros.
  1461.  
  1462.     * backupfile.c, rm.c: Use name d_fileno for member of struct
  1463.     dirent instead of d_ino, for POSIX.
  1464.  
  1465. Wed Dec 12 23:38:22 1990  David J. MacKenzie  (djm at egypt)
  1466.  
  1467.     * ls.c: Declare time() as time_t instead of long, to prevent
  1468.     conflict with standard header files.
  1469.  
  1470.     * cp.c (copy_reg): Instead of using NO_SPARSE_FILES, use
  1471.     st_blocks to determine whether the original file contains any
  1472.     sparse blocks, and only create them if so.  On systems without
  1473.     st_blocks, to be safe, never create sparse blocks.
  1474.  
  1475. Thu Nov  8 12:16:27 1990  David J. MacKenzie  (djm at apple-gunkies)
  1476.  
  1477.     * idcache.c: If _POSIX_SOURCE not defined, declare getpw and
  1478.     getgr functions (not an optimal solution, but I hate to add
  1479.     yet another configuration macro).
  1480.  
  1481.     * Makefile: Define AR and RANLIB and pass to child makes.
  1482.     lib/Makefile: Use them.
  1483.  
  1484. Tue Nov  6 23:18:06 1990  David J. MacKenzie  (djm at mole.ai.mit.edu)
  1485.  
  1486.     * idcache.c: New file from code in ls.c.
  1487.  
  1488. Fri Nov  2 14:34:40 1990  David J. MacKenzie  (djm at apple-gunkies)
  1489.  
  1490.     * Move files into src and lib directories, split out library
  1491.     functions into separate files in lib, and rewrite Makefiles.
  1492.  
  1493. Mon Oct 29 01:20:46 1990  David J. MacKenzie  (djm at apple-gunkies)
  1494.  
  1495.     * mv.c (do_move), rm.c (remove_file, remove_dir): If stdin is
  1496.     a tty and file is unwritable, prompt before overwriting.
  1497.  
  1498.     * cp.c (copy_reg): Only make sparse files if
  1499.     NO_SPARSE_FILES is undefined, to accommodate dumb kernels.
  1500.  
  1501.     * du.c (count_entry): Remove misinformed HPUX kludge that
  1502.     doesn't really fix the problem.
  1503.  
  1504.     * rm.c (rm): Check for textual equality with '.' and '..', not
  1505.     dev/inode equality.
  1506.  
  1507. Sat Oct 27 23:38:55 1990  David J. MacKenzie  (djm at apple-gunkies)
  1508.  
  1509.     * rm.c (check_stack): If not interactive, don't prompt when
  1510.     corruption is found, just quit.
  1511.     (remove_file, remove_dir): Delete leading spaces in verbose
  1512.     output.
  1513.  
  1514.     * cp.c (copy), rm.c (remove_dir): If we think the dest. file
  1515.     is unwritable, warn the user in the interactive prompt instead
  1516.     of automatically skipping the file.  Because of race
  1517.     conditions and other protection mechanisms we might not know
  1518.     about, and POSIX.
  1519.  
  1520. Mon Oct  8 18:51:25 1990  David J. MacKenzie  (djm at apple-gunkies)
  1521.  
  1522.     * du.c (main, usage, count_entry): Add +separate-dirs -S option.
  1523.  
  1524.     * dd.c (main): Don't trap SIGINT if it was being ignored.
  1525.  
  1526. Tue Sep 25 16:40:43 1990  David J. MacKenzie  (djm at apple-gunkies)
  1527.  
  1528.     * install.c (copy_file, install_file_in_file): Change
  1529.     attributes after stripping, to guard against strip programs
  1530.     that clear setuid bits, etc.
  1531.  
  1532. Fri Sep 21 22:31:43 1990  David J. MacKenzie  (djm at apple-gunkies)
  1533.  
  1534.     * cp.c (copy_reg): Put back ftruncate way of making holes
  1535.     because the other way can't make a hole at the end of a file.
  1536.  
  1537. Tue Sep 18 03:47:45 1990  David J. MacKenzie  (djm at apple-gunkies)
  1538.  
  1539.     * install.c (change_attributes): Don't ignore EPERM for chown,
  1540.     since the default uid is now the current uid.
  1541.  
  1542. Sun Sep  9 16:54:19 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1543.  
  1544.     * Version 1.4.
  1545.  
  1546.     * cp.h: Declare free returning void, not int, so it
  1547.     doesn't bomb on Xenix.
  1548.  
  1549. Fri Sep  7 04:35:35 1990  David J. MacKenzie  (djm at apple-gunkies)
  1550.  
  1551.     * system.h, backupfile.c, savedir.c [DIRENT]: if direct is
  1552.     defined (as on Ultrix 4.0), undefine it before redefining it.
  1553.  
  1554. Tue Sep  4 03:10:24 1990  David J. MacKenzie  (djm at apple-gunkies)
  1555.  
  1556.     * dd.c (apply_translations, translate_charset): Code moved
  1557.     from parse_conversion.
  1558.     (apply_translations): Convert from EBCDIC to ASCII before
  1559.     converting case.
  1560.  
  1561.     * mvdir.c (fullpath): Return a value.
  1562.  
  1563.     * dd.c (copy): Increment count of truncated records once
  1564.     per record, not once per character that overflows.
  1565.  
  1566. Mon Sep  3 22:23:57 1990  David J. MacKenzie  (djm at coke)
  1567.  
  1568.     * dd.c (swab_array): Function removed.
  1569.     (copy): Rewrite conv=swab to work when odd number of bytes
  1570.     are read.
  1571.     (scanargs): Die if invalid numeric value is given.
  1572.     (parse_integer): Return -1 if invalid arg.
  1573.     (bit_count): Faster version from Jim Meyering.
  1574.  
  1575.     * cp.c, mkfifo.c [MKFIFO_MISSING]: Define mkfifo.
  1576.  
  1577. Thu Aug 30 00:17:02 1990  David J. MacKenzie  (djm at apple-gunkies)
  1578.  
  1579.     * mvdir.c (main): Make sure `from' is not a parent of any part
  1580.     of `to', not just the explicitly given part.
  1581.     (fullpath): New function.
  1582.  
  1583. Wed Aug 29 19:50:05 1990  David J. MacKenzie  (djm at apple-gunkies)
  1584.  
  1585.     * mvdir.c: Renamed from mv_dir.c, for consistency with mkdir and rmdir.
  1586.     * dirlib.c: Caller changed.
  1587.  
  1588. Tue Aug 28 18:05:24 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1589.  
  1590.     * touch.c (main): Don't interpret first non-option arg as a
  1591.     time if `--' is given (POSIX-required kludge).
  1592.  
  1593.     * touch.c: Add long-named options.
  1594.  
  1595.     * Many files: Include <getopt.h> instead of "getopt.h" since
  1596.     getopt.h will be in the GNU /usr/include.
  1597.  
  1598.     * install.c: Declare some functions.
  1599.  
  1600.     * touch.c, getdate.y, posixtime.y, mktime.c: New files, from bin-src.
  1601.  
  1602.     * posixtime.y: Move year from before time to after it (but
  1603.     before the seconds), for 1003.2 draft 10.
  1604.  
  1605. Mon Aug 27 03:25:36 1990  David J. MacKenzie  (djm at apple-gunkies)
  1606.  
  1607.     * touch.c (main): If no time is given and first arg is a valid
  1608.     timespec, use it as one.
  1609.  
  1610. Sat Aug 25 01:36:16 1990  David J. MacKenzie  (djm at apple-gunkies)
  1611.  
  1612.     * posixtime.y: Enclose YYABORT in braces in case some yacc's
  1613.     need it.
  1614.  
  1615.     * touch.c: Remove -i option.  Change some error messages.
  1616.     (readname): Function removed.
  1617.  
  1618. Thu Aug 23 12:56:33 1990  David J. MacKenzie  (djm at apple-gunkies)
  1619.  
  1620.     * cp.c (copy): Only restore dir mode if it was changed.
  1621.  
  1622. Wed Aug 22 01:45:54 1990  David J. MacKenzie  (djm at apple-gunkies)
  1623.  
  1624.     * cp.c (copy): Don't only backup files when -f is given.
  1625.  
  1626.     * ls.c: Add -X +sort=extension option.  Rename
  1627.     +kilobyte-file-size to +kilobytes.
  1628.  
  1629.     * du.c: Rename -f option to -x, for POSIX.  Rename
  1630.     +kilobyte-file-size to +kilobytes.  Add -b, +bytes option for
  1631.     POSIX.
  1632.  
  1633.     * cp-aux.c (usage): Change -o to -x.
  1634.     (stpcpy): Renamed from str_cpy.  Change callers in cp.c.
  1635.  
  1636.     * cp.c: New variable, `flag_copy_as_regular'.
  1637.     (main): For -R, unset `flag_copy_as_regular'.
  1638.     Rename -o to -x for consistency with du.
  1639.     (copy): Only unlink destination files when -f is given.
  1640.     Only prompt when -i given and copying as a regular file.
  1641.     Move check for previous link after other checks, reducing
  1642.     duplicate code.
  1643.     Create directories with mode 0700 initially, for POSIX.
  1644.  
  1645. Mon Aug 20 03:29:08 1990  David J. MacKenzie  (djm at apple-gunkies)
  1646.  
  1647.     * dd.c (copy): Swap input bytes instead of output bytes.
  1648.     (swab_array): New function.
  1649.  
  1650.     * dd.c (copy): If sync and noerror, zero the buffer before the
  1651.     read instead of after so that any data read before an error
  1652.     occurred are preserved.
  1653.     On read error, print stats and seek past the bad block if noerror.
  1654.     noerror doesn't affect write errors, for POSIX.
  1655.     (scanargs): Use two buffers if no buffer sizes given.
  1656.     Do not block or unblock if cbs not given.
  1657.     (print_stats): New function.
  1658.     (quit): Call it.
  1659.  
  1660. Mon Aug 13 23:30:03 1990  David J. MacKenzie  (djm at apple-gunkies)
  1661.  
  1662.     * cp.c (copy): If dest. exists and is unwritable, skip the file.
  1663.  
  1664.     * rm.c, mv.c, cp.c, ln.c (main): Respect the last -f or -i given,
  1665.     for POSIX.
  1666.  
  1667.     * rm.c (remove_file): Only prompt if -i is given.
  1668.     (main, usage): Remove -o +override-mode option, obsolete if
  1669.     POSIX accepts our objection about prompting.
  1670.  
  1671.     * mv.c (do_move): Only prompt if -i is given.
  1672.  
  1673.     * ln.c (do_link): If dest. file exists and -i and -f not
  1674.     given, skip the file.
  1675.  
  1676. Tue Aug  7 12:51:18 1990  David J. MacKenzie  (djm at apple-gunkies)
  1677.  
  1678.     * dd.c (main): If seek= given, don't truncate output file.
  1679.     (copy): Use `read' to skip output blocks if not regular file.
  1680.     Sync with NUL instead of SPC.
  1681.  
  1682. Mon Aug  6 14:43:30 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  1683.  
  1684.     * rm.c: Rename `ignore_errors' to `ignore_missing_files', and
  1685.     have it only suppress messages about nonexisting files.
  1686.     (main): Get dev and ino of `.' and `..'.
  1687.     (rm): If file is the same as `.' or `..', return with error.
  1688.     (remove_file): Remove the file rather than skipping it if
  1689.     unwritable, no -i, and stdin not tty.
  1690.     (remove_dir): Return an error if directory is nonwritable,
  1691.     rather than nonreadable or nonsearchable, for POSIX.2 draft 10.
  1692.  
  1693.     * chmod.c (main): Use fixed error checking to make sure that
  1694.     options aren't mixed together in the same args as mode specifiers.
  1695.  
  1696. Sun Aug  5 11:51:12 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  1697.  
  1698.     * chmod.c (main): Use umask for '-' op.
  1699.  
  1700. Sat Aug  4 10:11:30 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  1701.  
  1702.     * mkfifo.c: Remove -p +path option, no longer specified by POSIX.
  1703.  
  1704. Fri Aug  3 13:38:28 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  1705.  
  1706.     * mkdir.c, mkfifo.c, create.c (main): Don't tell mode_compile to
  1707.     respect the umask for certain operations, since the umask is 0 anyway.
  1708.  
  1709.     * install.c (get_ids): Use getuid and getgid to get defaults,
  1710.     instead of -1.
  1711.  
  1712. Fri Jul 27 14:32:40 1990  David J. MacKenzie  (djm at apple-gunkies)
  1713.  
  1714.     * backupfile.c (dirname): Always replace frontmost slash with a null.
  1715.  
  1716. Thu Jul 26 00:20:35 1990  David J. MacKenzie  (djm at apple-gunkies)
  1717.  
  1718.     * cp.h: Declare umask as unsigned short.
  1719.  
  1720.     * eaccess.c: Make uid and gid unsigned short, and group array unsigned.
  1721.  
  1722. Wed Jul 25 18:38:57 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1723.  
  1724.     * rm.c (remove_file, remove_dir): Print verbose message right
  1725.     before actually trying to remove the file, after the prompting.
  1726.  
  1727.     * ls.c (getuser, getgroup): Make uid and gid unsigned short, not int.
  1728.  
  1729. Tue Jul 24 03:39:42 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1730.  
  1731.     * cp.c (copy), ln.c (do_link), mv.c (do_move): For +verbose,
  1732.     print the file names just before actually attempting the
  1733.     copy/link/move, to produce a list of the files that they
  1734.     actually try to copy/link/move, omitting skipped files.
  1735.     Remove leading spaces from +verbose output.
  1736.  
  1737. Mon Jul 23 16:57:44 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1738.  
  1739.     * cp.c (copy): Make +update operate silently, like +one-file-system.
  1740.  
  1741.     * ln.c: Add -F as synonym for -d, for SunOS compatibility.
  1742.  
  1743. Sun Jul 15 23:23:28 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1744.  
  1745.     * cp.c (copy): Go back to using xstat on dest.
  1746.  
  1747. Wed Jul 11 12:10:33 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1748.  
  1749.     * cp.c (copy): Make directories with desired mode plus u+wx so
  1750.     if the copy is interrupted, the dir is closer to the desired mode.
  1751.     Don't backup directories.
  1752.  
  1753. Sun Jul  8 00:39:31 1990  David J. MacKenzie  (djm at apple-gunkies)
  1754.  
  1755.     * rm.c (main, usage): Add new option -d, +directory.
  1756.     (rm): If -d given, use remove_file instead of remove_dir for
  1757.     directories.
  1758.     (remove_file): If directory, print "remove directory `foo'?"
  1759.     for interactive instead of "remove `foo'?".
  1760.  
  1761.     * ln.c (main): If -s given, print warning message if symlinks
  1762.     are not available.
  1763.     * mkfifo.c (main): If fifo's are not available, print message
  1764.     and exit.
  1765.  
  1766. Fri Jul  6 02:02:49 1990  David J. MacKenzie  (djm at apple-gunkies)
  1767.  
  1768.     * install.c (main): Use the current user and group ID for the
  1769.     default owner and group.
  1770.  
  1771.     * mv.c (main): New option -u, +update.
  1772.     (do_move): Don't move nondirectories if -u and there is an existing
  1773.     destination that has the same or newer mtime.
  1774.     (usage): Document -u, +update.
  1775.  
  1776.     * cp.c (main): New option -u, +update.
  1777.     (copy): Don't copy nondirectories if -u and there is an existing
  1778.     destination that has the same or newer mtime.
  1779.     * cp-aux.c (usage): Document -u ,+update.
  1780.  
  1781. Thu Jul  5 10:04:12 1990  David J. MacKenzie  (djm at apple-gunkies)
  1782.  
  1783.     * ln.c (do_link): Don't check whether OLD exists before trying
  1784.     to make link.
  1785.  
  1786. Tue Jul  3 01:51:55 1990  David J. MacKenzie  (djm at apple-gunkies)
  1787.  
  1788.     * ls.c: Allow "+time=atime" and "+time=ctime" for C hackers.
  1789.  
  1790.     * chmod.c (main): Don't check whether multiple mode arguments
  1791.     are given, because optind has a different value depending on
  1792.     whether or not the option is the last character in the
  1793.     ARGV-element.
  1794.  
  1795. Sat Jun 30 12:32:51 1990  David J. MacKenzie  (djm at apple-gunkies)
  1796.  
  1797.     * cp.c (copy): Use lstat on dest. file, not *xstat.
  1798.  
  1799. Mon Jun 25 18:07:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1800.  
  1801.     * ls.c (print_long_format): Truncate user and group names to 8
  1802.     chars to preserve column alignment.
  1803.     (length_of_file_name_and_frills): Don't assume type indicator
  1804.     will be printed for unknown file types that some os's have.
  1805.  
  1806.     * install.c: Declare getgrnam for systems where grp.h doesn't.
  1807.  
  1808. Sat Jun 23 00:06:35 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1809.  
  1810.     * Version 1.3.
  1811.  
  1812.     * du.c (count_entry) [HPUX_NFS_BUG]: If the size of the file
  1813.     according to the number of blocks reported is twice or more than
  1814.     the size of the file according to the number of bytes
  1815.     reported, halve the number of blocks.
  1816.  
  1817. Fri Jun 22 00:38:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1818.  
  1819.     * cp.c (copy_dir): Initialize 'ret' to 0.
  1820.  
  1821.     * cp.c (main), ln.c (main), mv.c (main), rm.c (main):
  1822.     Make -i override -f and -o, to be conservative about
  1823.     removing peoples' files.
  1824.  
  1825.     * mkdir.c (make_path), mkfifo.c (make_path): Don't try to stat
  1826.     "" or "/".
  1827.  
  1828.     * rm.c, rmdir.c, mkdir.c, mkfifo.c: Move code to remove
  1829.     slashes at the end of an arg from main to
  1830.     strip_trailing_slashes.
  1831.  
  1832.     * install.c (strip): Print error message if the `strip'
  1833.     program can't be run.
  1834.  
  1835.     * system.h (convert_blocks): Macro moved from du.c and ls.c.
  1836.     Take a second parameter indicating whether to convert to
  1837.     kilobytes or 512 byte blocks.
  1838.     * ls.c, du.c: Pass second parameter to convert_blocks.
  1839.  
  1840. Thu Jun 21 01:19:28 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1841.  
  1842.     * ls.c (print_long_format): Use mode_string instead of filemodestring.
  1843.  
  1844.     * ls.c (print_long_format): Compare times as longs, not ints.
  1845.     (longdiff): Macro to compare two longs efficiently if sizeof
  1846.     int == sizeof long and less efficiently but correctly if they
  1847.     are different sizes.
  1848.     (compare_ctime, etc.): Use longdiff.
  1849.  
  1850.     * ls.c (decode_switches): Make -k not imply -s, to allow the
  1851.     summary directory size printed by -l to be in 1k blocks
  1852.     without having the size of each file printed as well.
  1853.     (convert_blocks): Provide for systems with a blocksize that is
  1854.     other than 512 or 1024 bytes.
  1855.  
  1856.     * du.c (main): Exit with status 0 normally.
  1857.     (convert_blocks): Provide for systems with a blocksize that is
  1858.     other than 512 or 1024 bytes.
  1859.  
  1860. Wed Jun 20 01:46:09 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1861.  
  1862.     * ln.c (do_link): Take out code to give an error if source and
  1863.     dest are the same file.  The dubious usefulness of the special
  1864.     case to prevent 'ln x x' from removing 'x' (ln -i can be used
  1865.     instead) is not worth preventing 'ln x y' from failing the
  1866.     second time in a row, and appears to contradict POSIX anyway.
  1867.  
  1868. Mon Jun 18 02:48:17 1990  David J. MacKenzie  (djm at apple-gunkies)
  1869.  
  1870.     * ls.c (print_file_name_and_frills):
  1871.     (length_of_file_name_and_frills, print_long_format):
  1872.     Allow 6 digits for i-number, not 5.
  1873.  
  1874. Sun Jun 17 00:09:23 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1875.  
  1876.     * install.c (install_dir): Don't check whether "" or the root
  1877.     directory exists (the former fails on some systems).
  1878.  
  1879.     * system.h: Make inclusion of sys/file.h conditional on USG
  1880.     and _POSIX_SOURCE, not DIRENT.
  1881.  
  1882.     * chmod.c (change_dir_mode): Use xrealloc instead of free and
  1883.     xmalloc in case malloc already left extra room.
  1884.     (xrealloc): New function.
  1885.  
  1886.     * rm.c (clear_directory): Prevent buffer overruns.
  1887.     More efficient string handling.  Don't skip rest of directory
  1888.     if continuing after finding circular inode.
  1889.     (xrealloc): New function.
  1890.  
  1891. Sat Jun 16 01:45:42 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1892.  
  1893.     * argmatch.c (invalid_arg): Change order in which the items
  1894.     are printed.
  1895.  
  1896.     * ls.c: Add +tabsize (-T) option.
  1897.  
  1898. Fri Jun 15 23:40:55 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1899.  
  1900.     * dd.c (scanargs): For ibs and obs, set C_HARDWAY.
  1901.     (copy): Use different buffers only if C_HARDWAY, not if
  1902.     blocksizes are the same, to ensure constant output block sizes.
  1903.  
  1904. Wed Jun 13 23:56:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1905.  
  1906.     * savedir.c: New file from code in chmod.c, modified to
  1907.     prevent buffer overruns.
  1908.     * chmod.c (change_dir_mode), cp.c (copy_dir), du.c
  1909.     (count_entry): Use savedir.
  1910.  
  1911. Thu Jun  7 03:52:02 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1912.  
  1913.     * system.h (ST_BLKSIZE) [!STBLOCKS_MISSING]: If st_blksize is
  1914.     0 (as on pipe reads on some systems), use BSIZE instead.
  1915.     Define BSIZE as DEV_BSIZE if necessary.
  1916.  
  1917.     * Makefile, system.h, fileblocks.c: Use STBLOCKS_MISSING to
  1918.     control whether st_blksize and st_blocks are used.
  1919.     * Makefile, system.h, backupfile.c: Use DIRENT to control
  1920.     whether <dirent.h> is used.
  1921.  
  1922. Thu May 31 00:55:36 1990  David J. MacKenzie  (djm at apple-gunkies)
  1923.  
  1924.     * fileblocks.c: New file.
  1925.     * du.c (blocks_to_kb): Replace with convert_blocks macro.
  1926.     (main): Recognize new -k option.
  1927.     (usage): Document it.
  1928.     * ls.c (nblocks): Replace with convert_blocks macro.
  1929.     * system.h (ST_BLKSIZE) [USG]: Use BSIZE from sys/param.h instead of
  1930.     having the user define BLKSIZE.
  1931.     (ST_NBLOCKS) [USG]: Use st_blocks from fileblocks.c.
  1932.  
  1933. Wed May 23 00:40:39 1990  David J. MacKenzie  (djm at apple-gunkies)
  1934.  
  1935.     * argmatch.c: New file, taken from ls.c.
  1936.     * getversion.c (get_version): Use argmatch, to allow
  1937.     abbreviations.  Default backup type is existing_numbered.
  1938.     * mv.c (main), ln.c (main), cp.c (main): Only make backups if
  1939.     -b (+backup) is given.  If envar SIMPLE_BACKUP_SUFFIX is set,
  1940.     use it as a default instead of `~'.
  1941.     * mv.c (usage), ln.c (usage), cp-aux.c (usage): Update messages.
  1942.  
  1943. Tue May 22 00:56:51 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1944.  
  1945.     * install.c: New file (from ../bin-src).
  1946.  
  1947.     * dd.c (copy): Don't count completely failed writes as partial
  1948.     writes.  Make buffers unsigned.  If blocking or unblocking,
  1949.     pad final partial buffer if necessary.
  1950.  
  1951.     * getversion.c: New file.
  1952.     * mv.c (main), cp.c (main), ln.c (main): Control backup types
  1953.     with getenv ("VERSION_CONTROL") and +version-control or -V.
  1954.  
  1955.     * cp.c (yesno), mv.c (yesno), ln.c (yesno): Stop reading if
  1956.     EOF reached as well as at newline.
  1957.  
  1958.     * backupfile.[ch]: Rename var `version_control' to `backup_type'.
  1959.  
  1960. Sat May 19 23:38:46 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1961.  
  1962.     * touch.c: Change some error messages.  Include "getopt.h".
  1963.  
  1964. Sat May 19 00:16:50 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1965.  
  1966.     * mv.c (main), ln.c (main), cp.c (main): Revise
  1967.     backup-creation options.
  1968.     * mv.c (usage), ln.c (usage), cp-aux.c (usage): Revise messages.
  1969.  
  1970.     * chmod.c (describe_change): Use mode_string instead of
  1971.     filemodestring.
  1972.  
  1973.     * cp.c (main): Recognize new options for making backups.
  1974.     * cp.c (copy): Make backups if requested.  Fix typo.
  1975.     * cp-aux.c (usage): Update message.
  1976.  
  1977.     * mv.c, cp.c: Remove code to conditionally use utimes instead
  1978.     of utime, since the extra resolution of utimes was not being
  1979.     used, the emulation overhead is probably insignificant,
  1980.     and utime is a standard function.
  1981.  
  1982.     * cp-hash.c: Fix up comments.
  1983.  
  1984. Fri May 18 23:06:23 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1985.  
  1986.     * mv.c (do_move): Only make backup if dest file exists.
  1987.     Don't continue moving file if dest can't be backed up.
  1988.     * ln.c (do_link): Don't try to unlink dest if it was backed up.
  1989.     Don't continue moving file if dest can't be backed up.
  1990.  
  1991.     * system.h: Make SIGTYPE default to void if not defined.
  1992.  
  1993.     * modechange.[ch]: Rename struct and external functions to start
  1994.     with 'mode_'.
  1995.     * modechange.c (oatoi): Make static.
  1996.     (mode_compile): Take an additional arg indicating which
  1997.     symbolic operators should be affected by the umask.
  1998.     * modechange.h: Add defines for mode_compile arg mask.
  1999.     If __STDC__, use prototypes.
  2000.     * chmod.c, mkdir.c, mkfifo.c, create.c: Account for above changes.
  2001.  
  2002. Tue May 15 16:17:34 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2003.  
  2004.     * dd.c (copy): Quit with nonzero status if final write fails.
  2005.  
  2006. Mon May 14 14:34:10 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2007.  
  2008.     * dd.c: Make translation tables unsigned.
  2009.     (main): Give `input_file' and `output_file' nonzero values for
  2010.     stdin and stdout.
  2011.     (parse_conversion): Set new global vars 'space_character' and
  2012.     'newline_character' to correct values when translating to EBCDIC
  2013.     (either flavor).
  2014.     (copy): Use 'space_character' and 'newline_character' instead
  2015.     of hardcoded ASCII values.  Ignore attempts to seek on output pipe,
  2016.     socket, or fifo.  If possible, seek instead of reading to skip
  2017.     initial input records.  Sync with `space_character' instead of
  2018.     nulls, for POSIX.
  2019.  
  2020.     * cp.c (copy_reg): Compare lseek values as longs, not ints.
  2021.  
  2022. Sat May 12 01:16:42 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2023.  
  2024.     * cp-hash (remember_created): Return error status instead of
  2025.     fatal error.
  2026.     * cp.c (copy): Change caller.
  2027.     (do_copy, copy_reg): Return error status instead of fatal error.
  2028.  
  2029.     * Move rename emulation from mv.c to dirlib.c so other
  2030.     programs can use it.
  2031.     * mv.c, ln.c (main): Recognize new options for making backups.
  2032.     * mv.c (do_move), ln.c (do_link): Make backups if requested.
  2033.     * mv.c, ln.c (usage): Update message.
  2034.     * backupfile.c, backupfile.h: New files.
  2035.  
  2036.     * cp.h: Ifdef out decl of umask because of SunOS 4.1 (POSIX) conflict.
  2037.  
  2038.     * Define all `main' functions as returning void.
  2039.  
  2040. Fri May 11 02:11:03 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2041.  
  2042.     * ln.c, mv.c, rm.c, rmdir.c, create.c, chmod.c: Change some
  2043.     error messages.
  2044.  
  2045.     * du.c, cp-aux.c (error): Function removed.
  2046.     Change callers to use error.c version.
  2047.     * cp.c (copy, do_copy, copy_dir): Return an error status.
  2048.     * ls.c (error, fatal, perror_with_name): Functions removed.
  2049.     Change callers to use error.c.
  2050.  
  2051. Sat May  5 23:46:48 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2052.  
  2053.     * ln.c (do_link): Don't allow trying to link a file to itself,
  2054.     because the source file would be removed if they are the same
  2055.     directory entry, and also for consistency with mv and cp.
  2056.  
  2057. Fri May  4 13:42:53 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2058.  
  2059.     * cp.c (copy_reg): Only write a null to the end of the file if
  2060.     the end of the file was sparse.
  2061.  
  2062.     * ls.c (print_name_with_quoting): Make the char to print
  2063.     unsigned to prevent sign extension problems with -b.
  2064.  
  2065. Fri Apr 20 13:52:15 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2066.  
  2067.     * Version 1.2 released.
  2068.  
  2069. Wed Apr 18 14:36:15 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2070.  
  2071.     * Makefile: Use chsize for ftruncate on Xenix.
  2072.  
  2073.     * cp.c (copy): Remove broken code that attempted to
  2074.     substitute for ftruncate on systems missing it.
  2075.  
  2076. Mon Apr 16 13:58:01 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2077.  
  2078.     * cp-aux.c (usage): Fix mistake in message.
  2079.  
  2080.     * Version 1.1 released.
  2081.  
  2082. Sat Apr 14 17:23:11 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2083.  
  2084.     * ls.c (main): Don't remove leading path from program_name.
  2085.     (basename): Function removed.
  2086.     (length_of_file_name_and_frills): Don't add 1 for type indicator
  2087.     for block and character special files.
  2088.  
  2089. Thu Apr 12 19:50:15 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2090.  
  2091.     * Makefile: Suggest using -DBLKSIZE=512 instead of 1024 for USG.
  2092.  
  2093.     * dd.c (copy): Print copying statistics when exiting because
  2094.     of a read or seek error.
  2095.     (interrupt_handler): New function.
  2096.     (main): Trap SIGINT to run interrupt_handler, for POSIX.
  2097.  
  2098. Tue Apr 10 01:09:38 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2099.  
  2100.     * chmod.c (change_file_mode): Don't change the mode of
  2101.     symbolic links.
  2102.  
  2103. Mon Apr  9 13:30:00 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2104.  
  2105.     * modechange.c (compile_mode): Return an error if an octal
  2106.     number argument is too large.
  2107.  
  2108. Sun Apr  8 20:33:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2109.  
  2110.     * dd.c: Use `error' instead of `fatal' and `pfatal_with_name',
  2111.     for greater control of the message format.
  2112.     * head.c, tail.c: Use `error' instead of `fatal_perror' and
  2113.     `nonfatal_perror'.  Remove some unnecessary info from messages.
  2114.     * chmod.c, create.c, ln.c, mkdir.c, mkfifo.c, mv.c, mv_dir.c,
  2115.     rm.c, rmdir.c: Remove definition of `error'.
  2116.     * error.c: New file created from code in mv.c.
  2117.     * Makefile: Link the above programs with error.o.
  2118.  
  2119.     * ln.c (do_link): Use eaccess_stat to determine writability.
  2120.     * mv.c (do_move): Ditto.
  2121.     * rm.c (remove_file): Ditto.
  2122.     (remove_dir): Use eaccess_stat to determine readability and
  2123.     searchability.  Move initial interactive query here from
  2124.     clear_directory.
  2125.     * Makefile: Link ln, mv, and rm with eaccess.o.
  2126.  
  2127. Sat Apr  7 11:47:52 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2128.  
  2129.     * Makefile: Link cp with eaccess.o.
  2130.     * eaccess.c: New file adapted from code in cp.c and cp-aux.c.
  2131.     * cp.c (copy): Use eaccess_stat to determine writability.
  2132.     Consider a file unwritable by root if it has no permissions.
  2133.     (main): Remove groups initialization code.
  2134.     * cp-aux.c (member): Function deleted.
  2135.  
  2136.     * cp.c (copy): Temporarily change the mode of directories if
  2137.     necessary to overwrite them when running recursively.
  2138.     Consider a directory to be non-overwritable if it lacks write
  2139.     permission as well as if it lacks execute permission.
  2140.  
  2141.     * rm.c, mv.c, mv_dir.c, chmod.c, create.c, ln.c: Remove some
  2142.     irrelevant or redundant information from error messages.
  2143.  
  2144. Fri Apr  6 15:20:45 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2145.  
  2146.     * cp.c (copy): Only change mode of regular files and directories;
  2147.     others are already correct.
  2148.  
  2149. Thu Apr  5 04:31:56 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2150.  
  2151.     * dd.c: Remove the vars that are set by command line options
  2152.     from a useless struct and give them more meaningful names.
  2153.  
  2154. Mon Apr  2 02:58:34 1990  David J. MacKenzie  (djm at spike.ai.mit.edu)
  2155.  
  2156.     * cp.c (main): Use NGROUPS from sys/param.h to determine
  2157.     whether BSD multiple groups are supported and how large to
  2158.     make the array.
  2159.     * Makefile: Remove references to GETGROUPS_MISSING.
  2160.  
  2161. Sun Apr  1 18:53:57 1990  David J. MacKenzie  (djm at spike.ai.mit.edu)
  2162.  
  2163.     * cp.c (main): Always initialize group info.
  2164.  
  2165. Sat Mar 31 22:29:57 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2166.  
  2167.     * mv.c [RENAME_MISSING] (rename): To rename directories, run
  2168.     setuid root mv_dir program.
  2169.  
  2170. Tue Mar 20 14:28:25 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  2171.  
  2172.     * touch.c: Remove POSIX_COMPAT ifdef since there is no reason
  2173.     to disable the GNU extensions.
  2174.     (main): Set new global var `program_name'.
  2175.     (error): Replace with more versatile version.
  2176.     Global: Change calls to fprintf and error to use the new error.
  2177.     (main): Initialize global variables.  Don't bother making
  2178.     temporary copy of arg to -d.  Don't ignore any files named on
  2179.     the command line if -i is given.
  2180.     (usage): Don't take an arg.  Use `program_name' instead of
  2181.     hardcoded name.
  2182.     (touch): In utime emulation for BSD, ftruncate the file to its
  2183.     original size so empty files stay empty after being touched.
  2184.  
  2185. Sun Mar 18 01:02:39 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2186.  
  2187.     * ln.c (strip_trailing_slashes): New function.
  2188.     (main, do_link): Call it.
  2189.  
  2190.     * cp-aux.c (strip_trailing_slashes): New function.
  2191.     * cp.c (do_copy): Call it.
  2192.     * cp.h: Declare it.
  2193.  
  2194.     * mv.c (strip_trailing_slashes): New function.
  2195.     (main, movefile): Call it.
  2196.  
  2197. Sat Mar 17 21:45:35 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2198.  
  2199.     * cp-aux.c, cp.h: Rename user_confirm_overwriting to yesno and
  2200.     don't have it print a prompt, so it can be used in several
  2201.     places.
  2202.  
  2203.     * cp.c (do_copy): Change an error message to resemble mv's.
  2204.     Remove all trailing slashes from all non-option args.
  2205.     (main): Set new global var `stdin_not_tty'.
  2206.     (copy): Use POSIX method of handling file overwriting and
  2207.     prompting.
  2208.  
  2209.     * dirlib.c (mkdir): Use chmod to set the directory mode after
  2210.     successful creation, so set[ug]id and sticky bits are set
  2211.     correctly.
  2212.  
  2213. Thu Mar 15 12:33:23 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2214.  
  2215.     * Makefile: Add commented out definitions for SCO Xenix.
  2216.  
  2217.     * ls.c (print_type_indicator): Don't print a '*' next to
  2218.     executable block or character special files.
  2219.  
  2220.     * chmod.c (error): New function, replacing nonfatal_perror,
  2221.     memory_out, and invalid_mode.
  2222.     Global: Call error instead of the above functions.
  2223.     (change_dir_mode): Make the new size of the path twice the
  2224.     size of the name that was too long, rather than twice its old
  2225.     size.
  2226.  
  2227.     * rm.c: Move interactive query about whether to remove a
  2228.     directory from remove_dir to clear_directory; only query for
  2229.     directories that are not empty.
  2230.  
  2231. Wed Mar 14 10:48:40 1990  David J. MacKenzie  (djm at rice-chex)
  2232.  
  2233.     * system.h [USG]: Define X_OK.
  2234.  
  2235.     * rm.c (main): Set new global var `stdin_not_tty'.
  2236.     (rm): Most of code moved to two new functions, remove_file and
  2237.     remove_dir.
  2238.     (remove_file): Use POSIX method of determining whether to remove
  2239.     non-directories.
  2240.     (remove_dir): Use POSIX method of determining whether to
  2241.     remove directories, almost.
  2242.     (perror_with_name): Function removed.
  2243.     (error): Simple version replaced with more powerful version.
  2244.     Global: Change calls to fprintf, perror_with_name, and old
  2245.     error to calls to new error.
  2246.  
  2247.     * ln.c (main): Set new global var `stdin_not_tty'.
  2248.     If force, turn off interactive.
  2249.     (do_link): By default, don't allow hard links to symbolic links to
  2250.     directories.  Use POSIX method of determining whether to
  2251.     overwrite destination.
  2252.     (yesno): Function renamed from confirm, and arg removed.
  2253.     (lisdir): Function removed.
  2254.  
  2255.     * mv.c (main): Set new global var `stdin_not_tty'.
  2256.     (yesno): Function renamed from yes.
  2257.     (do_move): Use POSIX method of determining whether to
  2258.     overwrite destination.
  2259.  
  2260.     * Makefile: Make executables depend on .o files, not .c files,
  2261.     to allow for parallel compilation.
  2262.  
  2263. Tue Mar 13 00:50:14 1990  David J. MacKenzie  (djm at rice-chex)
  2264.  
  2265.     * rm.c (main): Disallow removal of paths that have '..' as the
  2266.     final element.
  2267.     (basename): New function.
  2268.  
  2269.     * ls.c (print_type_indicator): Mark FIFOs with '|' and sockets
  2270.     with '='.
  2271.     (print_long_format): Print numbers as unsigned and add extra
  2272.     space for POSIX flag.
  2273.  
  2274.     * dd.c: Make the record counts unsigned.
  2275.     (quit): Print them as unsigned.
  2276.  
  2277.     * modechange.c (compile_mode): Only get umask value when needed.
  2278.     If users are not given or are `a', affect set?id and sticky bits.
  2279.     If memory is exhausted while allocating a new list element,
  2280.     free the old elements before returning.
  2281.  
  2282.     * Makefile (CC): Add comment noting that either fixincludes or
  2283.     -traditional needs to be used for gcc to compile ioctl calls
  2284.     correctly.
  2285.  
  2286. Mon Mar 12 16:25:23 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  2287.  
  2288.     * touch.c [UTIME_OF_NULL_MISSING]: Call lseek() before write().
  2289.  
  2290.     * posixtime.y [__GNUC__]: Use __builtin_alloca.
  2291.  
  2292. Fri Mar  9 10:25:09 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2293.  
  2294.     * chmod.c (main): Recognize "a,+-=" as valid options.
  2295.  
  2296.     * mv.c: Move the code to copy files across filesystems from
  2297.     do_move to a new function, copy, which will eventually be
  2298.     replaced with modules from cp and rm (POSIX requires mv to
  2299.     move directories recursively across filesystems).
  2300.     (do_move): Don't query about overriding a mode that prohibits
  2301.     writing if interactive.  Remove unneeded variable.
  2302.     (copy): Unlink target if copy fails partway through.
  2303.  
  2304. Thu Mar  8 10:56:16 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2305.  
  2306.     * cp.c (copy): Don't remove a destination file of a different
  2307.     type unless +force is given.
  2308.  
  2309.     * ls.c (decode_switches, usage): Add -U (for "unsorted") as an
  2310.     equivalent to +sort=none.
  2311.  
  2312. Mon Mar  5 16:31:14 1990  Torbj|rn Granlund  (tege at echnaton)
  2313.  
  2314.     * cp.c (copy): Test for temporarily modified permission mode
  2315.       after the other test, so that `-p' work for files whose mode
  2316.       needed a temporary mode change.
  2317.     * cp.c (copy): Don't waste time calling unlink if we already
  2318.       know that the destination doesn't exists.
  2319.     * cp.c (comment before do_copy): Correct.
  2320.     * cp.c (comment before copy): Describe all params.
  2321.     * cp.c (copy): Only change permission mode for regular files
  2322.       and directories.
  2323.     * cp.c (copy): Unlink the destination file if its type is
  2324.       different from the source.  If the destination is a
  2325.       directory,  error.
  2326.  
  2327. Mon Mar  5 00:34:36 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2328.  
  2329.     * chmod.c (nonfatal_perror): Don't check for force_silent.
  2330.     (change_file_mode, change_dir_mode): If force_silent, don't
  2331.     print error messages.
  2332.  
  2333.     * mv.c (main): If force, turn off interactive.
  2334.     (do_move): Simplify check for query.  Rename `stb' to
  2335.     `to_stats' and `stbf' to `from_stats'.
  2336.     Return error condition if original file could not be renamed or
  2337.     unlinked.
  2338.  
  2339.     * rm.c: Rename global `force_flag' to `ignore_errors' and change its
  2340.     meaning so that it does not overlap with `override_mode'.
  2341.     (main): Have -f +force set override_mode.  If override_mode is
  2342.     set, turn off interactive.
  2343.     (rm): Simplify checks for whether to query the user, based on
  2344.     the new relationship between override_mode and interactive.
  2345.  
  2346. Sun Mar  4 23:39:03 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2347.  
  2348.     * ln.c (main): Reword an error message to be more like mv's.
  2349.  
  2350.     * rmdir.c: Move global `errors' into main instead of having
  2351.     error set it.
  2352.  
  2353.     * mkdir.c: Move global `errors' into main and have make_path
  2354.     return an error status instead of having error set it.
  2355.  
  2356.     * chmod.c: Move global `errors' into main and have
  2357.     change_file_mode and change_dir_mode return an error status
  2358.     instead of setting it in nonfatal_perror.
  2359.  
  2360. Sat Mar  3 13:59:40 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2361.  
  2362.     * ln.c (main): Don't strip leading dirs from argv[0].
  2363.  
  2364.     * ln.c (confirm), mv.c (yes, do_move),
  2365.     cp-aux.c (user_confirm_overwriting), rm.c (rm, yesno, check_stack):
  2366.     Print query messages to stderr instead of stdout, for POSIX.
  2367.     Include program name in messages.
  2368.  
  2369. Sat Mar  3 11:27:27 1990  Torbj|rn Granlund  (tege at echnaton)
  2370.  
  2371.     * cp.c (copy): Don't unlink directories with flag_force
  2372.       (`-f').  Also avoid using force when not necessary.
  2373.       Always copy fifo's and symbolic links as themselves.
  2374.  
  2375.     * cp.c (copy_reg): Make int scan first, char scan then, to
  2376.       find first non-zero byte.  This to avoid false hole
  2377.       creation.
  2378.  
  2379. Sat Mar  3 10:22:28 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2380.  
  2381.     * mv.c: Rename `pgm' to `program_name'.  Move global `errors'
  2382.     into main.  Have do_move and movefile return an error status
  2383.     instead having error set it.  Remove global vars `args'
  2384.     and `args_left'.
  2385.     (main): Rename `ac' and `av' to `argc' and `argv' and use them
  2386.     and `optind' instead of `args' and `args_left'.
  2387.  
  2388.     * cp.c (copy): Don't ignore errors other than EPERM from chown.
  2389.  
  2390. Fri Mar  2 16:20:57 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2391.  
  2392.     * rm.c (main, usage): Allow -R as a synonym for -r, for POSIX.
  2393.  
  2394.     * cp.c (copy): If flag_preserve, preserve the owner and group
  2395.     if possible, as well as mode.
  2396.     (main): Allow -R as a synonym for -r option, for POSIX.
  2397.     * cp-aux.c (usage): Mention -R.
  2398.  
  2399. Tue Feb 27 11:49:04 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2400.  
  2401.     * cp.c (copy): If not recursive, copy special files and
  2402.     symlinks like regular files and omit fifos.
  2403.  
  2404. Mon Feb 26 19:55:24 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  2405.  
  2406.     * ls.c (print_long_format): If time is in the future, print the year.
  2407.     Make the cutoff for old files 6 months not 300 days.
  2408.  
  2409. Mon Feb 26 13:31:07 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  2410.  
  2411.     * touch.c, Makefile: Use getdate.y instead of unctime.y.
  2412.  
  2413.     * touch.c: Remove posixtime.
  2414.     (main): Check for error from posixtime.
  2415.     posixtime.y: New file.
  2416.  
  2417.     * touch.c: Change a few cryptic error messages.
  2418.     Include <errno.h> not <sys/errno.h>.
  2419.     (just_set_amtime): New variable.
  2420.     (touch): Add if (just_set_amtime) code.
  2421.  
  2422. Mon Feb 26 15:03:29 1990  Torbj|rn Granlund  (tege at echnaton)
  2423.  
  2424.     * cp.c (copy): Test for recursive copy in DIR alternative in
  2425.       the switch statement, so all file types are copied correctly
  2426.       even in a non-recursive copy.
  2427.     * cp.c (copy): Return after having created a symlink, since
  2428.       chmod and utimes dereference, and would affect the symlink
  2429.       target.  Remove test for symlinks after switch.
  2430.  
  2431. Sun Feb 25 18:31:09 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2432.  
  2433.     * Makefile: Compile ls after vdir so systems with a cc that
  2434.     can't do -c -o don't have to compile ls.c twice for ls.
  2435.  
  2436.     * dd.c (usage): Add braces around alternatives.
  2437.  
  2438.     * ls.c (print_long_format): Always print the group, for POSIX.
  2439.     (decode_switches): Make -g option a no-op for BSD users.
  2440.     (usage): Remove +group option.
  2441.  
  2442. Wed Feb 21 11:13:26 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2443.  
  2444.     * ln.c (error): New function.
  2445.     (main, do_link): Call error instead of fprintf and exit.
  2446.     (main): Recognize new -d +directory option to allow superuser to
  2447.     make hard links to dirs, like the BSD ln -f option.
  2448.     (do_link): Don't allow hard links to dirs (they are hard to
  2449.     get rid of -- rmdir and unlink don't do it), unless -d was given.
  2450.     (usage): Mention -d +directory option.
  2451.  
  2452.     * rmdir.c (main): Remove trailing slashes from args (added by
  2453.     shell file completion but the rmdir syscall can't handle them).
  2454.     * mkdir.c (main): Remove trailing slashes from args, for
  2455.     uniformity with rmdir (you can't do file completion on dirs
  2456.     that haven't been made yet . . .).
  2457.  
  2458.     * mv.c: Rename global var `nargs' to `args_left' to avoid
  2459.     conflict with undocumented BSD libc function (the new name is
  2460.     clearer, anyway).
  2461.  
  2462. Tue Feb 20 17:09:19 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2463.  
  2464.     * dd.c: Use new global var `program_name' in error messages
  2465.     instead of hardcoded "dd".
  2466.     (main): Set program_name from argv[0].
  2467.  
  2468.     * chmod.c, head.c, tail.c (main): Don't strip leading dirs
  2469.     from argv[0].
  2470.     (basename): Function removed.
  2471.  
  2472.     * rm.c (main): Don't strip leading dirs from argv[0].
  2473.  
  2474. Mon Feb 19 14:34:18 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2475.  
  2476.     * rm.c (main): Strip trailing slashes from each arg.
  2477.  
  2478. Thu Feb 15 13:23:52 1990  David J. MacKenzie  (djm at rice-chex)
  2479.  
  2480.     * Makefile [HPUX CFLAGS]: Add -DUTIMES_MISSING.
  2481.  
  2482. Wed Feb 14 15:01:18 1990  David J. MacKenzie  (djm at rice-chex)
  2483.  
  2484.     * Makefile (dist): Don't make a non-compressed tar file.
  2485.  
  2486.     * mv.c (do_move): Refuse to copy non-regular files across filesystems.
  2487.  
  2488. Tue Feb 13 15:06:18 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  2489.  
  2490.     * touch.c (getname): New function.
  2491.     (main): Use it.
  2492.  
  2493. Mon Feb 12 11:30:45 1990  David J. MacKenzie  (djm at rice-chex)
  2494.  
  2495.     * ln.c (do_link): Check error return from unlink.
  2496.     Include errno.h.
  2497.  
  2498.     * du.c (main): Check error return from stat.
  2499.     (str_copyc, str_concatc): Don't return a value, since it is
  2500.     ignored.
  2501.  
  2502.     * cp.c (copy): Check error return from unlink and chmod.  Fix
  2503.     typo in call to error.
  2504.  
  2505.     * mv.c (do_move): Check error return of fchmod/chmod and utime[s].
  2506.     (rename): Check error return of unlink.
  2507.  
  2508.     * Makefile Definitions of preprocessor macros moved from
  2509.     cp.c and mv.c.  HAVE_FTRUNCATE changed to FTRUNCATE_MISSING.
  2510.     * Makefile, dirlib.c: NEED_MKDIR changed to MKDIR_MISSING.
  2511.     * mv.c, cp.c: Change USG ifdefs to UTIMES_MISSING.
  2512.  
  2513. Sun Feb 11 17:50:29 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2514.  
  2515.     * chmod.c (usage): Add yet another ellipsis.
  2516.  
  2517. Sun Feb 11 16:41:30 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  2518.  
  2519.     * cp.c (copy_reg): Use HAVE_FTRUNCATE to decide whether to
  2520.     use ftruncate().
  2521.     (main): Use GETGROUPS_MISSING to decide whether to use getgroups().
  2522.     [hpux || !USG]: Define HAVE_FTRUNCATE.
  2523.     [USG && !hpux]: Define GETGROUPS_MISSING.
  2524.     mv.c (rename): Put in #ifdef RENAME_MISSING not #ifdef USG.
  2525.     (do_move): Use FCHMOD_MISSING to decide whether to use fchmod().
  2526.     [USG && !hpux]: Define FCHMOD_MISSING and RENAME_MISSING.
  2527.  
  2528. Fri Feb  9 10:25:03 1990  David J. MacKenzie  (djm at rice-chex)
  2529.  
  2530.     * mv.c (movefile): Remove trailing slashes from FROM (some
  2531.     filename completion systems add them for dirs, and they cause
  2532.     the rename syscall to fail).
  2533.  
  2534. Thu Feb  8 22:50:12 1990  Torbj|rn Granlund  (tege at sics.se)
  2535.  
  2536.     * cp.c (copy_reg): Change error handling after lseek, since
  2537.       this is a fatal error.  Also change error message to
  2538.       something more generally understood.
  2539.     * Handle files that end in a zero block on USG systems.
  2540.  
  2541.     * cp-aux.c (error): Use FATAL to recog fatal errs.
  2542.  
  2543. Thu Feb  8 21:25:40 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2544.  
  2545.     * ln.c: Remove incorrect comment.
  2546.  
  2547.     * cp.c, cp-aux.c (usage): Change +dereference option to
  2548.     +no-dereference, since dereferencing is done by default and
  2549.     the option turns it off.
  2550.  
  2551. Mon Feb  5 17:29:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  2552.  
  2553.     * Version 1.0 released.
  2554.  
  2555. Local Variables:
  2556. mode: indented-text
  2557. left-margin: 8
  2558. version-control: never
  2559. End:
  2560.