[EMAIL PROTECTED] writes:
> +do_chroot_jail ()
> +{
> +  /* Now we chroot, setuid/setgrp and chdir. If something goes wrong, we 
> exit (this is a
> +     security-sensitive area). First we split jail_spec into its components, 
> then we
> +     retrieve the user/group id (necessarily *before* chroot'ing!) and 
> finally we perform
> +     the actual actions. */
> +
> +  char *jail_spec_writable = (char *)malloc (strlen (jail_spec) + 1);
> +  strcpy(jail_spec_writable, jail_spec);

Following up on Jan, this would be strdup(jail_spec), but can you
use our String library? It's immune to all kinds of coding errors
with indices and memory management. 
 

-- 

 Han-Wen Nienhuys   |   [EMAIL PROTECTED]   |   http://www.xs4all.nl/~hanwen 



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

Reply via email to