Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 May 2009 08:32:25 +0000 (UTC)
From:      Brian Somers <brian@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/usr.sbin/pwd_mkdb pwd_mkdb.c
Message-ID:  <200905200832.n4K8Wc7K099725@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
brian       2009-05-20 08:32:25 UTC

  FreeBSD src repository

  Modified files:
    usr.sbin/pwd_mkdb    pwd_mkdb.c 
  Log:
  SVN rev 192432 on 2009-05-20 08:32:25Z by brian
  
  Verify that the username length is smaller than MAXLOGNAME when
  asked to verify a passwd file (pwd_mkdb -C).
  
  Entries with oversized usernames are still permitted when building
  the passwd database.
  
  When entries are >= MAXLOGNAME in length, they are correctly stored
  in passwd, pwd.db and spwd.db but are only correctly retrieved by
  getpwent*() and getpwuid*().  getpwnam*() truncates to MAXLOGNAME - 1
  when reading from a file (breaking at least sh, tcsh and bash)
  and utilities such as su(1) check, complain and fail if the
  passed name is >= MAXLOGNAME in length.
  
  MFC after:      3 weeks
  
  Revision  Changes    Path
  1.52      +5 -1      src/usr.sbin/pwd_mkdb/pwd_mkdb.c



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