From 3a55c1cdc9818806307a2d633d3a29f9f9b8db82 Mon Sep 17 00:00:00 2001 From: kientzle Date: Fri, 2 May 2008 05:40:05 +0000 Subject: Documentation updates: * --format can be used with -r or -u * -o is a synonym for --format=ustar when used with -c, -r, or -u Also, fix the erroneous sanity check that suppressed --format with -r or -u. --- usr.bin/tar/bsdtar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/tar/bsdtar.c') diff --git a/usr.bin/tar/bsdtar.c b/usr.bin/tar/bsdtar.c index 88b963b..7e33e5b 100644 --- a/usr.bin/tar/bsdtar.c +++ b/usr.bin/tar/bsdtar.c @@ -638,7 +638,7 @@ main(int argc, char **argv) only_mode(bsdtar, buff, "cxt"); } if (bsdtar->create_format != NULL) - only_mode(bsdtar, "--format", "c"); + only_mode(bsdtar, "--format", "cru"); if (bsdtar->symlink_mode != '\0') { strcpy(buff, "-?"); buff[1] = bsdtar->symlink_mode; -- cgit v1.1