On Wed, Jun 13, 2007 at 11:15:52AM -0500, Rick C. Petty wrote:
> Another improvement made by using stat(2)/chmod(2) over chmod(1) using
> system(3) variants is the protection against malicious filenames.  The
> original code should have used fork/execv instead anyway.

To be precise, this case should use open/fstat/fchmod to avoid another
bunch of race conditions.

Joerg
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to