]> granicus.if.org Git - shadow/log
shadow
15 years ago * libmisc/get_gid.c, libmisc/get_uid.c, libmisc/Makefile.am,
nekral-guest [Sat, 21 Mar 2009 20:24:37 +0000 (20:24 +0000)]
* libmisc/get_gid.c, libmisc/get_uid.c, libmisc/Makefile.am,
lib/get_gid.c, lib/get_uid.c, lib/Makefile.am: get_uid.c and
get_gid.c moved from libmisc/ to lib/.

15 years ago * src/grpck.c (check_members): When a member is removed, do not
nekral-guest [Sat, 21 Mar 2009 19:42:48 +0000 (19:42 +0000)]
* src/grpck.c (check_members): When a member is removed, do not
increase the index.
* src/grpck.c: Fix typo in messages and comments.

15 years ago * libmisc/sulog.c: Likewise for the su log.
nekral-guest [Sat, 21 Mar 2009 19:32:14 +0000 (19:32 +0000)]
* libmisc/sulog.c: Likewise for the su log.

15 years ago * src/vipw.c: Likewise for the backup file.
nekral-guest [Sat, 21 Mar 2009 19:28:02 +0000 (19:28 +0000)]
* src/vipw.c: Likewise for the backup file.

15 years ago * src/usermod.c: Likewise for the faillog and lastlog file.
nekral-guest [Sat, 21 Mar 2009 19:25:02 +0000 (19:25 +0000)]
* src/usermod.c: Likewise for the faillog and lastlog file.

15 years ago * src/useradd.c: Likewise for the default file, faillog, lastlog,
nekral-guest [Sat, 21 Mar 2009 19:18:06 +0000 (19:18 +0000)]
* src/useradd.c: Likewise for the default file, faillog, lastlog,
and mail spool.

15 years ago * lib/commonio.c: Call fsync before closing the backup file. This
nekral-guest [Sat, 21 Mar 2009 19:12:00 +0000 (19:12 +0000)]
* lib/commonio.c: Call fsync before closing the backup file. This
ensures that the backup file is flushed to the storage medium.

15 years agoFixed TODO item.
nekral-guest [Sun, 15 Mar 2009 21:43:24 +0000 (21:43 +0000)]
Fixed TODO item.

15 years agoAdded TODO items.
nekral-guest [Sun, 15 Mar 2009 21:38:46 +0000 (21:38 +0000)]
Added TODO items.

15 years ago * src/groupmod.c: Embed gshadow related cleanup in #ifdef
nekral-guest [Sun, 15 Mar 2009 21:38:08 +0000 (21:38 +0000)]
* src/groupmod.c: Embed gshadow related cleanup in #ifdef
SHADOWGRP.

15 years ago * src/usermod.c: get_number() replaced by getlong().
nekral-guest [Sun, 15 Mar 2009 21:34:20 +0000 (21:34 +0000)]
* src/usermod.c: get_number() replaced by getlong().
* src/usermod.c: When the user is renamed, make sure we do not
override an user with the same name (in passwd or shadow).

15 years ago * src/gpasswd.c: log_gpasswd_success_gshadow is in the cleanup
nekral-guest [Sun, 15 Mar 2009 21:32:26 +0000 (21:32 +0000)]
* src/gpasswd.c: log_gpasswd_success_gshadow is in the cleanup
stack only when the shadow group file is present.

15 years ago * NEWS, src/userdel.c: Make sure the user exists in the shadow
nekral-guest [Sun, 15 Mar 2009 21:29:16 +0000 (21:29 +0000)]
* NEWS, src/userdel.c: Make sure the user exists in the shadow
database before calling spw_remove().
* NEWS, src/userdel.c: When the user's group is removed, make sure
the group is in the gshadow database before calling sgr_remove().
* src/userdel.c: Improve warning's wording.

15 years ago * libmisc/cleanup.c: Fix del_cleanup. The arguments were not
nekral-guest [Sun, 15 Mar 2009 21:15:48 +0000 (21:15 +0000)]
* libmisc/cleanup.c: Fix del_cleanup. The arguments were not
desynchronized with the cleanup functions.
* libmisc/cleanup.c: cleanup_function_args is an array of void
pointer, not strings.

