shadow/libmisc
nekral-guest 9adfc136b6 * lib/prototypes.h, configure.in, libmisc/Makefile.am,
libmisc/xgetXXbyYY.c, libmisc/xgetpwnam.c, libmisc/xgetpwuid.c,
  libmisc/xgetgrnam.c, libmisc/xgetgrgid.c, libmisc/xgetspnam.c:
  Added functions xgetpwnam(), xgetpwuid(), xgetgrnam(),
  xgetgrgid(), and xgetspnam(). They allocate memory for the
  returned structure and are more robust to successive calls. They
  are implemented with the libc's getxxyyy_r() functions if
  available.
* libmisc/limits.c, libmisc/entry.c, libmisc/chowntty.c,
  libmisc/addgrps.c, libmisc/myname.c, libmisc/rlogin.c,
  libmisc/pwdcheck.c, src/newgrp.c, src/login_nopam.c,
  src/userdel.c, src/lastlog.c, src/grpck.c, src/gpasswd.c,
  src/newusers.c, src/chpasswd.c, src/chfn.c, src/groupmems.c,
  src/usermod.c, src/expiry.c, src/groupdel.c, src/chgpasswd.c,
  src/su.c, src/useradd.c, src/groupmod.c, src/passwd.c, src/pwck.c,
  src/groupadd.c, src/chage.c, src/login.c, src/suauth.c,
  src/faillog.c, src/groups.c, src/chsh.c, src/id.c: Review all the
  usage of one of the getpwnam(), getpwuid(), getgrnam(),
  getgrgid(), and getspnam() functions. It was noticed on
  http://bugs.debian.org/341230 that chfn and chsh use a passwd
  structure after calling a pam function, which result in using
  information from the passwd structure requested by pam, not the
  original one. It is much easier to use the new xget... functions
  to avoid these issues. I've checked which call to the original
  get... functions could be left (reducing the scope of the
  structure if possible), and I've left comments to ease future
  reviews (e.g. /* local, no need for xgetpwnam */).
  Note: the getpwent/getgrent calls should probably be checked also.
* src/groupdel.c, src/expiry.c: Fix typos in comments.
* src/groupmod.c: Re-indent.
* libmisc/Makefile.am, lib/groupmem.c, lib/groupio.c, lib/pwmem.c,
  lib/pwio.c, lib/shadowmem.c, lib/shadowio.c: Move the __<xx>_dup
  functions (used by the xget... functions) from the <xx>io.c files
  to the new <xx>mem.c files. This avoid linking some utils against
  the SELinux library.
2007-11-18 23:15:26 +00:00
..
.indent.pro Commit the last version from the PLD CVS repository. 2007-10-07 14:36:51 +00:00
addgrps.c * lib/prototypes.h, configure.in, libmisc/Makefile.am, 2007-11-18 23:15:26 +00:00
age.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
audit_help.c [svn-upgrade] Integrating new upstream version, shadow (4.0.14) 2007-10-07 11:47:11 +00:00
basename.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
chkname.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
chkname.h Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
chowndir.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
chowntty.c * lib/prototypes.h, configure.in, libmisc/Makefile.am, 2007-11-18 23:15:26 +00:00
console.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
copydir.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
entry.c * lib/prototypes.h, configure.in, libmisc/Makefile.am, 2007-11-18 23:15:26 +00:00
env.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
failure.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
failure.h Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
fields.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
getdate.h [svn-upgrade] Integrating new upstream version, shadow (4.0.8) 2007-10-07 11:46:07 +00:00
getdate.y [svn-upgrade] Integrating new upstream version, shadow (4.0.15) 2007-10-07 11:47:22 +00:00
hushed.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
isexpired.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
limits.c * lib/prototypes.h, configure.in, libmisc/Makefile.am, 2007-11-18 23:15:26 +00:00
list.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
log.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
loginprompt.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
mail.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
Makefile.am * lib/prototypes.h, configure.in, libmisc/Makefile.am, 2007-11-18 23:15:26 +00:00
motd.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
myname.c * lib/prototypes.h, configure.in, libmisc/Makefile.am, 2007-11-18 23:15:26 +00:00
obscure.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
pam_pass.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
pwd2spwd.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
pwd_init.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
pwdcheck.c * lib/prototypes.h, configure.in, libmisc/Makefile.am, 2007-11-18 23:15:26 +00:00
rlogin.c * lib/prototypes.h, configure.in, libmisc/Makefile.am, 2007-11-18 23:15:26 +00:00
salt.c * libmisc/salt.c: Make sure the salt string is terminated at the 2007-11-16 19:02:00 +00:00
setugid.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
setupenv.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
shell.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
strtoday.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
sub.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
sulog.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
ttytype.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
tz.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
ulimit.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
utmp.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
valid.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00
xgetgrgid.c * lib/prototypes.h, configure.in, libmisc/Makefile.am, 2007-11-18 23:15:26 +00:00
xgetgrnam.c * lib/prototypes.h, configure.in, libmisc/Makefile.am, 2007-11-18 23:15:26 +00:00
xgetpwnam.c * lib/prototypes.h, configure.in, libmisc/Makefile.am, 2007-11-18 23:15:26 +00:00
xgetpwuid.c * lib/prototypes.h, configure.in, libmisc/Makefile.am, 2007-11-18 23:15:26 +00:00
xgetspnam.c * lib/prototypes.h, configure.in, libmisc/Makefile.am, 2007-11-18 23:15:26 +00:00
xgetXXbyYY.c * lib/prototypes.h, configure.in, libmisc/Makefile.am, 2007-11-18 23:15:26 +00:00
xmalloc.c Added the subversion svn:keywords property (Id) for proper identification. 2007-11-10 23:46:11 +00:00