head	1.5;
access;
symbols
	RELEASE_7_1_0:1.4
	RELEASE_6_4_0:1.4
	RELEASE_5_EOL:1.4
	RELEASE_7_0_0:1.4
	RELEASE_6_3_0:1.4
	PRE_XORG_7:1.4
	RELEASE_4_EOL:1.4
	RELEASE_6_2_0:1.4
	RELEASE_6_1_0:1.4
	RELEASE_5_5_0:1.4
	RELEASE_6_0_0:1.4
	RELEASE_5_4_0:1.4
	RELEASE_4_11_0:1.4
	RELEASE_5_3_0:1.4
	RELEASE_4_10_0:1.4
	RELEASE_5_2_1:1.4
	RELEASE_5_2_0:1.4
	RELEASE_4_9_0:1.4
	RELEASE_5_1_0:1.4
	RELEASE_4_8_0:1.4
	RELEASE_5_0_0:1.3
	RELEASE_4_7_0:1.3
	old_RELEASE_4_6_0:1.2
	old_RELEASE_5_0_DP1:1.2
	old_RELEASE_4_5_0:1.2
	old_RELEASE_4_4_0:1.2
	old_RELEASE_4_3_0:1.1
	old_RELEASE_4_2_0:1.1
	old_RELEASE_4_1_1:1.1
	old_RELEASE_4_1_0:1.1
	old_RELEASE_3_5_0:1.1
	old_RELEASE_4_0_0:1.1
	old_RELEASE_3_4_0:1.1
	old_RELEASE_3_3_0:1.1;
locks; strict;
comment	@# @;


1.5
date	2009.02.07.20.44.18;	author olgeni;	state dead;
branches;
next	1.4;

1.4
date	2003.01.02.17.58.25;	author ijliao;	state Exp;
branches;
next	1.3;

1.3
date	2002.06.17.20.31.18;	author ijliao;	state Exp;
branches;
next	1.2;

1.2
date	2001.05.04.16.20.15;	author obrien;	state Exp;
branches;
next	1.1;

1.1
date	99.07.19.20.21.14;	author andreas;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Upgrade to version 1.5 using code from archivers/star-devel; also install srmt and tartest.
@
text
@--- star/star.c.orig	Fri Nov 15 19:39:13 2002
+++ star/star.c	Tue Nov 26 03:03:34 2002
@@@@ -500,14 +500,16 @@@@
 susage(ret)
 	int	ret;
 {
-	error("Usage:\t%s cmd [options] file1 ... filen\n", get_progname());
-	error("\nUse\t%s -help\n", get_progname());
-	error("and\t%s -xhelp\n", get_progname());
-	error("to get a list of valid cmds and options.\n");
-	error("\nUse\t%s H=help\n", get_progname());
-	error("to get a list of valid archive header formats.\n");
-	error("\nUse\t%s diffopts=help\n", get_progname());
-	error("to get a list of valid diff options.\n");
+	FILE *fp = ret ? stderr : stdout;
+
+	fprintf(fp, "Usage:\t%s cmd [options] file1 ... filen\n", get_progname());
+	fprintf(fp, "\nUse\t%s -help\n", get_progname());
+	fprintf(fp, "and\t%s -xhelp\n", get_progname());
+	fprintf(fp, "to get a list of valid cmds and options.\n");
+	fprintf(fp, "\nUse\t%s H=help\n", get_progname());
+	fprintf(fp, "to get a list of valid archive header formats.\n");
+	fprintf(fp, "\nUse\t%s diffopts=help\n", get_progname());
+	fprintf(fp, "to get a list of valid diff options.\n");
 	exit(ret);
 	/* NOTREACHED */
 }
