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

Re: `dot -c`: not coping with chroot environment?



tag 575797 + patch pending
kthxbye

Petr Salinger <Petr.Salinger@seznam.cz> writes:
> Unfortunately, the provided "proc/self/maps" is only close to linux one,
> it does not cope with chroots.
>
> The comment in graphviz source already says it works only on linux ;-)
>
> Please, could you verify whether this change works:
>
> --- a/lib/gvc/gvconfig.c
> +++ b/lib/gvc/gvconfig.c
> @@ -316,7 +316,8 @@
>                             continue;
>                         strcpy(line, path);  /* use line buffer for result */
>                         strcat(line, "/graphviz");  /* plugins are in "graphviz" subdirectory */
> -                       libdir = line;
> +                       if (access(line, R_OK))
> +                           libdir = line;
>                         break;
>                     }
>                 }
>

Nearly -- doing a access() == F_OK in the if works. Thanks for the help!
David, mind me building a upload with this change?

Regards

    Christoph

-- 
9FED 5C6C E206 B70A 5857  70CA 9655 22B9 D49A E731
Debian Developer | Lisp Hacker | CaCert Assurer

A. Because it breaks the logical sequence of discussion
Q. Why is top posting bad?

Attachment: pgp5WQL6R1YSn.pgp
Description: PGP signature


Reply to: