summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1998-02-15 15:34:20 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1998-02-15 15:34:20 +0000
commit46923adadad4b174d913387e4d66b419818fb585 (patch)
treeea08d01048fb4b3910347a61bc296fa73c86af31 /gnu
parent71a3f8f1bd98ac27954c83bffaff35e0d7b5d938 (diff)
Notes
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/gzip/gzexe2
-rw-r--r--gnu/usr.bin/gzip/gzip.12
-rw-r--r--gnu/usr.bin/gzip/gzip.c4
-rw-r--r--gnu/usr.bin/gzip/trees.c4
-rw-r--r--gnu/usr.bin/gzip/util.c8
5 files changed, 6 insertions, 14 deletions
diff --git a/gnu/usr.bin/gzip/gzexe b/gnu/usr.bin/gzip/gzexe
index 0c248d992015..27b697b21c9e 100644
--- a/gnu/usr.bin/gzip/gzexe
+++ b/gnu/usr.bin/gzip/gzexe
@@ -74,7 +74,7 @@ for i do
continue
fi
case "`basename $i`" in
- gzip | tail | chmod | ln | sleep | rm)
+ sh | gzip | tail | chmod | ln | sleep | rm)
echo "${x}: $i would depend on itself"; continue ;;
esac
if test -z "$cpmod"; then
diff --git a/gnu/usr.bin/gzip/gzip.1 b/gnu/usr.bin/gzip/gzip.1
index 5304d30b44ea..2d1e1a4ffc36 100644
--- a/gnu/usr.bin/gzip/gzip.1
+++ b/gnu/usr.bin/gzip/gzip.1
@@ -195,7 +195,7 @@ is read from or written to a terminal. If the input data is not in
a format recognized by
.I gzip,
and if the option --stdout is also given, copy the input data without change
-to the standard ouput: let
+to the standard output: let
.I zcat
behave as
.I cat.
diff --git a/gnu/usr.bin/gzip/gzip.c b/gnu/usr.bin/gzip/gzip.c
index 5390522b9c9f..db28cc66a7c6 100644
--- a/gnu/usr.bin/gzip/gzip.c
+++ b/gnu/usr.bin/gzip/gzip.c
@@ -45,7 +45,7 @@ static char *license_msg[] = {
*/
#ifdef RCSID
-static char rcsid[] = "$Id: gzip.c,v 1.4 1995/05/30 05:00:33 rgrimes Exp $";
+static char rcsid[] = "$Id: gzip.c,v 1.4.6.1 1997/12/29 23:29:12 wosch Exp $";
#endif
#include <ctype.h>
@@ -1580,7 +1580,6 @@ local int check_ofname()
return ERROR;
}
}
- (void) chmod(ofname, 0777);
if (unlink(ofname)) {
fprintf(stderr, "%s: ", progname);
perror(ofname);
@@ -1640,7 +1639,6 @@ local void copy_stat(ifstat)
#endif
remove_ofname = 0;
/* It's now safe to remove the input file: */
- (void) chmod(ifname, 0777);
if (unlink(ifname)) {
WARN((stderr, "%s: ", progname));
if (!quiet) perror(ifname);
diff --git a/gnu/usr.bin/gzip/trees.c b/gnu/usr.bin/gzip/trees.c
index d5b41c8ab7d1..edb567cd8a5b 100644
--- a/gnu/usr.bin/gzip/trees.c
+++ b/gnu/usr.bin/gzip/trees.c
@@ -59,7 +59,7 @@
#include "gzip.h"
#ifdef RCSID
-static char rcsid[] = "$Id: trees.c,v 1.3 1993/10/14 00:33:11 nate Exp $";
+static char rcsid[] = "$Id: trees.c,v 1.4 1995/05/30 05:00:40 rgrimes Exp $";
#endif
/* ===========================================================================
@@ -1070,6 +1070,6 @@ local void set_file_type()
while (n < LITERALS) bin_freq += dyn_ltree[n++].Freq;
*file_type = bin_freq > (ascii_freq >> 2) ? BINARY : ASCII;
if (*file_type == BINARY && translate_eol) {
- warn("-l used on binary file", "");
+ WARN((stderr, "-l used on binary file", ""));
}
}
diff --git a/gnu/usr.bin/gzip/util.c b/gnu/usr.bin/gzip/util.c
index 2cddf92f8e07..426f94159609 100644
--- a/gnu/usr.bin/gzip/util.c
+++ b/gnu/usr.bin/gzip/util.c
@@ -5,7 +5,7 @@
*/
#ifdef RCSID
-static char rcsid[] = "$Id: util.c,v 1.3 1993/10/14 00:33:26 nate Exp $";
+static char rcsid[] = "$Id: util.c,v 1.4 1995/05/30 05:00:43 rgrimes Exp $";
#endif
#include <ctype.h>
@@ -340,12 +340,6 @@ void error(m)
abort_gzip();
}
-void warn(a, b)
- char *a, *b; /* message strings juxtaposed in output */
-{
- WARN((stderr, "%s: %s: warning: %s%s\n", progname, ifname, a, b));
-}
-
void read_error()
{
fprintf(stderr, "\n%s: ", progname);