diff -Naur libarchive-2.4.0.orig/tar/bsdtar.1 libarchive-2.4.0/tar/bsdtar.1 --- libarchive-2.4.0.orig/tar/bsdtar.1 2007-10-07 06:27:48.000000000 +0000 +++ libarchive-2.4.0/tar/bsdtar.1 2007-11-16 10:42:02.000000000 +0000 @@ -155,13 +155,35 @@ .It Fl -format Ar format ( Fl W Cm format Ns = Ns Ar format ) (c mode only) Use the specified format for the created archive. -Supported formats include -.Dq cpio , -.Dq pax , -.Dq shar , -and -.Dq ustar . -Other formats may also be supported; see +Following formats are supported. If none is specified, +"restricted pax" (mostly compatible with ustar) is used. +.Bl -tag -compact -width 8n -offset indent +.It ustar +standard tar archive compatible with the most of tar(1) implementations +.It pax +extended tar format introduced by POSIX 1003.1-2001 standard +.It posix +synonym of pax +.It odc +standard cpio archive +.It cpio +synonym of odc +.It newc +SVR4 format cpio archive +.It arbsd +static library compatible with BSD ar(1) +.It ar +synonym of arbsd +.It arsvr4 +static library compatible with SVR4 ar(1) +.It argnu +synonym of arsvr4 +.It shar +shell archive composed of text files only +.It shardump +shell archive supporting binary files, but depends on uuencode and uudecode +.El +See .Xr libarchive-formats 5 for more information about currently-supported formats. .It Fl f Ar file @@ -169,11 +191,14 @@ The filename can be .Pa - for standard input or standard output. -If not specified, the default tape device will be used. -(On -.Fx , -the default tape device is -.Pa /dev/sa0 . ) +If not specified, +.Pa standard input +or +.Pa standard output +will be used on Fink. Generally speaking, omitting the +.Fl f +option is a bad practice because the default is usually a tape device +(such as /dev/sa0) in other UNIX-like platforms. .It Fl -fast-read ( Fl W Cm fast-read ) (x and t mode only) Extract or list only the first archive entry that matches each pattern @@ -438,15 +463,6 @@ .Xr environ 7 for more information. .El -.Sh FILES -.Bl -tag -width ".Ev BLOCKSIZE" -.It Pa /dev/sa0 -The default tape device, if not overridden by the -.Ev TAPE -environment variable or the -.Fl f -option. -.El .Sh EXIT STATUS .Ex -std .Sh EXAMPLES @@ -672,10 +688,7 @@ public-domain implementation (circa November, 1987) was quite influential, and formed the basis of GNU tar. GNU tar was included as the standard system tar -in -.Fx -beginning with -.Fx 1.0 . +in FreeBSD beginning with FreeBSD 1.0 . .Pp This is a complete re-implementation based on the .Xr libarchive 3 diff -Naur libarchive-2.4.0.orig/tar/bsdtar.c libarchive-2.4.0/tar/bsdtar.c --- libarchive-2.4.0.orig/tar/bsdtar.c 2007-09-16 23:30:14.000000000 +0000 +++ libarchive-2.4.0/tar/bsdtar.c 2007-11-16 10:01:44.000000000 +0000 @@ -267,8 +267,10 @@ /* Default: open tape drive. */ bsdtar->filename = getenv("TAPE"); +#if !(defined(__APPLE__) && defined(__MACH__)) /* default to stdio on MacOS X/Fink */ if (bsdtar->filename == NULL) bsdtar->filename = _PATH_DEFTAPE; +#endif /* Default: preserve mod time on extract */ bsdtar->extract_flags = ARCHIVE_EXTRACT_TIME;