@@@@ -516,48 +518,50 @@@@
 usage(ret)
 	int	ret;
 {
-	error("Usage:\t%s cmd [options] file1 ... filen\n", get_progname());
-	error("Cmd:\n");
-	error("\t-c/-u/-r\tcreate/update/replace named files to tape\n");
-	error("\t-x/-t/-n\textract/list/trace named files from tape\n");
-	error("\t-diff\t\tdiff archive against file system (see -xhelp)\n");
-	error("Options:\n");
-	error("\t-help\t\tprint this help\n");
-	error("\t-xhelp\t\tprint extended help\n");
-	error("\t-version\tprint version information and exit\n");
-	error("\tblocks=#,b=#\tset blocking factor to #x512 Bytes (default 20)\n"); 
-	error("\tfile=nm,f=nm\tuse 'nm' as tape instead of stdin/stdout\n");
-	error("\t-T\t\tuse $TAPE as tape instead of stdin/stdout\n");
+	FILE *fp = ret ? stderr : stdout;
+
+	fprintf(fp, "Usage:\t%s cmd [options] file1 ... filen\n", get_progname());
+	fprintf(fp, "Cmd:\n");
+	fprintf(fp, "\t-c/-u/-r\tcreate/update/replace named files to tape\n");
+	fprintf(fp, "\t-x/-t/-n\textract/list/trace named files from tape\n");
+	fprintf(fp, "\t-diff\t\tdiff archive against file system (see -xhelp)\n");
+	fprintf(fp, "Options:\n");
+	fprintf(fp, "\t-help\t\tprint this help\n");
+	fprintf(fp, "\t-xhelp\t\tprint extended help\n");
+	fprintf(fp, "\t-version\tprint version information and exit\n");
+	fprintf(fp, "\tblocks=#,b=#\tset blocking factor to #x512 Bytes (default 20)\n"); 
+	fprintf(fp, "\tfile=nm,f=nm\tuse 'nm' as tape instead of stdin/stdout\n");
+	fprintf(fp, "\t-T\t\tuse $TAPE as tape instead of stdin/stdout\n");
 #ifdef	FIFO
-	error("\t-fifo/-no-fifo\tuse/don't use a fifo to optimize data flow from/to tape\n");
+	fprintf(fp, "\t-fifo/-no-fifo\tuse/don't use a fifo to optimize data flow from/to tape\n");
 #if defined(USE_MMAP) && defined(USE_USGSHM)
-	error("\t-shm\t\tuse SysV shared memory for fifo\n");
+	fprintf(fp, "\t-shm\t\tuse SysV shared memory for fifo\n");
 #endif
 #endif
-	error("\t-v\t\tincrement verbose level\n");
-	error("\t-block-number\tprint the block numbers where the TAR headers start\n");
-	error("\t-tpath\t\tuse with -t to list path names only\n");
-	error("\tH=header\tgenerate 'header' type archive (see H=help)\n");
-	error("\tC=dir\t\tperform a chdir to 'dir' before storing next file\n");
-	error("\t-z\t\tpipe input/output through gzip, does not work on tapes\n");
-	error("\t-bz\t\tpipe input/output through bzip2, does not work on tapes\n");
-	error("\t-B\t\tperform multiple reads (needed on pipes)\n");
-	error("\t-i\t\tignore checksum errors\n");
-	error("\t-d\t\tdo not store/create directories\n");
-	error("\t-m\t\tdo not restore access and modification time\n");
-	error("\t-o,-nochown\tdo not restore owner and group\n");
-	error("\t-a,-atime\treset access time after storing file\n");
-	error("\t-p\t\trestore filemodes of directories\n");
-	error("\t-l\t\tdo not print a message if not all links are dumped\n");
-	error("\t-h,-L\t\tfollow symbolic links as if they were files\n");
-	error("\t-D\t\tdo not descend directories\n");
-	error("\t-M\t\tdo not descend mounting points\n");
-	error("\t-I,-w\t\tdo interactive creation/extraction/renaming\n");
-	error("\t-O\t\tbe compatible to old tar (except for checksum bug)\n");
-	error("\t-P\t\tlast record may be partial (useful on cartridge tapes)\n");
-	error("\t-S\t\tdo not store/create special files\n");
-	error("\t-F,-FF,-FFF,...\tdo not store/create SCCS/RCS, core and object files\n");
-	error("\t-U\t\trestore files unconditionally\n");
+	fprintf(fp, "\t-v\t\tincrement verbose level\n");
+	fprintf(fp, "\t-block-number\tprint the block numbers where the TAR headers start\n");
+	fprintf(fp, "\t-tpath\t\tuse with -t to list path names only\n");
+	fprintf(fp, "\tH=header\tgenerate 'header' type archive (see H=help)\n");
+	fprintf(fp, "\tC=dir\t\tperform a chdir to 'dir' before storing next file\n");
+	fprintf(fp, "\t-z\t\tpipe input/output through gzip, does not work on tapes\n");
+	fprintf(fp, "\t-bz\t\tpipe input/output through bzip2, does not work on tapes\n");
+	fprintf(fp, "\t-B\t\tperform multiple reads (needed on pipes)\n");
+	fprintf(fp, "\t-i\t\tignore checksum errors\n");
+	fprintf(fp, "\t-d\t\tdo not store/create directories\n");
+	fprintf(fp, "\t-m\t\tdo not restore access and modification time\n");
+	fprintf(fp, "\t-o,-nochown\tdo not restore owner and group\n");
+	fprintf(fp, "\t-a,-atime\treset access time after storing file\n");
+	fprintf(fp, "\t-p\t\trestore filemodes of directories\n");
+	fprintf(fp, "\t-l\t\tdo not print a message if not all links are dumped\n");
+	fprintf(fp, "\t-h,-L\t\tfollow symbolic links as if they were files\n");
+	fprintf(fp, "\t-D\t\tdo not descend directories\n");
+	fprintf(fp, "\t-M\t\tdo not descend mounting points\n");
+	fprintf(fp, "\t-I,-w\t\tdo interactive creation/extraction/renaming\n");
+	fprintf(fp, "\t-O\t\tbe compatible to old tar (except for checksum bug)\n");
+	fprintf(fp, "\t-P\t\tlast record may be partial (useful on cartridge tapes)\n");
+	fprintf(fp, "\t-S\t\tdo not store/create special files\n");
+	fprintf(fp, "\t-F,-FF,-FFF,...\tdo not store/create SCCS/RCS, core and object files\n");
+	fprintf(fp, "\t-U\t\trestore files unconditionally\n");
 	exit(ret);
 	/* NOTREACHED */
 }
