diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-04-05 22:36:20 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-04-05 22:36:20 +0000 |
commit | 120c196e860c6ad6b4897645bd87423d14a1adb6 (patch) | |
tree | 9d94b230926b6f1c8e2e63f7ebc779e298ef2aea /bin/pax/pax.c | |
parent | ebb808b9f530686a1afba78937ce81569f1fbcba (diff) |
Strip leading '/' of pathnames (only in tar mode). -S option turns
this off like GNU tar.
Diffstat (limited to 'bin/pax/pax.c')
-rw-r--r-- | bin/pax/pax.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/pax/pax.c b/bin/pax/pax.c index 1fd965a1aff..a8e624685d2 100644 --- a/bin/pax/pax.c +++ b/bin/pax/pax.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pax.c,v 1.6 1997/03/02 09:46:49 tholo Exp $ */ +/* $OpenBSD: pax.c,v 1.7 1997/04/05 22:36:17 millert Exp $ */ /* $NetBSD: pax.c,v 1.5 1996/03/26 23:54:20 mrg Exp $ */ /*- @@ -48,7 +48,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)pax.c 8.2 (Berkeley) 4/18/94"; #else -static char rcsid[] = "$OpenBSD: pax.c,v 1.6 1997/03/02 09:46:49 tholo Exp $"; +static char rcsid[] = "$OpenBSD: pax.c,v 1.7 1997/04/05 22:36:17 millert Exp $"; #endif #endif /* not lint */ @@ -97,6 +97,7 @@ int pmtime = 1; /* preserve file modification times */ int nodirs; /* do not create directories as needed */ int pmode; /* preserve file mode bits */ int pids; /* preserve file uid/gid */ +int rmleadslash = 0; /* remove leading '/' from pathnames */ int exit_val; /* exit value */ int docrc; /* check/create file crc */ char *dirptr; /* destination dir in a copy */ |