Up to [local] / src / usr.sbin / mtree
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_4_3_BASE
Revision 1.11 / (download) - annotate - [select for diffs], Wed Aug 10 00:42:09 2005 UTC (18 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE,
OPENBSD_4_4,
OPENBSD_4_3_BASE,
OPENBSD_4_3,
OPENBSD_4_2_BASE,
OPENBSD_4_2,
OPENBSD_4_1_BASE,
OPENBSD_4_1,
OPENBSD_4_0_BASE,
OPENBSD_4_0,
OPENBSD_3_9_BASE,
OPENBSD_3_9,
OPENBSD_3_8_BASE,
OPENBSD_3_8
Changes since 1.10: +4 -1 lines
Diff to previous 1.10 (colored)
Call open(2) with O_NONBLOCK and O_NOFOLLOW to make sure mtree can't be halted by a FIFO or special device. Use fgetln() instead of fgets() to handle arbitrarily long lines. If a line starts with a comment char, don't check for line continuation char. Adapted from a diff by Solar Designer. OK deraadt@ henning@