Ticket #25458: patch-f_util.c.diff
File patch-f_util.c.diff, 862 bytes (added by lawrence.ong@…, 14 years ago) |
---|
-
f_util.c
old new 781 781 else strcpy(dirname, "."); 782 782 783 783 if (access(dirname, W_OK) == 0) { /* OK - the directory is writable */ 784 sprintf(unc, "gunzip -q %s", name);784 sprintf(unc, "gunzip -q -- %s", name); 785 785 if (system(unc) != 0) 786 786 file_msg("Couldn't uncompress the file: \"%s\"", unc); 787 787 strcpy(name, plainname); … … 792 792 sprintf(tmpfile, "%s%s", TMPDIR, c); 793 793 else 794 794 sprintf(tmpfile, "%s/%s", TMPDIR, plainname); 795 sprintf(unc, "gunzip -q -c %s > %s", name, tmpfile);795 sprintf(unc, "gunzip -q -c -- %s > %s", name, tmpfile); 796 796 if (system(unc) != 0) 797 797 file_msg("Couldn't uncompress the file: \"%s\"", unc); 798 798 file_msg ("Uncompressing file %s in %s because it is in a read-only directory",