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  
    781781    else strcpy(dirname, ".");
    782782
    783783    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);
    785785      if (system(unc) != 0)
    786786        file_msg("Couldn't uncompress the file: \"%s\"", unc);
    787787      strcpy(name, plainname);
     
    792792          sprintf(tmpfile, "%s%s", TMPDIR, c);
    793793      else
    794794          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);
    796796      if (system(unc) != 0)
    797797          file_msg("Couldn't uncompress the file: \"%s\"", unc);
    798798      file_msg ("Uncompressing file %s in %s because it is in a read-only directory",