15 years ago * libmisc/find_new_gid.c: Fix find_new_gid() the current group
nekral-guest [Sun, 15 Mar 2009 21:12:57 +0000 (21:12 +0000)]
* libmisc/find_new_gid.c: Fix find_new_gid() the current group
database was not taken into account.

15 years ago * libmisc/addgrps.c: Fix compilation warnings.
nekral-guest [Sun, 15 Mar 2009 21:10:35 +0000 (21:10 +0000)]
* libmisc/addgrps.c: Fix compilation warnings.

15 years ago * man/po/Makefile.in.in: xml2po cannot exclude one entity for
nekral-guest [Sat, 14 Mar 2009 16:18:06 +0000 (16:18 +0000)]
* man/po/Makefile.in.in: xml2po cannot exclude one entity for
expansion. Make sure config.xml does not exist when the POT file
is created in order to keep the configurations in the POT file
* man/generate_translations.mak: make sure config.xml does not
exist neither when the translated XML is generated. Add the
missing %config; (strip out by xml2po). and make sure config.xml
is present when the translated manpage is generated.
* man/generate_mans.mak: config.xml is needed for the generation
of manpages (already in the .deps for the English manpages, but
needed for the translations).
* man/Makefile.am: Added missing CREATE_HOME.xml.

15 years ago * man/generate_mans.deps: Added Makefile dependency rules.
nekral-guest [Sat, 14 Mar 2009 13:29:55 +0000 (13:29 +0000)]
* man/generate_mans.deps: Added Makefile dependency rules.

15 years agoUpdated TODO list.
nekral-guest [Sat, 14 Mar 2009 13:21:15 +0000 (13:21 +0000)]
Updated TODO list.

15 years ago * etc/login.defs: Added note for PAM enabled configurations.
nekral-guest [Sat, 14 Mar 2009 13:20:25 +0000 (13:20 +0000)]
* etc/login.defs: Added note for PAM enabled configurations.

15 years agoAdded config.xml to the list of ignored files.
nekral-guest [Sat, 14 Mar 2009 13:18:28 +0000 (13:18 +0000)]
Added config.xml to the list of ignored files.

15 years ago * man/Makefile.am: Compute the dependencies for building the
nekral-guest [Sat, 14 Mar 2009 13:16:55 +0000 (13:16 +0000)]
* man/Makefile.am: Compute the dependencies for building the
manpages.

15 years ago * libmisc/addgrps.c: Fix warnings.
nekral-guest [Sat, 14 Mar 2009 13:13:47 +0000 (13:13 +0000)]
* libmisc/addgrps.c: Fix warnings.

15 years ago * man/po/fr.po: Added missing space.
nekral-guest [Sat, 14 Mar 2009 13:08:49 +0000 (13:08 +0000)]
* man/po/fr.po: Added missing space.

15 years ago * man/lastlog.8.xml: Document that there might be entries, for
nekral-guest [Sat, 14 Mar 2009 11:11:04 +0000 (11:11 +0000)]
* man/lastlog.8.xml: Document that there might be entries, for
deleted users, that are not displayed.

15 years ago * man/chgpasswd.8.xml, man/chpasswd.8.xml: Fix the man page in
nekral-guest [Sat, 14 Mar 2009 11:09:57 +0000 (11:09 +0000)]
* man/chgpasswd.8.xml, man/chpasswd.8.xml: Fix the man page in
case SHA crypt is not supported.

15 years ago * man/vipw.8.xml: MAX_MEMBERS_PER_GROUP is not used by vipw and
nekral-guest [Sat, 14 Mar 2009 11:08:39 +0000 (11:08 +0000)]
* man/vipw.8.xml: MAX_MEMBERS_PER_GROUP is not used by vipw and
vigr.

