Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Aug 2002 10:37:42 -0700 (PDT)
From:      John Polstra <jdp@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/net rcmd.c
Message-ID:  <200208241737.g7OHbgNV063820@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jdp         2002/08/24 10:37:42 PDT

  Modified files:
    lib/libc/net         rcmd.c 
  Log:
  Fix a bug in __ivaliduser_sa() which caused some rsh/rlogin attempts
  to fail needlessly if a reverse DNS lookup of the IP address didn't
  come up with a hostname.  As a comment in the code clearly stated,
  the "damn hostname" was looked up only for the purpose of netgroup
  matching.  But if that lookup failed, the function bailed out
  immediately even though in many cases netgroup matching would not
  be used.
  
  This change marks the hostname as unknown but continues.  Where
  netgroup matching is performed, an unknown hostname is handled
  conservatively.  I.e., for "+@netgroup" (accept) entries an unknown
  hostname never matches, and for "-@netgroup" (reject) entries an
  unknown hostname always matches.
  
  In the lines affected (only), I also fixed a few bogus casts.  There
  are others, and in fact this entire file would be a good candidate
  for a cleanup sweep.
  
  Reviewed by:    imp (wearing his flourescent yellow Security Team cap)
  MFC after:      2 days
  
  Revision  Changes    Path
  1.37      +5 -5      src/lib/libc/net/rcmd.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208241737.g7OHbgNV063820>