Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Dec 1996 10:21:09 -0800 (PST)
From:      Bill Paul <wpaul>
To:        CVS-committers, cvs-all, cvs-lib
Subject:   cvs commit:  src/lib/libc/net ether_addr.c gethostbydns.c gethostbynis.c getnetbynis.c getservent.c
Message-ID:  <199612271821.KAA01928@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
wpaul       96/12/27 10:21:09

  Modified:    lib/libc/net  ether_addr.c gethostbydns.c gethostbynis.c
                        getnetbynis.c  getservent.c
  Log:
  Small yet significant tweaks/cleanups:
  
  - getservent:
    o put _yp_check() proto under #ifdef YP where it belongs
    o local YP buffers should be YPMAXRECORD + 2 bytes long and should
      be NUL terminated after copying
  
  - gethostbynis:
    o local YP buffer should be YPMAXRECORD + 2 bytes long
  
  - getnetbynis:
    o local YP buffer should be YPMAXRECORD + 2 bytes long and should
      be NUL terminated after copying
  
  - ether_addr:
    o local YP buffers should be YPMAXRECORD + 2 bytes long and should
      be NUL terminated after copying (in this case it's BUFSIZ + 2 bytes,
      but it happens that BUFSIZ == YPMAXRECORD.
  
  - gethostbydns:
    o nuke stray 'return(NULL)' in __dns_getanswer() (harmless but looks silly)
  
  These are 2.2 candidates. I will wait a few days to make sure these don't
  break anything and then, if there are no objections, move them to the 2.2
  branch.
  
  Revision  Changes    Path
  1.7       +6 -4      src/lib/libc/net/ether_addr.c
  1.15      +1 -2      src/lib/libc/net/gethostbydns.c
  1.6       +3 -3      src/lib/libc/net/gethostbynis.c
  1.8       +4 -3      src/lib/libc/net/getnetbynis.c
  1.7       +3 -3      src/lib/libc/net/getservent.c



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