Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ncar!tank!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.bugs.4bsd Subject: Re: 4.3 inetd bug Keywords: 4.3bsd inetd Message-ID: <16728@mimsy.UUCP> Date: 4 Apr 89 17:56:47 GMT References: <2682@cuuxb.ATT.COM> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 20 In article <2682@cuuxb.ATT.COM> bsteve@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@mimsy.umd.edu Path: uunet!mimsy!chris