15 years ago * man/login.defs.5.xml: Indicate that sg uses the same variables
nekral-guest [Fri, 13 Mar 2009 23:17:43 +0000 (23:17 +0000)]
* man/login.defs.5.xml: Indicate that sg uses the same variables
as newgrp.
* man/login.defs.5.xml: vipw does not use any variable.
* man/login.defs.5.xml: In PAM enabled configurations, login still
uses some login.defs variables.

15 years ago * man/usermod.8.xml: use a <replaceable> instead of a
nekral-guest [Fri, 13 Mar 2009 23:14:18 +0000 (23:14 +0000)]
* man/usermod.8.xml: use a <replaceable> instead of a
<emphasis remap='I'>.

15 years ago * man/newusers.8.xml: Document the behavior of newusers for each
nekral-guest [Fri, 13 Mar 2009 23:12:06 +0000 (23:12 +0000)]
* man/newusers.8.xml: Document the behavior of newusers for each
field.
* man/newusers.8.xml: Do not add the note on PAM on non-PAM
enabled configurations.

15 years ago * src/faillog.c: Added support for the specification of a range of
nekral-guest [Fri, 13 Mar 2009 22:49:20 +0000 (22:49 +0000)]
* src/faillog.c: Added support for the specification of a range of
users with -u.
* src/faillog.c: Do not call print_one() for users which do not
exist.
* src/faillog.c: Make sure the user's entry is not outside the
faillog file and initialize the faillog structure in that case.
* src/faillog.c: Move print_one() closer to print().
* src/faillog.c: reset(), setmax(), set_locktime() can also change
entries of user which do not exist.
* src/faillog.c: reset(), setmax() and set_locktime() shall not
create entries for users which have no entries if the value has to
be set to 0.
* src/faillog.c: reset(), setmax() and set_locktime(): better
handling of users whose entry is outside the faillog file.
* src/faillog.c: Improved option handling. Options can now be
specified in any order.
* src/faillog.c: Improved warnings when options are not
compatible or when the faillog cannot be open with the right mode.
* src/faillog.c: Only fstat the faillog file once.
* man/faillog.8.xml: Improved documentation.

15 years ago * src/useradd.c, man/useradd.8.xml: Added long name for the -l
nekral-guest [Fri, 13 Mar 2009 22:30:38 +0000 (22:30 +0000)]
* src/useradd.c, man/useradd.8.xml: Added long name for the -l
option: --no-log-init.

15 years ago * src/chpasswd.c: Make sure the SHA related variables is not
nekral-guest [Fri, 13 Mar 2009 22:28:27 +0000 (22:28 +0000)]
* src/chpasswd.c: Make sure the SHA related variables is not
compiled when disabled at configuration time.
* src/chgpasswd.c: Make sure the SHA related variables is not
compiled when disabled at configuration time.
* src/chgpasswd.c: Fix the test for getlong() failure.

15 years ago * src/newusers.c: Make sure the SHA related variables are not
nekral-guest [Fri, 13 Mar 2009 22:26:35 +0000 (22:26 +0000)]
* src/newusers.c: Make sure the SHA related variables are not
compiled when disabled at configuration time.
* src/newusers.c: Added FIXME

15 years ago * src/gpasswd.c: Remove the documentation of options from the
nekral-guest [Fri, 13 Mar 2009 22:21:26 +0000 (22:21 +0000)]
* src/gpasswd.c: Remove the documentation of options from the
main() documentation. It will always be outdated here.

15 years ago * src/lastlog.c: lastlog variable renamed to ll to avoid name
nekral-guest [Fri, 13 Mar 2009 22:20:20 +0000 (22:20 +0000)]
* src/lastlog.c: lastlog variable renamed to ll to avoid name
clash with the structure.
* src/lastlog.c: check the offset in print_one() so that it is
used for the display of one entry or a set of entries.
* src/lastlog.c: Do not loop over the whole user database when -u
is used with a single user.
* src/lastlog.c: Check the size of the lastlog file so that we
can identify failures to read.

