4.3 inetd bug
Chris Torek
chris at mimsy.UUCP
Wed Apr 5 03:56:47 AEST 1989
In article <2682 at cuuxb.ATT.COM> bsteve at cuuxb.ATT.COM (Netnews Administrator)
[Netnews Administrator??] writes:
>The expression and assignment on line 411 of src/etc/inetd.c of 4.3
>results in an ambiguous assignment.
>
> sep->se_wait = strcmp(arg, "wait") == 0;
This is not ambiguous---it means
call strcmp with arguments `arg' and `wait'
compare result of strcmp with 0, producing 1 (if equal) or 0
(if not equal)
assign result of comparison (0/1) to sep->se_wait
Any compiler that does something else is broken.
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain: chris at mimsy.umd.edu Path: uunet!mimsy!chris
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list