On Sat, Dec 26, 2009 at 01:28:06AM -0800, Kees Cook wrote: > if ((fd = fopen(infile,"r")) < 0) Sorry was typing too fast. Above should be: if (!(fd = fopen(infile,"r"))) -- Kees Cook Ubuntu Security Team