Commit Graph

  • 791ebc58dd * libmisc/copydir.c, lib/prototypes.h: Caller can choose not to copy the extended attributes (the SELinux context is hence reset) * src/usermod.c: Copy the extended attributes. * src/useradd.c: Only reset the SELinux context. nekral-guest 2010-08-21 17:31:45 +00:00
  • 3f63005e91 * configure.in: Fixed typo. Thanks to Peter Vrabec. nekral-guest 2010-08-21 16:51:53 +00:00
  • f7a00a2334 * libmisc/console.c, libmisc/motd.c, libmisc/setupenv.c, libmisc/sulog.c, libmisc/hushed.c, libmisc/failure.c, libmisc/loginprompt.c, libmisc/ttytype.c, libmisc/pam_pass_non_interractive.c, src/userdel.c, src/login.c, lib/commonio.c, lib/commonio.h: Fix some const issues. * libmisc/motd.c: Avoid multi-statements lines. * libmisc/motd.c: Support long MOTD_FILE. * libmisc/list.c, lib/prototypes.h: Revert previous change. dup_list and is_on_list are used with members as defined for the group structure, and thus even if the list is not modified, the list elements cannot be constant strings. * libmisc/system.c: Avoid C++ comments. * src/vipw.c: WITH_TCB cannot be tested inside a gettextized string. Split the Usage string. * lib/commonio.h: Re-indent. nekral-guest 2010-08-21 15:32:53 +00:00
  • 6a2f349ec5 * libmisc/audit_help.c (audit_logger):pgname is not used. We let audit find out the name of the program. * libmisc/audit_help.c: Re-indent. nekral-guest 2010-08-21 15:22:39 +00:00
  • 4f667bb442 * lib/groupio.c: Avoid implicit conversion from signed to unsigned. nekral-guest 2010-08-20 20:35:52 +00:00
  • 22294bfac8 * lib/commonio.c: Make sure there are no NULL pointer dereference. nekral-guest 2010-08-20 20:34:44 +00:00
  • 07e67e1350 * libmisc/remove_tree.c: Ignore snprintf return value. nekral-guest 2010-08-20 20:27:34 +00:00
  • 660ed49daf * lib/prototypes.h, libmisc/list.c: dup_list() and is_on_list() do not change the members of the list they receive. Added const qualifiers. nekral-guest 2010-08-20 20:26:32 +00:00
  • fad23b25a1 * src/usermod.c: Re-indent. nekral-guest 2010-08-20 18:24:33 +00:00
  • 6b74294844 * lib/commonio.c: Avoid multi-statements lines. nekral-guest 2010-08-20 18:09:14 +00:00
  • 11a564b6bd * man/po/fr.po: Fix a typo. nekral-guest 2010-08-20 17:57:33 +00:00
  • 939386aabb Kazakh translation update bubulle 2010-06-24 18:43:04 +00:00
  • 01ed010aed * man/po/fr.po: Fix some typos. Minor updates. nekral-guest 2010-04-12 21:49:09 +00:00
  • 52ec0ba938 * po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated. * po/*.po, man/po/*.po: Updated PO files. nekral-guest 2010-04-12 21:05:33 +00:00
  • 4f8310dfde * man/newusers.8.xml, man/useradd.8.xml, man/groupadd.8.xml, man/login.defs.d/UMASK.xml, man/login.defs.d/CREATE_HOME.xml, man/login.defs.d/LOGIN_RETRIES.xml: Fix typos: choosen, overriden, bahavior. nekral-guest 2010-04-04 23:17:11 +00:00
  • 263f37a69b * man/usermod.8.xml: Document changes of ownerships. nekral-guest 2010-04-04 21:23:02 +00:00
  • 56483122b6 * man/vipw.8.xml: Fix formatting typo. * man/vipw.8.xml: Document the login.defs parameters only when tcb is enabled. nekral-guest 2010-04-04 20:57:54 +00:00
  • 16362e289b 2010-04-04 Nicolas François <nicolas.francois@centraliens.net> nekral-guest 2010-04-04 20:55:46 +00:00
  • 586a8f9e9e * man/hu/passwd.5: Fix formatting typo. * man/id/login.1: Likewise. nekral-guest 2010-04-04 20:48:29 +00:00
  • a9249dbb0a * man/vipw.8.xml: When TCB is enabled, vipw uses login.defs. nekral-guest 2010-03-31 19:52:30 +00:00
  • 47733f1a0f Fix typos. nekral-guest 2010-03-31 12:24:03 +00:00
  • bb02ec3261 Fix typo. nekral-guest 2010-03-31 09:27:11 +00:00
  • c3689fa60b * NEWS, libmisc/copydir.c: When a hardlink is detected, the original hardlink should not be removed. nekral-guest 2010-03-30 23:14:04 +00:00
  • dc0947da78 * po/POTFILES.in, libmisc/Makefile.am, lib/prototypes.h, libmisc/remove_tree.c, libmisc/copydir.c: Split remove_tree() outside of copydir.c to avoid linking against libacl or libattr. nekral-guest 2010-03-30 21:54:29 +00:00
  • 427b60f288 * src/su.c: shell's name must be -su when a su fakes a login. nekral-guest 2010-03-30 21:32:36 +00:00
  • 902aad57af * NEWS, configure.in, libmisc/copydir.c, man/useradd.8.xml, man/usermod.8.xml, src/Makefile.am: Added support for ACLs and Extended Attributes. nekral-guest 2010-03-30 21:01:27 +00:00
  • 6afd7859f8 * libmisc/copydir.c: Document the sections closed by #endif nekral-guest 2010-03-30 21:00:43 +00:00
  • cfce9890fb * etc/login.defs: Updated description of UMASK to indicate its usage by pam_umask. * man/login.defs.d/UMASK.xml: Likewise. nekral-guest 2010-03-27 20:11:21 +00:00
  • 4b98379ce1 * man/vipw.8.xml: Add section ENVIRONMENT. nekral-guest 2010-03-27 20:09:49 +00:00
  • ee3d411024 * etc/login.defs: Updated description of UMASK to indicate its usage by pam_umask. nekral-guest 2010-03-26 11:53:06 +00:00
  • 40d1598165 * man/login.1.xml: login does not check for new mails in PAM enabled versions. This is done by pam_mail. nekral-guest 2010-03-25 20:38:31 +00:00
  • 97961b8bee * NEWS, src/chpasswd.c, man/chpasswd.8.xml, man/login.defs.5.xml: PAM enabled versions: restore the -e option to allow restoring passwords without knowing those passwords. Restore together the -m and -c options. nekral-guest 2010-03-25 20:35:59 +00:00
  • fcd5b38caf * src/su.c, src/vipw.c, src/newgrp.c: When the child is interrupted, stop ourself with a SIGSTOP signal. nekral-guest 2010-03-23 13:05:06 +00:00
  • 052e9105f7 * src/newgrp.c: Limit the scope of variable pid. * src/login_nopam.c: Limit the scope of variables end, lineno, i, str_len. * src/logoutd.c: Limit the scope of variable c. * src/vipw.c: Re-indent. * src/vipw.c: Close the file after the creation of the backup. * src/useradd.c (set_default): Close input file on failure. * src/useradd.c: Limit the scope of variables spool, file, fd, gr, gid, mode. * src/passwd.c: Limit the scope of variables last and ok. * src/chage.c: Fix typo (non breaking space). * src/login.c: Limit the scope of variables erasechar killchar, c, failed. * src/groups.c: Limit the scope of variable ngroups, pri_grp, i. * src/id.c: Limit the scope of variable i. nekral-guest 2010-03-23 11:26:34 +00:00
  • 4375be4642 * lib/utent.c (getutline): Remove getutline(). This function is no more used. * lib/groupmem.c: Limit the scope of variable i. * lib/shadow.c: Avoid implicit conversion of pointers and integers to booleans. * lib/shadow.c: Added brackets. * libmisc/limits.c: Limit the scope of variable tmpmask. * libmisc/copydir.c: Close opened file on failure. * libmisc/loginprompt.c: Limit the scope of variable envc. * libmisc/find_new_uid.c, libmisc/find_new_gid.c: Limit the scope of variable id. nekral-guest 2010-03-23 08:56:52 +00:00
  • 5ebb35654b * libmisc/find_new_gid.c, libmisc/find_new_uid.c: Detect some misconfigurations of UID_MIN, UID_MAX, SYS_UID_MIN, SYS_UID_MAX (and the GID equivalents) nekral-guest 2010-03-21 01:20:50 +00:00
  • a83124dade * NEWS, configure.in: Next version will be 4.1.5. nekral-guest 2010-03-20 10:31:36 +00:00
  • f729486b33 * libmisc/limits.c: Re-indent to make pmccabe happy. nekral-guest 2010-03-20 10:29:27 +00:00
  • d1eae4c7e3 * man/generate_translations.mak, man/generate_mans.mak: Fix distcheck. All manpages generation code shall be enclosed in ENABLE_REGENERATE_MAN conditions. nekral-guest 2010-03-20 10:25:34 +00:00
  • 9b6beb496a * man/useradd.8.xml: Do not document the features which are not working. * man/useradd.8.xml: Fix typo: -u was meant instead of -o. * man/useradd.8.xml: Document that the default behavior depends on CREATE_HOME. nekral-guest 2010-03-20 10:23:57 +00:00
  • 6e0fa02fd0 * lib/groupio.c: Fix memory management insplit_groups(). nekral-guest 2010-03-20 10:21:40 +00:00
  • f19f67c39c * libmisc/strtoday.c: Empty dates indicate a disabled date, this is not an error. nekral-guest 2010-03-20 10:19:50 +00:00
  • 823735750a * libmisc/limits.c: Removed unused variable. nekral-guest 2010-03-19 11:25:56 +00:00
  • 68b6e6d2be * src/useradd.c, lib/commonio.c, po/POTFILES.in: Fix typos. nekral-guest 2010-03-19 11:01:32 +00:00
  • e19c7200eb * lib/commonio.c: Stop sorting entries when we reach the first NIS line. nekral-guest 2010-03-18 23:21:21 +00:00
  • be3a05eab2 Add Alioth feature request reference. nekral-guest 2010-03-18 23:21:10 +00:00
  • 5e38d92a95 * src/chsh.c: Even for root, warn if an invalid shell is specified. nekral-guest 2010-03-18 23:21:00 +00:00
  • 5204a15f95 * man/limits.5.xml: Document the selection of the limits when multiple lines match the user. nekral-guest 2010-03-18 23:20:41 +00:00
  • 680a4985ea * man/limits.5.xml: Document the selection of the limits when multiple lines match the user. nekral-guest 2010-03-18 23:20:30 +00:00
  • dfce564026 * libmisc/limits.c: Re-indent. * libmisc/limits.c: Reformat the documentation. Avoid personal comments. * man/limits.5.xml: Document the new features. nekral-guest 2010-03-18 23:20:24 +00:00
  • 52c2bb51fb * NEWS, libmisc/limits.c: Fix parsing of limits. * NEWS, libmisc/limits.c, man/limits.5.xml: Add support for infinite limits. * NEWS, libmisc/limits.c, man/limits.5.xml: Add support for @group syntax. nekral-guest 2010-03-18 23:20:15 +00:00
  • 6b14a0d08c * lib/tcbfuncs.h: Re-indent. * lib/tcbfuncs.h: Explicitly indicate functiontakinga void parameter. nekral-guest 2010-03-18 19:23:00 +00:00
  • 395914c162 Reverse comparison for consistency. nekral-guest 2010-03-18 18:58:52 +00:00
  • 8e2010a26c * src/useradd.c: When exiting because of a failure, warn if an home directory created, but cannot be removed. nekral-guest 2010-03-18 18:57:03 +00:00
  • 86498400da * libmisc/chowndir.c: Re-indent. * libmisc/chowndir.c: Avoid assignment in comparisons. * libmisc/chowndir.c: Added brackets and parenthesis. nekral-guest 2010-03-18 18:52:53 +00:00
  • abffa73776 - add options -g / -G to specify alternative group / gshadow files nekral-guest 2010-03-18 12:28:25 +00:00
  • 0cbbdb32c4 * libmisc/strtoday.c: Add support for numerical dates, assuming they are already specified in number of days since Epoch. Return -2 in case of errors to support the specification of -1. * src/usermod.c, src/useradd.c: Adapt to the new error value of strtoday(). * src/chage.c: Remove isnum(). Adapt to the new error value of strtoday(). Support for numerical dates is moved to strtoday(). nekral-guest 2010-03-18 11:53:49 +00:00
  • 79fa4f3343 * man/po/fr.po: Harmonize name of parameters. nekral-guest 2010-03-18 10:54:32 +00:00
  • ab50cd2bd8 * NEWS: Indicate which tools support TCB. nekral-guest 2010-03-18 10:53:56 +00:00
  • 27f67dcad0 * src/pwck.c: Unlock the password and shadow files when there is a failure to prepare the update in memory. nekral-guest 2010-03-18 10:52:52 +00:00
  • 6a1dea6602 * src/pwck.c: Only log to SYSLOG when acting on system files. nekral-guest 2010-03-18 10:35:11 +00:00
  • 657271eb04 * src/pwck.c: Remove the -s option from the usage when USE_TCB is enabled. The option is still supported, but has no effect, as documented in the manpage. nekral-guest 2010-03-18 10:25:08 +00:00
  • 2db82460b1 * src/pwck.c: Document the sections closed by #endif * src/pwck.c, man/pwck.8.xml: No alternative shadow file can be given when USE_TCB is enabled. nekral-guest 2010-03-18 10:23:51 +00:00
  • 07c6e99725 * src/pwck.c: Do not use pwd_file and spw_file. Always use the dbname() functions. nekral-guest 2010-03-18 09:46:15 +00:00
  • f77e9d0d80 * src/pwck.c: Re-indent. nekral-guest 2010-03-18 09:33:55 +00:00
  • a996fac57b * src/userdel.c, src/usermod.c, src/vipw.c, src/useradd.c, src/pwck.c, src/chage.c, lib/shadowio.c: Explicitly use the SHADOWTCB_FAILURE return code instead of 0 or implicit conversion to booleans. nekral-guest 2010-03-18 09:21:27 +00:00
  • 8228f99c36 2010-03-18 Paweł Hajdan, Jr. <phajdan.jr@gentoo.org> nekral-guest 2010-03-18 09:01:04 +00:00
  • 41b5cc2d20 * src/faillog.c: Re-indent. nekral-guest 2010-03-18 00:07:00 +00:00
  • d1f5c949a9 * lib/tcbfuncs.c: Re-indent. nekral-guest 2010-03-18 00:06:33 +00:00
  • 29025e40f4 * lib/tcbfuncs.c: Added brackets and parenthesis. nekral-guest 2010-03-18 00:06:21 +00:00
  • 1d6673a166 * lib/tcbfuncs.c: Avoid implicit int to mode_t conversion. nekral-guest 2010-03-18 00:05:57 +00:00
  • fba0a83c03 * lib/tcbfuncs.c: move_dir() and shadowtcb_move() need a non NULL stored_tcb_user. nekral-guest 2010-03-18 00:05:35 +00:00
  • 7195eb991d * lib/tcbfuncs.c: Removed dead return. nekral-guest 2010-03-18 00:05:11 +00:00
  • 9f4653b0df * lib/tcbfuncs.c: Include prototypes.h for the definition of Prog. nekral-guest 2010-03-18 00:04:54 +00:00
  • 99fbf50fa2 Added splint annotations. nekral-guest 2010-03-18 00:04:33 +00:00
  • ee15c8717f * lib/tcbfuncs.c: Avoid integer to char conversions. nekral-guest 2010-03-18 00:04:05 +00:00
  • 37b4c8737f * lib/tcbfuncs.c: Avoid implicit signed to unsigned conversions. nekral-guest 2010-03-18 00:03:48 +00:00
  • 1d969818fd * lib/tcbfuncs.c: Ignore fflush() return value. nekral-guest 2010-03-18 00:03:29 +00:00
  • 4ca259adaa * lib/tcbfuncs.c: Include shadowio.h, needed for the spw_setdbname's prototype. nekral-guest 2010-03-18 00:03:06 +00:00
  • 11e132c8eb Fix typos. nekral-guest 2010-03-18 00:02:45 +00:00
  • 8402479e16 * lib/tcbfuncs.c: Do not free path before its last use. nekral-guest 2010-03-18 00:02:17 +00:00
  • aa35a8e46e Avoid implicit conversion of pointers . nekral-guest 2010-03-18 00:02:02 +00:00
  • 51d181ca58 * lib/tcbfuncs.c: Avoid implicit conversion of pointers or integers to booleans. nekral-guest 2010-03-18 00:01:30 +00:00
  • 1bc0a303dc * lib/tcbfuncs.c: Only FreeBSD specify that the returned buffer is NULL in case of failure. The return value of asprintf shall be checked. nekral-guest 2010-03-18 00:01:00 +00:00
  • 43211abb65 * lib/commonio.c: Ignore the return value of close when a failure is reported. nekral-guest 2010-03-18 00:00:05 +00:00
  • 8acf9cd11d * lib/tcbfuncs.h: Added type shadowtcb_status. * lib/tcbfuncs.h, lib/tcbfuncs.c: Return a shadowtcb_status instead of an int. * lib/tcbfuncs.c: Do not return in OUT_OF_MEMORY. nekral-guest 2010-03-17 23:59:55 +00:00
  • fe71812b1d * lib/commonio.c: Avoid implicit conversion of pointers to booleans. * lib/commonio.c: Ignore the return value of close when a failure is reported. nekral-guest 2010-03-17 23:59:47 +00:00
  • a013f8519b Updated copyright dates. nekral-guest 2010-03-16 19:15:34 +00:00
  • c0e7dcd2fd * man/faillog.8.xml: Document the behavior in display mode of the -a option. * NEWS, man/faillog.8.xml, src/faillog.c: Extend the -a option to the non-display mode. This changes the default behavior of the -l, -m, -r, -t options when -a is not specified (restrict to existing users). nekral-guest 2010-03-16 19:15:22 +00:00
  • 5d6c314304 * man/chage.1.xml, man/login.defs.5.xml, man/pwck.8.xml, man/pwconv.8.xml, man/useradd.8.xml, man/userdel.8.xml, man/usermod.8.xml, man/vipw.8.xml: Document the usage of the TCB_AUTH_GROUP, TCB_SYMLINKS, and USE_TCB configuration parameters. * man/pwconv.8.xml, man/pwck.8.xml: Document the behavior when USE_TCB is enabled. nekral-guest 2010-03-16 19:15:05 +00:00
  • c5fc8dd75d * po/POTFILES.in, lib/tcbfuncs.c: Add more strings for translation. * lib/tcbfuncs.c: Indicate the name of the program in error messages. Avoid perror. * src/useradd.c: Re-indent. * src/useradd.c: Add more strings for translation. Indicate the name of the program in error messages. * src/userdel.c: Re-indent. * src/userdel.c: Add more strings for translation. Indicate the name of the program in error messages. nekral-guest 2010-03-16 19:14:54 +00:00
  • ad694905be * src/usermod.c: user_newname and user_newid cannot be used to test if the username or ID is changed. lflg and uflg should be used instead. nekral-guest 2010-03-16 19:14:37 +00:00
  • 6c4e2931ef * src/userdel.c: Avoid perror. Give more verbose warnings. nekral-guest 2010-03-16 19:13:53 +00:00
  • fd39a24b34 Remove generated file. nekral-guest 2010-03-11 22:07:50 +00:00
  • ccc65bfde7 * man/Makefile.am: Indicate that man/generate_mans.deps is generated. nekral-guest 2010-03-11 22:04:22 +00:00
  • f13f60504a * lib/commonio.c: Re-indent. * lib/commonio.c: Document the sections closed by #endif * lib/commonio.c: Added brackets. * lib/commonio.c: Avoid implicit conversion of integer to booleans. nekral-guest 2010-03-11 22:04:14 +00:00
  • 33d3e28a7f * src/userdel.c: Re-indent. * src/userdel.c: Added brackets. * src/userdel.c: Avoid implicit conversion of pointers to booleans. nekral-guest 2010-03-11 22:04:06 +00:00
  • 69798dde65 * lib/shadowio.c: Re-indent. * lib/shadowio.c: Added brackets and parenthesis. * lib/shadowio.c: Document the sections closed by #endif * lib/shadowio.c: Avoid negation of comparisons. * lib/shadowio.c: Avoid implicit conversion of integer to booleans and booleans to integers. nekral-guest 2010-03-11 22:03:57 +00:00
  • ad6730687f * src/useradd.c: Re-indent. * src/useradd.c: Added brackets. * src/useradd.c: Avoid implicit conversion of integers to booleans. * src/useradd.c: Harmonize error messages. nekral-guest 2010-03-11 22:03:45 +00:00
  • e7d57e1a77 * src/vipw.c: Document the sections closed by #endif * src/vipw.c: Avoid implicit conversion of pointers or integers to booleans. * src/vipw.c: Added brackets and parenthesis. * src/vipw.c: Limit the definition of some variables and macros to the WITH_TCB scope. * src/vipw.c: Avoid assignment in comparisons. * src/vipw.c: Replace PASSWD_FILE (resp. GROUP_FILE and SGROUP_FILE) by pw_dbname () (resp. gr_dbname () and sgr_dbname ()). This is more consistent with the shadow file handling and may be useful to allow edition of another partition's files. nekral-guest 2010-03-11 22:03:37 +00:00