15 years ago * libmisc/salt.c: Removed l64a prototype. The libc declaration is
nekral-guest [Fri, 13 Mar 2009 19:17:24 +0000 (19:17 +0000)]
* libmisc/salt.c: Removed l64a prototype. The libc declaration is
non static, but the internal definition is static.

15 years agoAdd TODO item for the testsuite.
nekral-guest [Sun, 8 Mar 2009 23:30:56 +0000 (23:30 +0000)]
Add TODO item for the testsuite.

15 years agoCompile fixes. Fixes warnings.
nekral-guest [Sun, 8 Mar 2009 23:30:25 +0000 (23:30 +0000)]
Compile fixes. Fixes warnings.

15 years ago * src/gpasswd.c: log_gpasswd_success_gshadow only exists ifdef
nekral-guest [Sun, 8 Mar 2009 23:29:46 +0000 (23:29 +0000)]
* src/gpasswd.c: log_gpasswd_success_gshadow only exists ifdef
SHADOWGRP.

15 years ago * NEWS, src/newusers.c, src/usermod.c, src/useradd.c,
nekral-guest [Sun, 8 Mar 2009 20:43:15 +0000 (20:43 +0000)]
* NEWS, src/newusers.c, src/usermod.c, src/useradd.c,
src/groupmod.c, src/groupadd.c: Make sure no user or group are
created with an ID set to -1.

15 years ago * NEWS, src/grpck.c, src/pwck.c: Issue a warning if an ID is set
nekral-guest [Sun, 8 Mar 2009 20:29:22 +0000 (20:29 +0000)]
* NEWS, src/grpck.c, src/pwck.c: Issue a warning if an ID is set
to -1.

15 years ago * NEWS, src/grpck.c, src/pwck.c: Issue a warning if an ID is set
nekral-guest [Sun, 8 Mar 2009 20:28:55 +0000 (20:28 +0000)]
* NEWS, src/grpck.c, src/pwck.c: Issue a warning if an ID is set
to -1.

15 years ago * libmisc/get_gid.c, libmisc/get_uid.c, libmisc/Makefile.am,
nekral-guest [Sun, 8 Mar 2009 20:26:56 +0000 (20:26 +0000)]
* libmisc/get_gid.c, libmisc/get_uid.c, libmisc/Makefile.am,
lib/prototypes.h: Added get_uid() and get_gid() to parse user and
group IDs.

15 years ago * libmisc/getlong.c: Make sure the getlong argument is not empty.
nekral-guest [Sun, 8 Mar 2009 20:21:24 +0000 (20:21 +0000)]
* libmisc/getlong.c: Make sure the getlong argument is not empty.

15 years ago * contrib/adduser-old.c, contrib/adduser.c: Do not use the target
nekral-guest [Sat, 7 Mar 2009 16:32:11 +0000 (16:32 +0000)]
* contrib/adduser-old.c, contrib/adduser.c: Do not use the target
of snprintf in one of the format's parameters.

15 years ago * man/groupmems.8.xml: groupmems does not create new user.
nekral-guest [Sat, 7 Mar 2009 16:30:49 +0000 (16:30 +0000)]
* man/groupmems.8.xml: groupmems does not create new user.

15 years agoAdded TODO items.
nekral-guest [Sat, 7 Mar 2009 16:29:28 +0000 (16:29 +0000)]
Added TODO items.

15 years ago * NEWS, po/LINGUAS, po/kk.po: Added Kazakh translation. Thanks to
nekral-guest [Tue, 3 Mar 2009 20:53:20 +0000 (20:53 +0000)]
* NEWS, po/LINGUAS, po/kk.po: Added Kazakh translation. Thanks to
Timur Birsh <taem@linukz.org>.

15 years ago * libmisc/find_new_gid.c, libmisc/find_new_uid.c: Avoid calling
nekral-guest [Sun, 22 Feb 2009 23:23:15 +0000 (23:23 +0000)]
* libmisc/find_new_gid.c, libmisc/find_new_uid.c: Avoid calling
getgrent()/getpwent() after they return NULL. This caused LDAP to
return at the beginning of the group/user entries.

