- Test m_pkthdr.fw_flags against DUMMYNET_MBUF_TAGGED before trying to locate
[dragonfly/netmp.git] / contrib / cpio / ChangeLog
blobeaf14a9f8dfa62ee3015f61c46292aad5b279a1e
1 Tue Jan 16 19:03:05 1996  John Oleynick  (juo@wombat.gnu.ai.mit.edu)
2         * util.c: An I/O error reading a file would cause the last byte
3         of the next file to be corrupted in the archive.  Thanks to a
4         buggy NT NFS server for pointing out this problem.
5         * Version 2.4.2 released.
7 Tue Jan  9 23:19:37 1996  John Oleynick  (juo@wombat.gnu.ai.mit.edu)
8         * copyout.c: missed 1 part of last bug fix.
10 Mon Jan  8 16:49:01 1996  John Oleynick  (juo@wombat.gnu.ai.mit.edu)
11         * copyout.c, copypass.c: Use result of readlink() as length
12         of link name instead of size from lstat().  On some OS's lstat() 
13         doesn't return the true length in size.  Bug reported by
14         Robert Joop (rj@rainbow.IN-berlin.DE).
16 Wed Dec 20 10:52:56 1995  John Oleynick  (juo@wombat.gnu.ai.mit.edu)
17         * rmt.c:  Added temporary kludge so make rmt will work on Linux.
18         * configure.in:  Only define HAVE_UTIME_H if utime.h declares
19         struct utimbuf.
20         * Makefile.in:  Change prefix, exec_prefix and bindir to get their
21         values from configure.  Added cpio.info to DISTFILES.
22         * cpio.texi:  Added INFO-DIR-ENTRY.
23         * Version 2.4.1 released.
25 Wed Nov 22 19:37:05 1995  John Oleynick  (juo@wombat.gnu.ai.mit.edu)
26         * cpio.texi:  Updated release date and FSF's address.
27         * NEWS: Listed major new features for 2.4.
28         * mt.c, mt.1: Added seek and fsfm commands.
29         * Version 2.4 released.
31 Tue Jun 27 19:14:27 1995  John Oleynick  (juo@wombat.gnu.ai.mit.edu)
32         * configure.in: fixed for new autoconf.  Added check to make
33         sure fnmatch() works.
34         * Makefile.in: changed realclean to maintainer-clean.  Added
35         support to handle fnmatch separate from other LIBOBJS.
36         * cpio.texi:  More changes for 2.4.
38 Wed Dec 14 16:14:27 1994  John Oleynick  (juo@wombat.gnu.ai.mit.edu)
39         * copypass.h:  When given the -a option, set the access time of
40         the copy to be the access time of the original (instead of the
41         modification time of the original).  Reported by
42         karney@pppl.gov (Charles Karney).
43         * cpio.texi:  Updated with changes for 2.4.
45 Wed Nov  3 18:18:07 1994  John Oleynick  (juo@wombat.gnu.ai.mit.edu)
46         * safe-stat.h, Makefile.in:  New file used by mkdir.c.  This will go
47         away when we get the real safe-xstat.[ch]in for mkdir.c.
48         * main.c:  Don't mention [--null] twice in -p's usage message.
49         Changed --no-absolute-paths to --no-absolute-filenames.
50         * cpio.1:  Updated man page with new features.
51         * cpio.texi, texinfo.tex, Makefile.in:  Added texi documentation
52         from Robert Carleton (rbc@gnu.ai.mit.edu).
54 Mon Oct  3 00:46:30 1994  John Oleynick  (juo@wombat.gnu.ai.mit.edu)
55         * makefile.pc, system.h:  Changes to compile with Borland C++ 4.0.
57 Thu Sep 29 22:15:50 1994  John Oleynick  (juo@wombat.gnu.ai.mit.edu)
58         * makepath.c: Don't #define index if it is already #defined.
60         * mt.c:  Check for __hpux defined instead of __hpux__.  Reported
61         by ericb@lsid.hp.com (Eric Backus).
63 Thu Sep 29 11:21:31 1994  John Oleynick  (juo@wombat.gnu.ai.mit.edu)
64         * extern.h, util.c, copyout.c, copypass.c, main.c, global.c:
65         Never mind --ignore-disk-input-errors flag, we'll just always
66         do that, like tar.
68         * global.c, extern.h, main.c, copyin.c, copyout.c, copypass.c:
69         Added --quiet flag to supress printing number of blocks copied.
71         * global.c, extern.h:  If compiled with gcc, make input_bytes
72         and output_bytes `long long' instead of `long'.  We need more
73         than 32 bits to keep track of the number of bytes copied to
74         and from tape drives that hold more than 4Gbytes.
76         * util.c, copyin.c, main.c, global.c, extern.h:  Added
77         --only-verify-crc flag to read a CRC format archive and verify
78         its contents' CRCs.
80         * copyout.c:  Fixed problem with creating oldc format archives
81         on machines with 16 bit ints.  Reported by mpoole@cix.compulink.co.uk
82         (Martin Poole).
84         * mt.c: Need to open tape WR_ONLY for erase command (and probably
85         others?).  Reported by robert@hst.e.technik.uni-kl.de (Robert
86         Vogelgesan).  Accept `eject' as a synonym for `offline'.  Accept
87         `-t' as a synonym for `-f' (to be compatible with HPUX mt, which 
88         only accepts `-t').
90 Wed Sep 28 12:01:55 1994  John Oleynick  (juo@wombat.gnu.ai.mit.edu)
91         * extern.h, global.c, main.c, util.c: only write sparse files
92         when given --sparse flag.
93         * extern.h, util.c, copyout.c, copypass.c, main.c, global.c:
94         Added support for --ignore-disk-input-errors flag.
96 Wed Aug 24 12:55:38 1994  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
98         * configure.in: Replace calls to AC_REMOTE_TAPE and AC_RSH
99         with equivalent code, since those macros are going away.
101 Sun Feb 13 00:56:48 1994  John Oleynick  (juo@goldman.gnu.ai.mit.edu)
102         * extern.h, global.c, main.c, util.c:  Added code to 
103         tape_buffered_peek() to properly handle large, corrutped 
104         archives, without overrunning the allocated buffer and
105         dumping core.  Also changed the way the input and output 
106         buffers are allocated in initialize_buffers().
107         
108 Tue Jan 25 01:04:32 1994  John Oleynick  (juo@goldman.gnu.ai.mit.edu)
109         * copyin.c, copyout.c, copypass.c, extern.h, main.c, tar.c, util.c:
110         Redid i/o buffer code.  Previously, the same routines buffered input and
111         output for accessing the archive and the filesystem.  Now there are
112         separate routines for buffering input and output and for buffering the
113         archive and the filesystem.  This simplifies much of the buffer code
114         (e.g., only input from the archive has to check for end of tape and
115         allow the tape to be changed, only output to the filesystem has to
116         handle byte and word swapping, etc.; previously one routine had to
117         handle all of these special cases) This is how the routines got split
118         and renamed (old name -> new name):
120                 clear_rest_of_block -> tape_clear_rest_of_block
121                 copy_files -> copy_files_tape_to_disk
122                     "      -> copy_files_disk_to_disk
123                     "      -> copy_files_disk_to_tape
124                 copy_buf_out -> disk_buffered_write
125                     "        -> tape_buffered_write
126                 copy_in_buf -> tape_buffered_read
127                 empty_output_buffer -> tape_empty_output_buffer
128                     "               -> disk_empty_output_buffer
129                 fill_input_buffer -> tape_fill_input_buffer
130                     "             -> disk_fill_input_buffer
131                 pad_output -> tape_pad_output
132                 peek_in_buf -> tape_buffered_peek
133                 skip_padding -> tape_skip_padding
134                 toss_input -> tape_toss_input
136         * extern.h, global.c, main.c, util.c:  Added support for
137         writing sparse files.
139 Tue Dec 28 23:01:36 1993  John Oleynick  (juo@goldman.gnu.ai.mit.edu)
140         * util.c, system.h, makepath.c, extern.h: don't define chown() 
141         and don't typedef uid_t and gid_t if we are being compiled
142         by DJGPP.
144         * copyin.c, extern.h, global.c, main.c:  Added support for
145         --rename-batch-file.
146         
147         * copyin.c, copyout.c, extern.h:  Cleaned up to pass gcc -Wall.
149 Wed Dec 22 02:17:44 1993  John Oleynick  (juo@goldman.gnu.ai.mit.edu)
151         * makepath.c, copypass.c, copyin.c:  If cpio was creating a
152         directory that contained `.' in the pathname (e.g. `foo/./bar'),
153         it would complain that it could not create `.', since it already
154         exists.  From schwab@issan.informatik.uni-dortmund.de (Andreas
155         Schwab).
157         * mt.c:  Added "eject" as a synonym for "offline".
159         * util.c:  Slight modification to when we lseek with
160         BROKEN_LONG_TAPE_DRIVER (do it every 1Gb, instead 
161         of every 2Gb).
163         * copyin.c, global.c, extern.h:  Added --no-absolute-paths option, 
164         to ignore absolute paths in archives.
166 Tue Dec 21 01:30:59 1993  John Oleynick  (juo@goldman.gnu.ai.mit.edu)
168         * util.c:  Fix for copying new_media_message_after_number.  From
169         Christian.Kuehnke@arbi.informatik.uni-oldenburg.de (Christian
170         Kuehnke).
172 Thu Jul 29 20:35:57 1993  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
174         * Makefile.in (config.status): Run config.status --recheck, not
175         configure, to get the right args passed.
177 Mon Jul 19 23:01:00 1993  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
179         * Makefile.in (libdir): Use standard GNU value --
180         $(exec_prefix)/lib, not /etc.
181         (.c.o): Put CFLAGS last.
183 Thu Jul  8 19:43:39 1993  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
185         * Makefile.in: Add rules for remaking Makefile, configure,
186         config.status. 
188 Mon Jul  5 14:54:08 1993  John Oleynick  (juo@spiff.gnu.ai.mit.edu)
190         * cpio.1:  Updated man page for 2.3.
191         * Makefile.in:  Create distribution with .gz extension, instead of .z.
193 Tue Jun 29 18:54:37 1993  John Oleynick  (juo@goldman.gnu.ai.mit.edu)
195         * Makefile.in: Added installdirs target (using mkinstalldirs).
196         * Added mkinstalldirs script.
197         * main.c, mt.c:  Added --help option.  Changed usage() to
198         take a stream and exit value (so --help can print on stdout
199         and return a 0 exit status).
200         * extern.h:  Removed usage()'s prototype (it was out of date,
201         and only used in main.c).
203 Thu May  6 00:22:22 1993  John Oleynick  (juo@hal.gnu.ai.mit.edu)
205         * cpio.1:  Added hpbin and hpodc.
207 Tue May  4 00:32:29 1993  John Oleynick  (juo@hal.gnu.ai.mit.edu)
209         * copyin.c (process_copy_in), copypass.c (process_copy_pass):  When
210         deleting an existing file, if the file is a directory, use rmdir()
211         instead of unlink().
213 Thu Apr 29 14:43:56 1993  John Oleynick  (juo@goldman.gnu.ai.mit.edu)
215         * tar.c (read_in_tar_header):  Clear non-protection bits from
216         mode, in case tar has left some device bits in there.
218 Wed Apr 28 10:36:53 1993  John Oleynick  (juo@goldman.gnu.ai.mit.edu)
220         * util.c: Added code to try and work around broken tape drivers
221         that have problems with tapes > 2Gb.
223         * copyout.c (process_copy_out): Pass file_hdr to 
224         writeout_other_defers() and add_link_defer() by reference, 
225         not by value.
227         * copyin.c (process_copy_in): Pass file_hdr to defer_copyin()
228         and create_defered_links() by reference, not by value.
230         * defer.c: include <sys/types.h> (to build on BSD 4.3 on HP300)
232 Fri Apr 16 18:01:17 1993  John Oleynick  (juo@goldman.gnu.ai.mit.edu)
234         * mt.c, util.c: Include <sys/mtio.h> if HAVE_SYS_MTIO_H is 
235         defined, not HAVE_MTIO_H.
237 Wed Apr 14 17:37:46 1993  John Oleynick  (juo@goldman.gnu.ai.mit.edu)
239         * util.c: Include <sys/io/trioctl.h> if HAVE_SYS_IO_TRIOCTL_H
240         is defined.
242         * mt.c: Only include <sys/mtio.h> if HAVE_SYS_MTIO_H is defined.
244 Fri Apr  2 13:09:11 1993  John Oleynick  (juo@goldman.gnu.ai.mit.edu)
246         * configure.in: Added fnmatch to AC_REPLACE_FUNCS.  Added
247         sys/io/trioctl.h to AC_HAVE_HEADERS.
249         * Makefile.in: Removed fnmatch.o from OBJS.
251         * copyin.c: Only include "fnmatch.h" if FNM_PATHNAME isn't
252         defined yet.
254         * mt.c: Include <sys/io/trioctl.h> if HAVE_SYS_IO_TRIOCTL_H is
255         defined.
257 Mon Mar 29 17:04:06 1993  John Oleynick  (juo@hal.gnu.ai.mit.edu)
259         * Many changes for supporting HPUX Context Dependent Files;
260         also some bug fixes to fix problems with multiply (hard) linked
261         device files; minor changes to support HPUX format archives
262         (slightly broken?) System V.4 posix tar archives and HPUX
263         posix tar archives.
265         * Makefile.in: New files defer.o, defer,c and defer.h; added
266         -DSYMLINK_USES_UMASK and -DHPUX_CDF comments; changed dist rule
267         to use gzip with tar, instead of compress.
269         * copyin.c: changes for new arf_hpbinary and arf_hpascii formats;
270         HPUX CDF's; DEBUG_CPIO; fixes to properly handle multiple
271         links in newc and crc format archives (new routines defer_copyin(),
272         create_defered_links(), create_final_defers()); move most
273         multiple (hard) link code to new routines link_name() and
274         link_to_maj_min_ino(); use new macro UMASKED_SYMLINK instead of
275         symlink().
277         * copyout.c: fixes to properly handle multiple links in newc
278         and crc format archives (new routines last_link(), 
279         count_defered_links_to_dev_ino(), add_link_defer(),
280         writeout_other_defers(), writeout_final_defers(),
281         writeout_defered_file()); support for new arf_hpbinary and
282         arf_hpascii formats; support for HPUX CDF's.
284         * copypass.c: move most multiple link code to new routines
285         link_name() and link_to_maj_min_ino(); use new macro UMASKED_SYMLINK
286         instead of symlink(); support for HPUX CDF's.
288         * extern.h: added arf_hpascii and arf_hpbinary archive enum types;
289         added debug_flag.
291         * global.c: added debug_flag.
293         * main.c: added debug_flag; support for hpodc and hpbin formats.
295         * makepath.c: split from standard makpath.c to add support
296         for HPUX CDF's.
298         * mt.c: added !defined(__osf__) (from Andrew Marquis
299         <amarquis@genome.wi.mit.edu>).
301         * system.h: new macro UMASKED_SYMLINK
303         * tar.c: minor changes to read (slightly broken?) System V.4 posix 
304         tar archives and HPUX posix tar archives.
306         * util.c: HPUX CDF support (including new routines
307         add_cdf_double_slashes() and islasparentcdf()); new routine
308         umasked_symlink().
310 Sun Mar 14 23:00:14 1993  Jim Meyering  (meyering@comco.com)
312         * copypass.c (process_copy_pass): Use <=, not just <, when comparing
313         mtimes.  From Pieter Bowman <bowman@math.utah.edu>.
315 Fri Jan 15 14:35:37 1993  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
317         * copyin.c: Move include of fnmatch.h to get right FNM* macros.
319 Tue Nov 24 08:45:32 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
321         * Version 2.2.
323         * copyout.c (process_copy_out): Add parens for gcc -Wall.
324         From Jim Meyering.
326         * system.h: Use HAVE_FCNTL_H, not USG.
328         * dstring.c, mt.c, system.h: Use HAVE_STRING_H, not USG.
330 Fri Nov 20 22:47:18 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
332         * copyin.c (read_in_binary): Copy the dev and ino that are
333         already in `file_hdr' into `short_hdr'.
334         From dao@abars.att.com (David A Oshinsky).
336         * system.h [!_POSIX_VERSION]: Declare lseek as off_t, not long.
337         From Karl Berry.
339 Wed Oct 14 13:53:41 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
341         * Version 2.1.
343 Tue Oct 13 22:51:34 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
345         * main.c: Add --swap equivalent to -b.
347         * mt.c: Add f_force_local variable and -V --version option.
349 Fri Oct  2 18:42:27 1992  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
351         * main.c (long_opts, usage): Add --force-local option.
353 Thu Oct  1 23:23:43 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
355         * main.c (process_args) [__MSDOS__]: Don't call geteuid.
357         * copyin.c (read_in_{old,new}_ascii): Use `l' for sscanf into longs.
358         * copyout.c (write_out_header): Ditto for sprintf.
359         * global.c, extern.h: Make input_size and output_size long.
361 Thu Sep 10 23:39:30 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
363         * global.c, extern.h: Add new var f_force_local to work with
364         rmt.h change from tar.
366 Sun Aug 23 00:18:20 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
368         * Version 2.0.
370         * tar.c (otoa): Compute value in an unsigned long, not an int.
371         * copyout.c (write_out_header) [__MSDOS__]: Don't use dev_t.
373         * main.c (process_args): By default, don't chown for non-root users.
375 Sat Aug 22 14:17:54 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
377         * global.c, extern.h: Use uid_t and gid_t.
379         * main.c (main) [__EMX__]: Expand wildcards.
380         * system.h [__EMX__]: Alias some error names.  From Kai Uwe Rommel.
382         * extern.h [__STDC__]: Use prototypes.
384         * copyin.c (process_copy_in), copyout.c (process_copy_out),
385         copypass.c (process_copy_pass): Open all files with O_BINARY.
386         Add cast to chmod call.
387         * util.c: Add cast to bcopy calls.  Make hash_insert static.
388         From Kai Uwe Rommel.
390 Thu Aug 20 22:03:49 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
392         * util.c (peek_in_buf): Don't print "end of file" before
393         getting the next reel of medium.
395         * copyin.c (read_in_old_ascii): Allocate space for NUL terminator.
396         Print newline for dot line when done, even if appending.
398 Thu Jul 23 16:34:53 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
400         * tar.c (write_out_tar_header, read_in_tar_header)
401         [__MSDOS__]: Don't try to get user and group names.
402         * extern.h: Don't declare the functions to do it (need uid_t).
404         * main.c [__MSDOS__]: Ignore the -R option.
406         * system.h: Define makedev if defining major and minor.
408         * copyin.c, copyout.c [__MSDOS__]: setmode on archive_des, not
409         0 and 1.
411 Sat Jul 18 14:30:55 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
413         * tar.c, stripslash.c, userspec.c, cpiohdr.h, tar.h, tarhdr.h,
414         system.h: New files.
415         * Move portability stuff from various files to system.h.
416         * cpio.h: Rename header structure and members, and add
417         new structure for SVR4 format.
418         * copyin.c, copyout.c: Use the new structure internally, the
419         old one only for I/O in the old formats.
420         * copyin.c (read_in_header): Recognize the new archive formats.
421         (read_in_new_ascii, read_pattern_file, skip_padding): New functions.
422         (swab_array): Do the swapping using char pointers instead of
423         bitwise arithmetic.
424         (process_copy_in): Handle byte and halfword swapping and new formats.
425         Ok if a directory we want to make already exists, but set its perms.
426         Do chmod after chown to fix any set[ug]id bits.
427         Use `struct utimbuf' instead of a long array.
428         * copyout.c (write_out_header): Handle new formats.
429         (process_copy_out): Use `struct utimbuf'.
430         Handle appending and new formats.
431         Remove any leading `./' from filenames.
432         (read_for_checksum, clear_rest_of_block, pad_output): New functions.
433         * copypass.c (process_copy_pass): Use `struct utimbuf'.
434         Ok if a directory we want to make already exists, but set its perms.
435         Do chmod after chown to fix any set[ug]id bits.
436         Don't change perms of `.'.
437         * extern.h, global.c: Replace the separate format flags with
438         one variable.  Add new variables for the new options.
439         * main.c: Add new options -A --append, -H --format, -C --io-size,
440         -M --message, --no-preserve-owner, -R --owner, -E --pattern-file,
441         -V --dot, -s --swap-bytes, -S --swap-halfwords, -b, -I, -k, -O.
442         (usage): Document them.
443         (process_args): Recognize them.  Use open_archive.
444         (initialize_buffers): Allow room for tar archives and double buffers.
445         * util.c (empty_output_buffer_swap): New function.
446         (empty_output_buffer): Call it if swapping current file.
447         Check additional end of media indicators.
448         (swahw_array, peek_in_buf, prepare_append, open_archive,
449         set_new_media_message): New functions.
450         (fill_input_buffer): Don't print error message if end of media.
451         (toss_input): Don't seek, always read.
452         (copy_files): Update crc if needed.
453         (find_inode_file, add_inode): Check major and minor numbers as
454         well as dev.
455         (get_next_reel): Prompt user if archive name is unknown.
456         Print fancy messages.
457         Close the archive and reopen it.
459         Above primarily from John Oleynick <juo@klinzhai.rutgers.edu>.
461         * util.c (find_inode_file): Use modulus when computing initial
462         loop index.
463         (add_inode): Zero out new entry.
464         From scott@sctc.com (Scott Hammond).
466         * cpio.h, copyin.c, copyout.c: Rename `struct cpio_header'
467         members from h_foo to c_foo.
469 Wed May 20 00:09:26 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
471         * copyin.c:  If we include a header file specifically to get
472         major et al., assume we have them.
474 Mon Mar  9 19:29:20 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
476         * mt.c (main): rmtclose the tape file descriptor.
478         * main.c (main): rmtclose the archive, if not in copy-pass mode.
480         * util.c (create_all_directories): Don't print a message when
481         creating a directory, for UNIX compat.
483         * copyin.c (process_copy_in), copypass.c (process_copy_pass):
484         Skip file if it has the same timestamp as existing file, not just
485         if it is older than existing file, for UNIX compat.
487 Tue Mar  3 12:06:58 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
489         * main.c, mt.c (usage): Document long options as starting with
490         -- instead of +.
492         * extern.h: Only declare lseek if not _POSIX_VERSION.
494 Tue Dec 24 00:19:45 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
496         * copyin.c: Use MAJOR_IN_MKDEV and MAJOR_IN_SYSMACROS instead
497         of USG and _POSIX_VERSION to find major and minor macros.
499         * mt.c: Use unistd.h and stdlib.h if available.
501         * copyin.c, copyout.c, copypass.c, util.c, extern.h: Change
502         POSIX ifdefs to HAVE_UNISTD_H and _POSIX_VERSION.
504 Sun Aug 25 06:31:08 1991  David J. MacKenzie  (djm at apple-gunkies)
506         * Version 1.5.
508         * bcopy.c: New file (moved from util.c).
510         * mt.c (print_status): Not all hpux machines have mt_fileno
511         and mt_blkno; rather than trying to track HP's product line,
512         just assume none of them have them.
514         * util.c (copy_buf_out, copy_in_buf): Use more efficient
515         copying technique for a big speedup.
517 Fri Aug  2 04:06:45 1991  David J. MacKenzie  (djm at apple-gunkies)
519         * configure: Support +srcdir.  Create config.status.
520         Remove it and Makefile if interrupted while creating them.
522 Thu Jul 18 09:43:40 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
524         * Many files: use __MSDOS__ instead of MSDOS.
526         * util.c, configure: Use NO_MTIO instead of HAVE_MTIO, to keep
527         up with tar and rtapelib.c.
529 Mon Jul 15 13:45:30 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
531         * configure: Also look in sys/signal.h for signal decl.
533 Thu Jul 11 01:50:32 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
535         * Version 1.4.
537         * configure: Remove /etc and /usr/etc from PATH to avoid
538         finding /etc/install.
540 Wed Jul 10 01:40:07 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
542         * makefile.pc: Rewrite for Turbo C 2.0.
543         * util.c [__TURBOC__] (utime): New function.
544         * alloca.c, tcexparg.c: New files.
546         * extern.h [STDC_HEADERS]: Don't declare malloc and realloc.
548         * main.c [MSDOS]: Make binary mode the default.
549         * copyin.c, copyout.c: Make stdin or stdout binary mode as
550         appropriate (so cpio archives don't get corrupted).
552         * Many files: Use <string.h> if STDC_HEADERS as well as if USG.
554         * configure, Makefile.in: $(INSTALLPROG) -> $(INSTALL),
555         $(INSTALLTEXT) -> $(INSTALLDATA).
557 Mon Jul  8 23:18:28 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
559         * configure: For some library functions that might be missing,
560         conditionally add the .o files to Makefile instead of
561         defining func_MISSING.
562         * mkdir.c: Renamed from mkrmdir.c.
564 Sat Jul  6 02:27:22 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
566         * configure: echo messages to stdout, not stderr.
567         Use a test program to see if alloca needs -lPW.
569 Thu Jun 27 16:15:15 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
571         * copyin.c (process_copy_in), copyout.c (process_copy_out),
572         copypass.c (process_copy_pass): Check close return value for
573         delayed error notification because of NFS.
575 Thu Jun 20 02:43:33 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
577         * configure: Include $DEFS when compiling test programs.
579         * util.c: Only declare getpwuid and getgrgid if not POSIX.
581         * Version 1.3.
583         * copyin.c: Use time_t, not long, for time values.
585         * mt.c (print_status): Special cases for HP-UX and Ultrix.
587         * util.c: Compile bcopy if USG or STDC_HEADERS, not BCOPY_MISSING.
589 Tue Jun 11 16:40:02 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
591         * copyin.c: Don't include sys/sysmacros.h if _POSIX_SOURCE.
593         * copyin.c, copyout.c, copypass.c: Don't include sys/file.h if POSIX.
595         * util.c: Include sys/types.h before, not after, pwd.h and grp.h.
597         * configure: New shell script to aid configuration and create
598         Makefile from Makefile.in.
600         * copyin.c (process_copy_in): Use POSIX.2 fnmatch instead of
601         glob_match. 
603 Mon Jun 10 22:11:19 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
605         * global.c, extern.h: New variable, name_end.
606         * main.c (process_args, usage): Add -0 +null option to set it.
607         * copypass.c (process_copy_pass), copyout.c (process_copy_out): 
608         Use it.
610         * dstring.c (ds_fgetstr): New function made from ds_fgets.
611         (ds_fgets, ds_fgetname): Implement as front ends to ds_fgetstr.
613 Sun Jun  2 15:45:24 1991  David J. MacKenzie  (djm at wheat-chex)
615         * most files: use GPL version 2.
617 Sat May 18 11:39:22 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
619         * copyin.c, copypass.c: Take out #ifdef MSDOS around chown.
620         * util.c [MSDOS]: Provide dummy chown.
622 Fri May 17 21:29:05 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
624         * Version 1.2.
626         * makefile.pc, cpio.cs: Update for new source and object files.
628 Fri Mar 15 05:48:36 1991  David J. MacKenzie  (djm at geech.ai.mit.edu)
630         * global.c, extern.h: New variable `archive_desc'.
631         * main.c (process_args): Set it.
632         * copyout.c (process_copy_out), copyin.c (process_copy_in):
633         Use it.
635         * copyout.c (process_copy_out), copyin.c (process_copy_in):
636         Remote tapes are special and not seekable; don't fstat them.
638         * main.c (main, usage): Add -F, +file option.  Use rmtopen.
639         (main): Exit after printing version number.
640         * util.c (empty_output_buffer): Use rmtwrite instead of write.
641         (fill_input_buffer): Use rmtread instead of read.
642         (tape_offline): Use rmtioctl instead of ioctl.
643         Test HAVE_MTIO instead of MTIO_MISSING, for tar compatibility.
645 Thu Mar 14 17:49:57 1991  David J. MacKenzie  (djm at geech.ai.mit.edu)
647         * util.c (create_all_directories): Use make_path to do the work.
649 Sat Jan 12 15:32:15 1991  David J. MacKenzie  (djm at geech.ai.mit.edu)
651         * copyin.c, copyout.c, copypass.c, util.c: Only declare
652         `errno' if not MSDOS.  Some Unix errno.h do, some don't . . . .
654         * global.c, extern.h: Make `input_size' and `output_size'
655         unsigned, for 16 bit machines.
657         * copyin.c (print_name_with_quoting): All non-ctrl chars are
658         printable on MS-DOS.
660         * util.c (empty_output_buffer): Never make sparse files;
661         can create unrunnable executables.
662         * copyin.c, copyout.c, copypass.c: Callers changed.
663         * util.c (finish_output_file): Function removed.
665 Tue Nov  6 15:47:16 1990  David J. MacKenzie  (djm at apple-gunkies)
667         * copyin.c, util.c, extern.h: Rename copystring to xstrdup.
669 Mon Oct 29 02:24:41 1990  David J. MacKenzie  (djm at apple-gunkies)
671         * util.c (empty_output_buffer): Only make sparse files if
672         NO_SPARSE_FILES is undefined, to accomodate dumb kernels.
674 Wed Jul 25 18:48:35 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
676         * util.c (getuser, getgroup): Make uid and gid unsigned short,
677         not int.
679 Sat Jul 21 00:44:44 1990  David J. MacKenzie  (djm at apple-gunkies)
681         * copyin.c, copyout.c, copypass.c, util.c, cpio.h: Add ifdefs
682         for MSDOS.
684 Sun Jul 15 23:51:48 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
686         * copyin.c, copyout.c, copypass.c, global.c, extern.h, util.c:
687         Use longs where appropriate, for 16 bit machines.
689 Sun Jul  8 22:58:06 1990  David J. MacKenzie  (djm at apple-gunkies)
691         * main.c (process_args, usage): Change -b option to -O (old), to
692         allow adding byte swapping later.
694 Sat Jul  7 14:48:35 1990  David J. MacKenzie  (dave at edfmd)
696         * Version 1.1.
698         * cpio.h: Make `mtime' and `filesize' unsigned long.
699         * copyin.c (read_in_binary), copyout.c (write_out_header):
700         High short-word of `mtime' and `filesize' always comes first.
702         * (read_in_ascii, read_in_binary): New functions, from code in
703         read_in_header. 
704         (read_in_header): Search for valid magic number, then fill in
705         rest of header using read_in_ascii and read_in_binary.
706         * global.c, extern.h: New variable, `binary_flag'.
707         * main.c (process_args): Recognize new -b +binary option.
708         * util.c [BCOPY_MISSING] (bcopy): New function.
710 Wed Jul  4 00:40:58 1990  David J. MacKenzie  (djm at apple-gunkies)
712         * main.c (process_args): Add local pointers to functions to
713         work around a pcc bug found on a Convex.
715         * copyin.c (process_copy_in), util.c (toss_input,
716         create_all_directories, add_inode): Don't use `index' as a
717         variable name. 
719 Tue Jul  3 02:33:36 1990  David J. MacKenzie  (djm at apple-gunkies)
721         * version 1.0.
723 Mon Jul  2 23:18:56 1990  David J. MacKenzie  (djm at twiddle)
725         * copyin.c (process_copy_in), copyout.c (process_copy_out),
726         copypass.c (process_copy_pass): Print "1 block", not "1 blocks".
728         * copyin.c (process_copy_in), copypass.c (process_copy_pass):
729         Unlink existing dest. file unless either it is newer and
730         not unconditional, or it is a directory.
732 Mon Jul  2 03:57:41 1990  David J. MacKenzie  (dave at edfmd)
734         * util.c (xrealloc): New function.
735         * dstring.c (ds_resize): Use xrealloc instead of free and
736         xmalloc.  Never shrink the string.
738         * copypass.c (process_copy_pass): More efficient
739         string handling while constructing output filename.
741         * global.c, extern.h, main.c, cpio.h: Change from an enum,
742         `copy_command', to a pointer to a void function, `copy_function'.
744         * cpio.h (struct cpio_header): Make most fields unsigned.
745         Rename h_filesize to h_filesizes and h_mtime to h_mtimes, and
746         add new `long' fields with the old names at the end of the
747         structure.
748         * copyin.c (read_in_header): Set the long fields from the
749         short arrays, making sure longs are aligned properly.
750         (process_copy_in, long_format): Use the long fields.
751         * copyout.c (write_out_header): Set the short arrays from the
752         long fields, making sure longs are aligned properly.
753         (process_copy_out): Use the long fields.
755         * global.c, extern.h: New variable `output_is_seekable'.
756         * util.c (empty_output_buffer): If output_is_seekable, use
757         lseek to write blocks of zeros.
758         (finish_output_file): New function.
759         * copyin.c (process_copy_in), copyout.c (process_copy_out),
760         copypass.c (process_copy_pass): Set `output_is_seekable'
761         correctly and call finish_output_file.
762         * main.c (initialize_buffers): Allocate space for sentinel in
763         `output_buffer'. 
765         * global.c, extern.h: New variable `numeric_uid'.
766         * main.c (process_args): Accept -n +numeric-uid-gid option, like ls.
767         * copyin.c (long_format): Use numeric_uid.
769         * copyin.c (process_copy_in), copyout.c (process_copy_out),
770         copypass.c (process_copy_pass): Don't (for verbose) print the
771         names of files that are not copied because of errors.  Try to
772         create missing directories for all file types.  Free temporary
773         buffers on error.
775 Sat Jun 30 14:28:45 1990  David J. MacKenzie  (djm at apple-gunkies)
777         * version.c: New file.
778         * main.c: Add -V, +version option.
779         * Makefile [dist]: Extract version number from version.c.
781 Sat Jun 30 12:44:47 1990  David J. MacKenzie  (dave at edfmd)
783         * global.c, extern.h, copyin.c, copyout.c, util.c: Rename
784         `{input,output}_is_regular' to `{input,output}_is_special' and
785         reverse the truth value. 
787         * global.c, extern.h: New variable `input_is_seekable' to
788         control whether to skip data with lseek or read. 
789         * copyin.c (process_copy_in): Set it.
790         * util.c (toss_input): Use it.
792         * global.c, extern.h: New variable `xstat' that selects stat
793         or lstat for input files.
794         * main.c (process_args): New option -L, +dereference to set
795         xstat to stat instead of lstat.
796         (usage): Document it.
797         * copyout.c (process_copy_out), copypass.c
798         (process_copy_pass): Use *xstat on input file.
800 Sat Jun 30 01:53:12 1990  David J. MacKenzie  (dave at edfmd)
802         * dstring.c (ds_init): Return void because return value was
803         never used. 
804         (ds_resize): Ditto, and free old value instead of new one.
806         * util.c (empty_output_buffer, fill_input_buffer,
807         copy_out_buf, copy_in_buf, toss_input, copy_files): Return
808         void instead of an error value and make errors fatal
809         immediately instead of several levels up, to prevent printing
810         of multiple error messages by different levels of functions.
812         * copyin.c (read_in_header): Return void, because the error
813         handling all happens at lower levels.
814         (print_name_with_quoting): New function.
815         (long_format): Call print_name_with_quoting.  Take additional
816         arg for name of linked-to file, and print it if nonzero.
817         (process_copy_in): For verbose listing of symlinks, read in
818         the linkname and pass it to long_format.
820         * extern.h: Declare some more functions.
822 Thu Jun 28 16:07:15 1990  David J. MacKenzie  (dave at edfmd)
824         * copypass.c (process_copy_pass): Warn about unknown file types.
826         * copyout.c (process_copy_out): Check fstat return for error.
827         Record filesize of 0 for special files.  Warn about unknown
828         file types.
830         * copyin.c (process_copy_in): Warn about unknown file types.
831         (read_in_header): Warn about byte-reversed binary headers.
833 Sat Jun 23 22:50:45 1990  David J. MacKenzie  (dave at edfmd)
835         * main.c (main): Set umask to 0 so permissions of created
836         files are preserved. 
838         * copyin.c, copyout.c, copypass.c, util.c: Pass file
839         descriptors as ints, not pointers to ints. 
840         Cast file timestamps and sizes to long *, not int *, for 16
841         bit machines.
842         Use lstat instead of stat, if available.
843         Handle FIFO's, sockets, and symlinks, if supported by O.S.
845         * copyin.c (process_copy_in), copyout.c (process_copy_out):
846         Don't consider FIFO'S, sockets, etc. to be possible tape drives.
848         * util.c (create_all_directories): Fix incorrect loop
849         termination check.  Only copy string if it contains slashes.
850         Don't check whether directory "" exists.
851         (tape_offline): Code moved from get_next_reel.
852         (get_next_reel): Print message before taking tape offline.
853         Read a line of arbitrary length.
855         * copyout.c, copyin.c, copypass.c: Always use utime, not utimes.
857         * copyin.c (swab_short): New macro.
858         (swab_array): New function.
859         (read_in_header): In binary mode, if a byte-swapped header is
860         read, swap the bytes back.
861         (process_copy_in, process_copy_pass): Don't stat each file to
862         create unless !unconditional_flag.  Create device files correctly.
863         Don't temporarily allow files being created to be read by
864         other users.  Don't unnecessarily chmod special files.
866 Thu May 31 20:51:43 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
868         * copyin.c (long_format): Use mode_string to format
869         file protections instead of doing it ourselves.
870         (protections): Function removed.
872 Sat Apr 14 02:31:01 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
874         * cpio.h (struct cpio_header): Make inode, mode, uid, gid
875         fields unsigned. 
877         * util.c (getgroup): New function.
878         * copyin.c (long_format): Print group name of files.
879         Print file size, etc. as unsigned integers, not signed.
881         * main.c (process_args): If -t is given and neither -i, -o, or
882         -p is given, assume -i.
884         * Add -f, +nonmatching option.
885         * main.c: Rename +out to +create, +in to +extract,
886         +modification-time to +preserve-modification-time,
887         +pass to +pass-through.
889         * copyin.c (process_copy_in), copypass.c (process_copy_pass):
890         Don't complain in chown fails because the user doesn't have
891         permission. 
893 Fri Apr 13 13:53:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
895         * Add ifdefs for USG/Xenix.
896         * util.c (cpio_error): Function removed.
897         * Use error instead of cpio_error, so system error messages
898         will be included.
899         * cpio.h: Rename 'hdr_struct' to 'struct cpio_header'.
900         * Move definition of xmalloc from dstring.c to util.c.
901         * global.c, extern.c: Add global `program_name'.
902         * main.c (main): Set program_name.
903         (process_args): Rename +reset-atime to +reset-access-time,
904         +table to +list.
905         Have +block-size take an argument.
907 Thu Apr 12 13:33:32 1990  David J. MacKenzie  (djm at rice-chex)
909         * util.c (find_inode_file): Make inode an int, not a short.
911         * Make functions that don't return a value have type void.
912         Add some casts to function calls.
914 Wed Apr 11 14:55:28 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
916         * main.c (process_args): -i, -o, and -p don't take arguments.
918         * main.c (process_args): Get the non-option args from the
919         correct elements of argv.
921 Tue Apr 10 00:20:26 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
923         * Indent source code and update copyrights.
925         * cpio.c (usage): Change `collection' to `archive' in message.
927 Thu Dec 28 03:03:55 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
929         * dstring.c (xmalloc): Don't return a null pointer if size is 0,
930         on the assumption that trying to allocate 0 bytes is a bug that
931         should be trapped.
933 Wed Dec 20 03:24:48 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
935         * All files: Change from GNU CPIO General Public License to
936         GNU General Public License.
938 Mon Dec 18 13:18:36 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
940         * Makefile: Add clean target and defines for CC and LDFLAGS.
941         Add dist target and SRCS, DISTFILES macros.  Add tags and TAGS targets.
942         * dstring.c (ds_fgets): Read characters into an int, not char.
943         (xmalloc): New function.
944         (out_of_memory): Function removed.
945         Global: use xmalloc instead of malloc and out_of_memory.
946         * extern.h, global.c: Make flag variables ints instead of chars for
947         compatibility with getopt_long.
948         * extern.h: Declare more functions.
949         * main.c (usage): Put the whole usage message into a single string
950         and fix errors.
951         * util.c (create_all_directories): Remove unused variable.
952         (get_next_reel): Ditto.
953         * dstring.h: Declare function.
955 Sat Dec  2 13:22:37 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
957         * main.c: Change +copy-pass option to +pass, +copy-in to +in,
958         +copy-out to +out, and +mkdir to +make-directories, and add null
959         option to terminate table.
960         (process_args): Use the same code to handle long and short named 
961         options.
962         (usage): Mention long options in message.
964 Local Variables:
965 mode: indented-text
966 left-margin: 8
967 version-control: never
968 End: