bug-gv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gv] Working around gs issues by changing to a safe working dir


From: Bernhard R. Link
Subject: Re: [bug-gv] Working around gs issues by changing to a safe working dir
Date: Sun, 30 May 2010 19:13:23 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

* Markus Steinborn <address@hidden> [100530 18:47]:
> But in src/psscan.c  (psscan), we have
>
>       if (system(cmd) || file_fileIsNotUseful(filename_dsc)) {
>
> which is used to call call ps2dsc. So it did not pass the chdir done on
> childs...

When using system one sadly cannot limit the chdir. That's why in that
case the chdir is done in the parent in my patch, and does not exit
in that case:

@@ -514,6 +515,12 @@ unc_ok:

       old_umask = umask(0077);
       INFMESSAGE(is PDF)
+      if (gv_gs_safeDir) {
+        if (chdir(GV_LIBDIR "/safe-gs-workdir") != 0) {
+         strcpy(s, "Chdir to " GV_LIBDIR "/safe-gs-workdir failed");
+         goto scan_failed;
+       }
+      }
       INFSMESSAGE(scan command,cmd)
       if (system(cmd) || file_fileIsNotUseful(filename_dsc)) {
        INFMESSAGE(scan subprocess failed)

> PS: "Reply" in my seamonkey addresses the responses to mails from you
> only to you,
> "Reply all" adresses the responses to mails from you to you with
> cc to address@hidden

The Mozilla mailers not having support for mailing lists is an old issue.
Perhaps some add-on like 
https://addons.mozilla.org/en-US/thunderbird/addon/4455/
also exists for seakmonkey?

I still read and reply to mails CCing me. It's just wearisom and increases the
chances I might miss some mail in situations like the current significantly.

        Bernhard R. Link
-- 
"Never contain programs so few bugs, as when no debugging tools are available!"
        Niklaus Wirth



reply via email to

[Prev in Thread] Current Thread [Next in Thread]