15 years ago * man/nologin.8.xml: Fix typo (HYSTORY -> HISTORY).
nekral-guest [Tue, 27 Jan 2009 18:17:54 +0000 (18:17 +0000)]
* man/nologin.8.xml: Fix typo (HYSTORY -> HISTORY).

15 years ago * NEWS, src/gpasswd.c: Only report success to audit and syslog
nekral-guest [Mon, 26 Jan 2009 22:03:37 +0000 (22:03 +0000)]
* NEWS, src/gpasswd.c: Only report success to audit and syslog
when the changes are committed to the system. Do not log failure
for on-memory changes to audit or syslog. Make sure failures and
inconsistencies will be reported in case of unexpected failures
(e.g. malloc failures). Only specify an audit message if it is not
implicitly implied by the type argument. Removed fail_exit
(replaced by atexit(do_cleanups)). Log failures in case of
permission denied.

15 years ago- newusers should use the CREATE_HOME variable (and new options are needed)
nekral-guest [Wed, 21 Jan 2009 14:49:42 +0000 (14:49 +0000)]
- newusers should use the CREATE_HOME variable (and new options are needed)

- usermod
  - the mode of new home directories should be set according to the
    original mode. Does copy_tree does this?

15 years ago * etc/login.defs: Improve the documentation of UMASK.
nekral-guest [Mon, 19 Jan 2009 10:21:50 +0000 (10:21 +0000)]
* etc/login.defs: Improve the documentation of UMASK.

15 years ago * man/useradd.8.xml, man/login.defs.d/CREATE_HOME.xml,
nekral-guest [Mon, 19 Jan 2009 10:00:53 +0000 (10:00 +0000)]
* man/useradd.8.xml, man/login.defs.d/CREATE_HOME.xml,
man/login.defs.5.xml: Document the CREATE_HOME variable.

15 years ago * man/limits.5.xml: Remove space before an end of tag.
nekral-guest [Mon, 19 Jan 2009 09:51:53 +0000 (09:51 +0000)]
* man/limits.5.xml: Remove space before an end of tag.

15 years ago * man/login.defs.d/UMASK.xml: Indicate how UMASK is used and
nekral-guest [Mon, 19 Jan 2009 09:51:00 +0000 (09:51 +0000)]
* man/login.defs.d/UMASK.xml: Indicate how UMASK is used and
limitations.

15 years ago * NEWS, src/su.c: Preserve COLORTERM in addition to TERM when su
nekral-guest [Tue, 6 Jan 2009 20:13:31 +0000 (20:13 +0000)]
* NEWS, src/su.c: Preserve COLORTERM in addition to TERM when su
is called with the -l option.

15 years ago * libmisc/chkname.c: Use a bool when possible instead of integers.
nekral-guest [Tue, 23 Dec 2008 22:42:22 +0000 (22:42 +0000)]
* libmisc/chkname.c: Use a bool when possible instead of integers.
* libmisc/chkname.c: Add brackets and parenthesis.

15 years ago * man/groupadd.8.xml, configure.in, man/config.xml.in: Use the
nekral-guest [Tue, 23 Dec 2008 22:36:44 +0000 (22:36 +0000)]
* man/groupadd.8.xml, configure.in, man/config.xml.in: Use the
real group name length limit in the documentation.

15 years ago * src/Makefile.am: Only link with the needed library. When
nekral-guest [Tue, 23 Dec 2008 00:44:29 +0000 (00:44 +0000)]
* src/Makefile.am: Only link with the needed library. When
compiled with PAM support, chfn, chsh, login, newgrp, passwd, and
su do not need the libcrypt library.

15 years ago * libmisc/cleanup_group.c: Fix compilation when compiled without
nekral-guest [Tue, 23 Dec 2008 00:39:54 +0000 (00:39 +0000)]
* libmisc/cleanup_group.c: Fix compilation when compiled without
shadow group support.

15 years ago * src/groupdel.c: Remove the fail_exit () declaration.
nekral-guest [Mon, 22 Dec 2008 23:23:14 +0000 (23:23 +0000)]
* src/groupdel.c: Remove the fail_exit () declaration.