@@@@ -566,69 +570,71 @@@@
 xusage(ret)
 	int	ret;
 {
-	error("Usage:\t%s cmd [options] file1 ... filen\n", get_progname());
-	error("Extended options:\n");
-	error("\tdiffopts=optlst\tcomma separated list of diffopts (see diffopts=help)\n");
-	error("\t-debug\t\tprint additional debug messages\n");
-	error("\t-silent\t\tno not print informational messages\n");
-	error("\t-not,-V\t\tuse those files which do not match pattern\n");
-	error("\tVOLHDR=name\tuse name to generate a volume header\n");
-	error("\t-xdir\t\textract dir even if the current is never\n");
-	error("\t-dirmode\t\twrite directories after the files they contain\n");
-	error("\t-link-dirs\tlook for hard linked directories in create mode\n");
-	error("\t-dump\t\texperimental option for incremental dumps (more ino metadata)\n");
-	error("\t-meta\t\texperimental option to use inode metadata only\n");
-	error("\t-keep-old-files,-k\tkeep existing files\n");
-	error("\t-refresh-old-files\trefresh existing files, don't create new files\n");
-	error("\t-refresh\trefresh existing files, don't create new files\n");
-	error("\t-/\t\tdon't strip leading '/'s from file names\n");
-	error("\tlist=name\tread filenames from named file\n");
-	error("\t-dodesc\t\tdo descend directories found in a list= file\n");
-	error("\tpattern=p,pat=p\tset matching pattern\n");
-	error("\tmaxsize=#\tdo not store file if bigger than # (default mult is kB)\n");
-	error("\tnewer=name\tstore only files which are newer than 'name'\n");
-	error("\tnew-volume-script=script\tcall 'scipt' at end of each volume\n");
-	error("\t-ctime\t\tuse ctime for newer= option\n");
-	error("\t-nodump\t\tdo not dump files that have the nodump flag set\n");
-	error("\t-acl\t\thandle access control lists\n");
-	error("\t-xfflags\t\thandle extended file flags\n");
-	error("\tbs=#\t\tset (output) block size to #\n");
+	FILE *fp = ret ? stderr : stdout;
+
+	fprintf(fp, "Usage:\t%s cmd [options] file1 ... filen\n", get_progname());
+	fprintf(fp, "Extended options:\n");
+	fprintf(fp, "\tdiffopts=optlst\tcomma separated list of diffopts (see diffopts=help)\n");
+	fprintf(fp, "\t-debug\t\tprint additional debug messages\n");
+	fprintf(fp, "\t-silent\t\tno not print informational messages\n");
+	fprintf(fp, "\t-not,-V\t\tuse those files which do not match pattern\n");
+	fprintf(fp, "\tVOLHDR=name\tuse name to generate a volume header\n");
+	fprintf(fp, "\t-xdir\t\textract dir even if the current is never\n");
+	fprintf(fp, "\t-dirmode\t\twrite directories after the files they contain\n");
+	fprintf(fp, "\t-link-dirs\tlook for hard linked directories in create mode\n");
+	fprintf(fp, "\t-dump\t\texperimental option for incremental dumps (more ino metadata)\n");
+	fprintf(fp, "\t-meta\t\texperimental option to use inode metadata only\n");
+	fprintf(fp, "\t-keep-old-files,-k\tkeep existing files\n");
+	fprintf(fp, "\t-refresh-old-files\trefresh existing files, don't create new files\n");
+	fprintf(fp, "\t-refresh\trefresh existing files, don't create new files\n");
+	fprintf(fp, "\t-/\t\tdon't strip leading '/'s from file names\n");
+	fprintf(fp, "\tlist=name\tread filenames from named file\n");
+	fprintf(fp, "\t-dodesc\t\tdo descend directories found in a list= file\n");
+	fprintf(fp, "\tpattern=p,pat=p\tset matching pattern\n");
+	fprintf(fp, "\tmaxsize=#\tdo not store file if bigger than # (default mult is kB)\n");
+	fprintf(fp, "\tnewer=name\tstore only files which are newer than 'name'\n");
+	fprintf(fp, "\tnew-volume-script=script\tcall 'scipt' at end of each volume\n");
+	fprintf(fp, "\t-ctime\t\tuse ctime for newer= option\n");
+	fprintf(fp, "\t-nodump\t\tdo not dump files that have the nodump flag set\n");
+	fprintf(fp, "\t-acl\t\thandle access control lists\n");
+	fprintf(fp, "\t-xfflags\t\thandle extended file flags\n");
+	fprintf(fp, "\tbs=#\t\tset (output) block size to #\n");
 #ifdef	FIFO
-	error("\tfs=#\t\tset fifo size to #\n");
+	fprintf(fp, "\tfs=#\t\tset fifo size to #\n");
 #endif
-	error("\ttsize=#\t\tset tape volume size to # (default multiplier is 512)\n");
-	error("\t-qic24\t\tset tape volume size to %d kBytes\n",
+	fprintf(fp, "\ttsize=#\t\tset tape volume size to # (default multiplier is 512)\n");
+	fprintf(fp, "\t-qic24\t\tset tape volume size to %d kBytes\n",
 						TSIZE(QIC_24_TSIZE)/1024);
-	error("\t-qic120\t\tset tape volume size to %d kBytes\n",
+	fprintf(fp, "\t-qic120\t\tset tape volume size to %d kBytes\n",
 						TSIZE(QIC_120_TSIZE)/1024);
-	error("\t-qic150\t\tset tape volume size to %d kBytes\n",
+	fprintf(fp, "\t-qic150\t\tset tape volume size to %d kBytes\n",
 						TSIZE(QIC_150_TSIZE)/1024);
-	error("\t-qic250\t\tset tape volume size to %d kBytes\n",
+	fprintf(fp, "\t-qic250\t\tset tape volume size to %d kBytes\n",
 						TSIZE(QIC_250_TSIZE)/1024);
-	error("\t-nowarn\t\tdo not print warning messages\n");
-	error("\t-time\t\tprint timing info\n");
-	error("\t-no-statistics\tdo not print statistics\n");
+	fprintf(fp, "\t-nowarn\t\tdo not print warning messages\n");
+	fprintf(fp, "\t-time\t\tprint timing info\n");
+	fprintf(fp, "\t-no-statistics\tdo not print statistics\n");
 #ifdef	FIFO
-	error("\t-fifostats\tprint fifo statistics\n");
+	fprintf(fp, "\t-fifostats\tprint fifo statistics\n");
 #endif
-	error("\t-numeric\tdon't use user/group name from tape\n");
-	error("\t-newest\t\tfind newest file on tape\n");
-	error("\t-newest-file\tfind newest regular file on tape\n");
-	error("\t-hpdev\t\tuse HP's non POSIX compliant method to store dev numbers\n");
-	error("\t-modebits\tinclude all 16 bits from stat.st_mode, this violates POSIX-1003.1\n");
-	error("\t-copylinks\tCopy hard and symlinks rather than linking\n");
-	error("\t-hardlinks\tExtract symlinks as hardlinks\n");
-	error("\t-symlinks\tExtract hardlinks as symlinks\n");
-	error("\t-signed-checksum\tuse signed chars to calculate checksum\n");
-	error("\t-sparse\t\thandle file with holes effectively on store/create\n");
-	error("\t-force-hole\ttry to extract all files with holes\n");
-	error("\t-to-stdout\textract files to stdout\n");
-	error("\t-wready\t\twait for tape drive to become ready\n");
-	error("\t-force-remove\tforce to remove non writable files on extraction\n");
-	error("\t-ask-remove\task to remove non writable files on extraction\n");
-	error("\t-remove-first\tremove files before extraction\n");
-	error("\t-remove-recursive\tremove files recursive\n");
-	error("\t-onull,-nullout\tsimulate creating an achive to compute the size\n");
+	fprintf(fp, "\t-numeric\tdon't use user/group name from tape\n");
+	fprintf(fp, "\t-newest\t\tfind newest file on tape\n");
+	fprintf(fp, "\t-newest-file\tfind newest regular file on tape\n");
+	fprintf(fp, "\t-hpdev\t\tuse HP's non POSIX compliant method to store dev numbers\n");
+	fprintf(fp, "\t-modebits\tinclude all 16 bits from stat.st_mode, this violates POSIX-1003.1\n");
+	fprintf(fp, "\t-copylinks\tCopy hard and symlinks rather than linking\n");
+	fprintf(fp, "\t-hardlinks\tExtract symlinks as hardlinks\n");
+	fprintf(fp, "\t-symlinks\tExtract hardlinks as symlinks\n");
+	fprintf(fp, "\t-signed-checksum\tuse signed chars to calculate checksum\n");
+	fprintf(fp, "\t-sparse\t\thandle file with holes effectively on store/create\n");
+	fprintf(fp, "\t-force-hole\ttry to extract all files with holes\n");
+	fprintf(fp, "\t-to-stdout\textract files to stdout\n");
+	fprintf(fp, "\t-wready\t\twait for tape drive to become ready\n");
+	fprintf(fp, "\t-force-remove\tforce to remove non writable files on extraction\n");
+	fprintf(fp, "\t-ask-remove\task to remove non writable files on extraction\n");
+	fprintf(fp, "\t-remove-first\tremove files before extraction\n");
+	fprintf(fp, "\t-remove-recursive\tremove files recursive\n");
+	fprintf(fp, "\t-onull,-nullout\tsimulate creating an achive to compute the size\n");
 	exit(ret);
 	/* NOTREACHED */
 }
@@@@ -637,31 +643,33 @@@@
 dusage(ret)
 	int	ret;
 {
-	error("Diff options:\n");
-	error("\tnot\t\tif this option is present, exclude listed options\n");
-	error("\t!\t\tif this option is present, exclude listed options\n");
-	error("\tall\t\tcompare everything\n");
-	error("\tperm\t\tcompare file permissions\n");
-	error("\tmode\t\tcompare file permissions\n");
-	error("\ttype\t\tcompare file type\n");
-	error("\tnlink\t\tcompare linkcount (not supported)\n");
-	error("\tuid\t\tcompare owner of file\n");
-	error("\tgid\t\tcompare group of file\n");
-	error("\tuname\t\tcompare name of owner of file\n");
-	error("\tgname\t\tcompare name of group of file\n");
-	error("\tid\t\tcompare owner, group, ownername and groupname of file\n");
-	error("\tsize\t\tcompare file size\n");
-	error("\tdata\t\tcompare content of file\n");
-	error("\tcont\t\tcompare content of file\n");
-	error("\trdev\t\tcompare rdev of device node\n");
-	error("\thardlink\tcompare target of hardlink\n");
-	error("\tsymlink\t\tcompare target of symlink\n");
-	error("\tatime\t\tcompare access time of file (only star)\n");
-	error("\tmtime\t\tcompare modification time of file\n");
-	error("\tctime\t\tcompare creation time of file (only star)\n");
-	error("\ttimes\t\tcompare all times of file\n");
-	error("\n");
-	error("Default is to compare everything except atime.\n");
+	FILE *fp = ret ? stderr : stdout;
+
+	fprintf(fp, "Diff options:\n");
+	fprintf(fp, "\tnot\t\tif this option is present, exclude listed options\n");
+	fprintf(fp, "\t!\t\tif this option is present, exclude listed options\n");
+	fprintf(fp, "\tall\t\tcompare everything\n");
+	fprintf(fp, "\tperm\t\tcompare file permissions\n");
+	fprintf(fp, "\tmode\t\tcompare file permissions\n");
+	fprintf(fp, "\ttype\t\tcompare file type\n");
+	fprintf(fp, "\tnlink\t\tcompare linkcount (not supported)\n");
+	fprintf(fp, "\tuid\t\tcompare owner of file\n");
+	fprintf(fp, "\tgid\t\tcompare group of file\n");
+	fprintf(fp, "\tuname\t\tcompare name of owner of file\n");
+	fprintf(fp, "\tgname\t\tcompare name of group of file\n");
+	fprintf(fp, "\tid\t\tcompare owner, group, ownername and groupname of file\n");
+	fprintf(fp, "\tsize\t\tcompare file size\n");
+	fprintf(fp, "\tdata\t\tcompare content of file\n");
+	fprintf(fp, "\tcont\t\tcompare content of file\n");
+	fprintf(fp, "\trdev\t\tcompare rdev of device node\n");
+	fprintf(fp, "\thardlink\tcompare target of hardlink\n");
+	fprintf(fp, "\tsymlink\t\tcompare target of symlink\n");
+	fprintf(fp, "\tatime\t\tcompare access time of file (only star)\n");
+	fprintf(fp, "\tmtime\t\tcompare modification time of file\n");
+	fprintf(fp, "\tctime\t\tcompare creation time of file (only star)\n");
+	fprintf(fp, "\ttimes\t\tcompare all times of file\n");
+	fprintf(fp, "\n");
+	fprintf(fp, "Default is to compare everything except atime.\n");
 	exit(ret);
 	/* NOTREACHED */
 }
@@@@ -670,16 +678,18 @@@@
 husage(ret)
 	int	ret;
 {
-	error("Header types:\n");
-	error("\ttar\t\told tar format\n");
-	error("\tstar\t\told star format from 1985\n");
-	error("\tgnutar\t\tgnu tar format (violates POSIX, use with care)\n");
-	error("\tustar\t\tstandard tar (ieee POSIX 1003.1-1988) format\n");
-	error("\txstar\t\textended standard tar format (star 1994)\n");
-	error("\txustar\t\textended standard tar format without tar signature\n");
-	error("\texustar\t\textended standard tar format without tar signature (always x-header)\n");
-	error("\tpax\t\textended (ieee POSIX 1003.1-2001) standard tar format\n");
-	error("\tsuntar\t\tSun's extended pre-POSIX.1-2001 Solaris 7/8 tar format\n");
+	FILE *fp = ret ? stderr : stdout;
+
+	fprintf(fp, "Header types:\n");
+	fprintf(fp, "\ttar\t\told tar format\n");
+	fprintf(fp, "\tstar\t\told star format from 1985\n");
+	fprintf(fp, "\tgnutar\t\tgnu tar format (violates POSIX, use with care)\n");
+	fprintf(fp, "\tustar\t\tstandard tar (ieee POSIX 1003.1-1988) format\n");
+	fprintf(fp, "\txstar\t\textended standard tar format (star 1994)\n");
+	fprintf(fp, "\txustar\t\textended standard tar format without tar signature\n");
+	fprintf(fp, "\texustar\t\textended standard tar format without tar signature (always x-header)\n");
+	fprintf(fp, "\tpax\t\textended (ieee POSIX 1003.1-2001) standard tar format\n");
+	fprintf(fp, "\tsuntar\t\tSun's extended pre-POSIX.1-2001 Solaris 7/8 tar format\n");
 	exit(ret);
 	/* NOTREACHED */
 }
@


1.4
log
@upgrade to 1.4.2

PR:		45866
Submitted by:	Ports Fury
@
text
@@


1.3
log
@upgrade to 1.4

PR:		39428
Submitted by:	Ports Fury
@
text
@d1 3
a3 3
--- star/star.c.orig	Fri May 17 19:26:31 2002
+++ star/star.c	Tue Jun 11 22:27:46 2002
@@@@ -485,14 +485,16 @@@@
d28 1
a28 1
@@@@ -501,48 +503,50 @@@@
d32 1
a32 1
-	error("Usage:\tstar cmd [options] file1 ... filen\n");
d46 1
a46 1
+	fprintf(fp, "Usage:\tstar cmd [options] file1 ... filen\n");
d117 1
a117 1
@@@@ -551,69 +555,71 @@@@
d121 1
a121 1
-	error("Usage:\tstar cmd [options] file1 ... filen\n");
d150 1
a150 1
+	fprintf(fp, "Usage:\tstar cmd [options] file1 ... filen\n");
d244 1
a244 1
@@@@ -622,27 +628,29 @@@@
d250 2
d271 2
d277 2
d298 2
d303 1
a303 1
@@@@ -651,16 +659,18 @@@@
@


1.2
log
@Update to version 1.3.

Submitted by:	Christian Weisgerber <naddy@@mips.inka.de>
@
text
@d1 28
a28 3
--- star/star.c.orig	Fri Apr 27 19:29:55 2001
+++ star/star.c	Fri Apr 27 19:33:54 2001
@@@@ -442,46 +442,48 @@@@ LOCAL void
d40 1
d54 1
d66 2
a67 1
-	error("\t-v\t\tbe verbose\n");
d77 1
a77 1
-	error("\t-nochown\tdo not restore owner and group\n");
d81 1
a81 1
-	error("\t-L\t\tfollow symbolic links as if they were files\n");
d90 2
a91 1
+	fprintf(fp, "\t-v\t\tbe verbose\n");
d101 1
a101 1
+	fprintf(fp, "\t-nochown\tdo not restore owner and group\n");
d105 1
a105 1
+	fprintf(fp, "\t-L\t\tfollow symbolic links as if they were files\n");
d117 1
a117 1
@@@@ -490,56 +492,58 @@@@ LOCAL void
d124 2
d129 4
d135 1
d140 1
a140 1
-	error("\tmaxsize=#\tdo not store file if it is bigger than # kBytes\n");
d142 1
d144 3
d153 2
d158 4
d164 1
d169 1
a169 1
+	fprintf(fp, "\tmaxsize=#\tdo not store file if it is bigger than # kBytes\n");
d171 1
d173 3
d181 1
a181 1
-	error("\ttsize=#\t\tset tape volume size to # 512 byte blocks\n");
d183 1
a183 1
+	fprintf(fp, "\ttsize=#\t\tset tape volume size to # 512 byte blocks\n");
d211 2
d229 2
d244 1
a244 1
@@@@ -548,27 +552,29 @@@@ LOCAL void
d295 1
a295 1
@@@@ -577,13 +583,15 @@@@ LOCAL void
d301 4
a304 4
-	error("\tstar\t\tstar format\n");
-	error("\tgnutar\t\tgnu tar format\n");
-	error("\tustar\t\tstandard tar (ieee 1003.1) format\n");
-	error("\txstar\t\textended standard tar format\n");
d306 3
d313 4
a316 4
+	fprintf(fp, "\tstar\t\tstar format\n");
+	fprintf(fp, "\tgnutar\t\tgnu tar format\n");
+	fprintf(fp, "\tustar\t\tstandard tar (ieee 1003.1) format\n");
+	fprintf(fp, "\txstar\t\textended standard tar format\n");
d318 3
@


1.1
log
@Committ rest of changes, Steve already fixed ALPHA part

PR:		closes 11717
Submitted by:	Christian Weisgerber <naddy@@mips.rhein-neckar.de>
@
text
@d1 3
a3 3
--- star/star.c.orig	Thu May  6 17:09:19 1999
+++ star/star.c	Thu May  6 17:14:00 1999
@@@@ -403,44 +403,46 @@@@
d13 1
a13 1
-	error("\t-help,-h\tprint this help\n");
d26 1
a26 1
+	fprintf(fp, "\t-help,-h\tprint this help\n");
d32 3
a34 3
-	error("\t-fifo/-no_fifo\tuse/don't use a fifo to optimize data flow from/to tape\n");
+	fprintf(fp, "\t-fifo/-no_fifo\tuse/don't use a fifo to optimize data flow from/to tape\n");
 #if defined(USE_MMAP) && defined(USE_SHM)
d44 1
d56 1
a56 1
-	error("\t-I\t\tdo interactive creation/extraction/renaming\n");
d60 1
d67 1
d79 1
a79 1
+	fprintf(fp, "\t-I\t\tdo interactive creation/extraction/renaming\n");
d83 1
d88 1
a88 1
@@@@ -449,52 +451,54 @@@@
d98 2
a99 1
-	error("\t-keep_old_files,-k\tkeep existing files\n");
d116 2
a117 1
+	fprintf(fp, "\t-keep_old_files,-k\tkeep existing files\n");
d146 1
a146 1
-	error("\t-no_statistics\tdo not print statistics\n");
d149 1
a149 1
+	fprintf(fp, "\t-no_statistics\tdo not print statistics\n");
d156 5
a160 2
-	error("\t-newest_file\tfind newest regular file on tape\n");
-	error("\t-signed_checksum\tuse signed chars to calculate checksum\n");
d162 2
a163 2
-	error("\t-force_hole\ttry to extract all files with holes\n");
-	error("\t-to_stdout\textract files to stdout\n");
d165 5
a169 5
-	error("\t-force_remove\tforce to remove non writable files on extraction\n");
-	error("\t-ask_remove\task to remove non writable files on extraction\n");
-	error("\t-remove_first\tremove files before extraction\n");
-	error("\t-remove_recursive\tremove files recursive\n");
-	error("\t-nullout\tsimulate creating an achive to compute the size\n");
d172 5
a176 2
+	fprintf(fp, "\t-newest_file\tfind newest regular file on tape\n");
+	fprintf(fp, "\t-signed_checksum\tuse signed chars to calculate checksum\n");
d178 2
a179 2
+	fprintf(fp, "\t-force_hole\ttry to extract all files with holes\n");
+	fprintf(fp, "\t-to_stdout\textract files to stdout\n");
d181 5
a185 5
+	fprintf(fp, "\t-force_remove\tforce to remove non writable files on extraction\n");
+	fprintf(fp, "\t-ask_remove\task to remove non writable files on extraction\n");
+	fprintf(fp, "\t-remove_first\tremove files before extraction\n");
+	fprintf(fp, "\t-remove_recursive\tremove files recursive\n");
+	fprintf(fp, "\t-nullout\tsimulate creating an achive to compute the size\n");
d189 1
a189 1
@@@@ -503,27 +507,29 @@@@
d240 1
a240 1
@@@@ -532,12 +538,14 @@@@
d250 1
d259 1
@

