1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
$NetBSD: patch-ag,v 1.1 2006/11/16 02:28:58 markd Exp $
--- f_picobj.c.orig 2006-11-15 20:57:47.000000000 +1300
+++ f_picobj.c
@@ -266,28 +266,28 @@ open_picfile(name, type, pipeok, retname
if ((strlen(name) > 3 && !strcmp(".gz", name + (strlen(name)-3))) ||
(strlen(name) > 2 && !strcmp(".Z", name + (strlen(name)-3))) ||
(strlen(name) > 2 && !strcmp(".z", name + (strlen(name)-2)))) {
- sprintf(unc,"gunzip -q %s %s",gzoption,name);
+ sprintf(unc,"gunzip -q %s -- %s",gzoption,name);
*type = 1;
/* none of the above, see if the file with .Z or .gz or .z appended exists */
} else {
strcpy(retname, name);
strcat(retname, ".Z");
if (!stat(retname, &status)) {
- sprintf(unc, "gunzip %s %s",gzoption,retname);
+ sprintf(unc, "gunzip %s -- %s",gzoption,retname);
*type = 1;
name = retname;
} else {
strcpy(retname, name);
strcat(retname, ".z");
if (!stat(retname, &status)) {
- sprintf(unc, "gunzip %s %s",gzoption,retname);
+ sprintf(unc, "gunzip %s -- %s",gzoption,retname);
*type = 1;
name = retname;
} else {
strcpy(retname, name);
strcat(retname, ".gz");
if (!stat(retname, &status)) {
- sprintf(unc, "gunzip %s %s",gzoption,retname);
+ sprintf(unc, "gunzip %s -- %s",gzoption,retname);
*type = 1;
name = retname;
}
|