15 years agoFix typo.
nekral-guest [Mon, 22 Dec 2008 22:13:50 +0000 (22:13 +0000)]
Fix typo.

15 years ago * src/gpasswd.c: Fix the support for usernames with arbitrary
nekral-guest [Mon, 22 Dec 2008 22:13:23 +0000 (22:13 +0000)]
* src/gpasswd.c: Fix the support for usernames with arbitrary
length.

15 years ago * libmisc/chkname.c: Remove outdated comments.
nekral-guest [Mon, 22 Dec 2008 22:08:13 +0000 (22:08 +0000)]
* libmisc/chkname.c: Remove outdated comments.

15 years ago * src/groupdel.c: Re-indent.
nekral-guest [Mon, 22 Dec 2008 22:07:12 +0000 (22:07 +0000)]
* src/groupdel.c: Re-indent.

15 years ago * src/groupmod.c: Re-indent.
nekral-guest [Mon, 22 Dec 2008 22:06:27 +0000 (22:06 +0000)]
* src/groupmod.c: Re-indent.
* src/groupmod.c: Do not add the command synopsis to the main ()
documentation. This avoids outdated information.

15 years ago * src/groupadd.c: Re-indent.
nekral-guest [Mon, 22 Dec 2008 22:03:34 +0000 (22:03 +0000)]
* src/groupadd.c: Re-indent.

15 years ago * libmisc/audit_help.c: Added audit_logger_message() to log
nekral-guest [Mon, 22 Dec 2008 21:52:43 +0000 (21:52 +0000)]
* libmisc/audit_help.c: Added audit_logger_message() to log
messages not related to an account.
* lib/prototypes.h, libmisc/cleanup.c, libmisc/cleanup_group.c,
libmisc/cleanup_user.c, libmisc/Makefile.am: Added stack of
cleanup functions to be executed on exit.
* NEWS, src/groupadd.c, src/groupdel.c, src/groupmod.c: Only
report success to audit and syslog when the changes are committed
to the system. Do not log failure for on-memory changes to audit
or syslog. Make sure failures and inconsistencies will be reported
in case of unexpected failures (e.g. malloc failures). Only
specify an audit message if it is not implicitly implied by the
type argument. Removed fail_exit (replaced by atexit(do_cleanups)).

15 years ago * NEWS, src/gpasswd.c: Added support usernames with arbitrary
nekral-guest [Mon, 15 Dec 2008 21:54:53 +0000 (21:54 +0000)]
* NEWS, src/gpasswd.c: Added support usernames with arbitrary
length.

15 years ago * configure.in: Fix the "$enable_acct_tools_setuid" = "yes" test.
nekral-guest [Sun, 30 Nov 2008 01:32:38 +0000 (01:32 +0000)]
* configure.in: Fix the "$enable_acct_tools_setuid" = "yes" test.

15 years ago * NEWS, configure.in, libmisc/chkname.c: make group max length a
nekral-guest [Sun, 30 Nov 2008 01:29:40 +0000 (01:29 +0000)]
* NEWS, configure.in, libmisc/chkname.c: make group max length a
configure option.  The configure behavior encoded is:
<no option> -> default of 16 (like today);
--with-group-name-max-length -> default of 16;
--without-group-name-max-length -> no max length;
--with-group-name-max-length=n > max is set to n.

15 years ago * src/su.c: (!USE_PAM) Provide visible information indicating that
nekral-guest [Sun, 23 Nov 2008 12:10:21 +0000 (12:10 +0000)]
* src/su.c: (!USE_PAM) Provide visible information indicating that
su was denied.

15 years ago * man/ja/login.1: Fix the path of the utmp and wtmp files.
nekral-guest [Sun, 23 Nov 2008 00:16:53 +0000 (00:16 +0000)]
* man/ja/login.1: Fix the path of the utmp and wtmp files.

15 years ago * man/su.1.xml: Fix the su synopsis. username is referenced in the
nekral-guest [Sun, 23 Nov 2008 00:16:10 +0000 (00:16 +0000)]
* man/su.1.xml: Fix the su synopsis. username is referenced in the
manpage, not LOGIN.

