-/* $OpenBSD: options.c,v 1.18 1997/04/02 17:48:53 millert Exp $ */
+/* $OpenBSD: options.c,v 1.19 1997/04/04 20:54:50 millert Exp $ */
/* $NetBSD: options.c,v 1.6 1996/03/26 23:54:18 mrg Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)options.c 8.2 (Berkeley) 4/18/94";
#else
-static char rcsid[] = "$OpenBSD: options.c,v 1.18 1997/04/02 17:48:53 millert Exp $";
+static char rcsid[] = "$OpenBSD: options.c,v 1.19 1997/04/04 20:54:50 millert Exp $";
#endif
#endif /* not lint */
argc -= optind;
argv += optind;
+ /* Traditional tar behaviour (pax wants to read filelist from stdin) */
+ if (argc == 0)
+ exit(0);
+
/*
* if we are writing (ARCHIVE) specify tar, otherwise run like pax
*/
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $OpenBSD: tar.1,v 1.6 1997/03/26 01:20:45 millert Exp $
+.\" $OpenBSD: tar.1,v 1.7 1997/04/04 20:54:52 millert Exp $
.\"
.Dd June 11, 1996
.Dt TAR 1
.It Fl m
Do not preserve modification time.
.It Fl o
-Do not create directories.
+Don't write directory information that the older (V7) style
+.Nm tar
+is enable to decode.
.It Fl p
Preserve user id, group id, file mode, access and modification
-times.
+times if possible. The user id and group id will only bet set
+if the user is the superuser (unless these values correspond
+to the user's user and group ids).
.It Fl s Ar replstr
Modify the file or archive member names specified by the
.Ar pattern
.It Fl v
Verbose operation mode.
.It Fl w
-Interactively rename files.
+Interactively rename files. This option causes
+.Nm tar
+to prompt the user for the filename to use when storing or
+extracting files in an archive.
.It Fl z
Compress archive using gzip.
.It Fl C Ar directory