Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com From: Chris Faylor Date: Wed, 24 Nov 1999 21:37:43 -0500 To: Kazuhiro Fujieda Cc: cygwin-developers AT sourceware DOT cygnus DOT com Subject: Re: cygwin_bind bug. Message-ID: <19991124213743.A16356@cygnus.com> Mail-Followup-To: Kazuhiro Fujieda , cygwin-developers AT sourceware DOT cygnus DOT com References: <19991124192413 DOT A12159 AT cygnus DOT com> <19991124205652 DOT B15777 AT cygnus DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from fujieda@jaist.ac.jp on Thu, Nov 25, 1999 at 11:28:38AM +0900 On Thu, Nov 25, 1999 at 11:28:38AM +0900, Kazuhiro Fujieda wrote: >>>> On Wed, 24 Nov 1999 20:56:52 -0500 >>>> Chris Faylor said: > >> In that case, why even use an intermediate variable? Why not just check >> the results from bind and getsockname directly? > >There is no reason... I carelessly failed to notice there is >no need of it. > >> Index: net.cc >... >> else >> { >> _close (fd); >> chmod (un_addr->sun_path, >> (S_IFSOCK | S_IRWXU | S_IRWXG | S_IRWXO) & ~myself->umask); >> - res = 0; >> } > >It is overkill. No one can set `res' to 0. Hmm. I wonder how I deleted that line. The 'goto out' below it is also overkill. cgf