- /* Don't quote filename if it's already quoted. */
- if (p->c_storage && *(p->c_storage-1) == '\'') {
- /* If there isn't a matching close quote, bail
- out. */
- if (*(cp+1) != '\'') {
- adios(NULL, "%%f/%%F not properly escaped: "
- "%s%s\n",
- buffer, cp);
- }
- snprintf (bp, buflen, "%s%s", s, p->c_storage);
- } else {
- if (*(cp+1) != '\0' && *(cp+1) == '\'') {
- adios(NULL, "%%f/%%F not properly escaped: "
- "%s%s\n",
- buffer, cp);
- }
- snprintf (bp, buflen, "%s'%s'", s, p->c_storage);
- }
-
+ /* Always quote the filename. I'm not sure if that's
+ right. And maybe not necessary: is this always
+ a temp file? If so, the quoting is harmless. */
+ snprintf (bp, buflen, "%s'%s'", s, p->c_storage);