On Fri, 2005-03-04 at 13:56 -0500, Paul Jarc wrote:
> Sebastiano Vigna <[EMAIL PROTECTED]> wrote:
> I'd suggest:
> if (change_root) {
>   if (chdir(change_root) || chroot(".")) {
> 
> Otherwise, you might use -c alone and be misled into thinking you're
> safer than you really are.  This also makes -d unnecessary.

The point is that if you cannot set the working directory getting the
output file written in the right place becomes awkward (you must set it
explicitly). I agree, however, that an additional chdir("/") after the
chroot is probably a good idea.
-- 
Ciao,

                                        seba



_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to