15 years ago * libmisc/chowntty.c: Only closelog() when failure cause an exit.
nekral-guest [Sun, 23 Nov 2008 00:06:56 +0000 (00:06 +0000)]
* libmisc/chowntty.c: Only closelog() when failure cause an exit.

15 years ago * libmisc/chowntty.c: Improve the logs for fchown and fchmod
nekral-guest [Sun, 23 Nov 2008 00:05:39 +0000 (00:05 +0000)]
* libmisc/chowntty.c: Improve the logs for fchown and fchmod
failures.

15 years ago * libmisc/chowntty.c, src/login.c, lib/prototypes.h: Remove the
nekral-guest [Sat, 22 Nov 2008 23:56:51 +0000 (23:56 +0000)]
* libmisc/chowntty.c, src/login.c, lib/prototypes.h: Remove the
tty argument from chown_tty. chown_tty always changes stdin and
does not need this argument anymore.

15 years ago * NEWS, libmisc/chowntty.c, libmisc/utmp.c: is_my_tty() moved from
nekral-guest [Sat, 22 Nov 2008 23:56:11 +0000 (23:56 +0000)]
* NEWS, libmisc/chowntty.c, libmisc/utmp.c: is_my_tty() moved from
utmp.c to chowntty.c. checkutmp() now only uses an existing utmp
entry if the pid matches and ut_line matches with the current tty.
This fixes a possible DOS when entries can be forged in the utmp
file.
* libmisc/chowntty.c, src/login.c, lib/prototypes.h: Remove the
tty argument from chown_tty. chown_tty always changes stdin and
does not need this argument anymore.

15 years ago * NEWS, libmisc/chowntty.c: Fix a race condition that could lead to
nekral-guest [Sat, 22 Nov 2008 23:22:16 +0000 (23:22 +0000)]
* NEWS, libmisc/chowntty.c: Fix a race condition that could lead to
gaining ownership or changing mode of arbitrary files.

15 years agoAdded todo items for pwck.
nekral-guest [Sat, 11 Oct 2008 13:15:29 +0000 (13:15 +0000)]
Added todo items for pwck.

15 years ago * man/gshadow.5.xml, man/shadow.5.xml, man/passwd.5.xml,
nekral-guest [Sat, 11 Oct 2008 12:59:02 +0000 (12:59 +0000)]
* man/gshadow.5.xml, man/shadow.5.xml, man/passwd.5.xml,
man/grpck.8.xml: Sorted SEE ALSO references.
* man/gshadow.5.xml: Added reference to grpck(8) and grpconv(8).
* man/pwck.8.xml: Added reference to grpck(8).
* man/shadow.5.xml: Added reference to pwck(8).
* man/passwd.5.xml: Added reference to pwck(8).
* man/grpck.8.xml: Added reference to pwck(8).

