Then of course is the obvious: if (fd = open("/etc/passwd", 0) == -1) panic("No password file?"); This, too goes in the category of "when in doubt, parenthesize". -- Marty Shannon UUCP: ihnp4!eagle!mjs Phone: +1 201 522 6063 Warped people are throwbacks from the days of the United Federation of Planets.