15 years ago * man/*.xml, man/login.defs.d/*.xml: Added copyright and licence
nekral-guest [Sat, 11 Oct 2008 11:44:43 +0000 (11:44 +0000)]
* man/*.xml, man/login.defs.d/*.xml: Added copyright and licence
header.

15 years ago * src/login.c: Always check the return value of the pam_* APIs.
nekral-guest [Sat, 20 Sep 2008 21:17:26 +0000 (21:17 +0000)]
* src/login.c: Always check the return value of the pam_* APIs.

15 years ago * src/login.c, man/login.1.xml: the username is not an optional
nekral-guest [Sat, 20 Sep 2008 20:20:19 +0000 (20:20 +0000)]
* src/login.c, man/login.1.xml: the username is not an optional
parameter of -f. Fix the getopt optstring, remove the parsing of
username in the -f processing block, and remove unnecessary checks
(username cannot be parsed twice anymore), better documentation of
the synopsis.

15 years ago * src/login.c: Erase the username later since it it used for the
nekral-guest [Sat, 20 Sep 2008 20:05:22 +0000 (20:05 +0000)]
* src/login.c: Erase the username later since it it used for the
fake password check (in case of empty password).

15 years ago * src/login.c: Explicitly tag the end of the #ifdef RLOGIN
nekral-guest [Sat, 20 Sep 2008 20:03:04 +0000 (20:03 +0000)]
* src/login.c: Explicitly tag the end of the #ifdef RLOGIN
sections.

15 years ago * src/login.c: Check that no username is specified with -r.
nekral-guest [Sat, 20 Sep 2008 20:00:51 +0000 (20:00 +0000)]
* src/login.c: Check that no username is specified with -r.
* src/login.c: Make sure a username is specified with -f.

15 years ago * src/login.c: Copy the name of the user authenticated by PAM to
nekral-guest [Sat, 20 Sep 2008 19:54:35 +0000 (19:54 +0000)]
* src/login.c: Copy the name of the user authenticated by PAM to
username. This simplify later logging (avoid USE_PAM
conditional).

15 years ago * src/login.c: Use a dynamic buffer for usernames.
nekral-guest [Sat, 20 Sep 2008 19:44:12 +0000 (19:44 +0000)]
* src/login.c: Use a dynamic buffer for usernames.

15 years ago * src/login.c: Existence of pam_user was already checked. pwd was
nekral-guest [Sat, 20 Sep 2008 16:23:04 +0000 (16:23 +0000)]
* src/login.c: Existence of pam_user was already checked. pwd was
already copied to pwent. Remove duplicated code.

15 years ago * src/login.c: check_flags() renamed process_flags(). All flag
nekral-guest [Sat, 20 Sep 2008 16:21:46 +0000 (16:21 +0000)]
* src/login.c: check_flags() renamed process_flags(). All flag
processing blocs moved to process_flags().

15 years ago * src/logoutd.c, src/userdel.c: Re-indent. This helps pmccabe.
nekral-guest [Sat, 20 Sep 2008 14:56:10 +0000 (14:56 +0000)]
* src/logoutd.c, src/userdel.c: Re-indent. This helps pmccabe.

15 years ago * src/login.c: Re-indent.
nekral-guest [Sat, 20 Sep 2008 14:39:09 +0000 (14:39 +0000)]
* src/login.c: Re-indent.

15 years ago * src/login.c: Add missing closing }. This was probably never
nekral-guest [Sat, 20 Sep 2008 14:21:51 +0000 (14:21 +0000)]
* src/login.c: Add missing closing }. This was probably never
noticed because UT_ADDR is never defined.

15 years ago * src/login.c: Do not mix USE_PAM and !USE_PAM code.
nekral-guest [Sat, 20 Sep 2008 14:17:20 +0000 (14:17 +0000)]
* src/login.c: Do not mix USE_PAM and !USE_PAM code.

15 years ago * src/login.c: Use failent_user to log to audit. username is the
nekral-guest [Sat, 20 Sep 2008 13:20:31 +0000 (13:20 +0000)]
* src/login.c: Use failent_user to log to audit. username is the
caller, not the user login tries to authenticate.
* src/login.c: Use pwd->pw_name instead of pwd->pw_uid. This might
be more precise (name must be unique, uid might not be).

15 years ago * man/passwd.1.xml: passwd cannot change the full name of the
nekral-guest [Sat, 20 Sep 2008 10:53:00 +0000 (10:53 +0000)]
* man/passwd.1.xml: passwd cannot change the full name of the
user, the user's login shell; but it can change the account or
password validity period. Thanks to Reuben Thomas.

15 years ago * src/useradd.c: Added missing declaration of Mflg.
nekral-guest [Sun, 14 Sep 2008 13:42:10 +0000 (13:42 +0000)]
* src/useradd.c: Added missing declaration of Mflg.
* src/pwck.c: Only unlock files if they were locked before (e.g.
not in read-only mode).
* src/pwck.c: Quote the username in error messages (harmonization
with other messages).
* libmisc/find_new_gid.c: Fixed typo (s/grp->gr_gid/group_id/).
* libmisc/find_new_gid.c: Likewise.