nekral-guest
e2bdb4ff83
* libmisc/chowndir.c: Add splint annotations.
2011-08-14 14:00:14 +00:00
nekral-guest
41accaf963
* lib/gshadow_.h: Fix typo in comment.
2011-08-14 13:16:54 +00:00
nekral-guest
5f37d13405
* lib/prototypes.h, libmisc/getgr_nam_gid.c: getgr_nam_gid()
...
returns an allocated structure.
2011-08-14 13:16:26 +00:00
nekral-guest
745bcb5406
* src/su.c: Add annotations to indicate that su_failure() does
...
not return.
2011-08-14 13:15:20 +00:00
nekral-guest
1f4f00acad
* lib/commonio.c: Display PID as unsigned long.
2011-07-30 01:48:42 +00:00
nekral-guest
905e14ee83
* src/useradd.c: Remove unused Zflg.
2011-07-30 01:47:52 +00:00
nekral-guest
f8d47df43b
* src/chgpasswd.c: Fix typo sp -> sg. sg_namp -> sg_name
...
* src/chgpasswd.c: Always update the group file when SHADOWGRP is
not enabled.
2011-07-30 01:46:23 +00:00
nekral-guest
934bfa5969
* src/newgrp.c: Fix typo in notreached annotation.
2011-07-30 01:41:56 +00:00
nekral-guest
00d1ab6454
* src/usermod.c: Add annotations to indicate that fail_exit() does
...
not return.
* src/usermod.c: Fix typo in notreached annotation.
2011-07-30 01:41:03 +00:00
nekral-guest
019048c555
* libmisc/find_new_uid.c: free (used_uids) on return.
...
* libmisc/find_new_gid.c: free (used_gids) on return.
2011-07-30 01:38:07 +00:00
nekral-guest
6223c40c2d
* lib/commonio.c: Fix NIS commit from 2011-07-14.
2011-07-28 15:19:40 +00:00
nekral-guest
e7c09ab3df
* NEWS, src/chpasswd.c: Create a shadow entry if the password is
...
set to 'x' in passwd and there are no entry in shadow for the
user.
* NEWS, src/chgpasswd.c: Create a gshadow entry if the password is
set to 'x' in group and there are no entry in gshadow for the
group.
2011-07-28 15:18:39 +00:00
nekral-guest
771a3624f5
* src/pwunconv.c: Exit after printing usage when arguments or
...
options are provided.
* src/pwunconv.c: Re-indent.
* src/pwunconv.c: Open the shadow file read only.
* src/grpunconv.c: Exit after printing usage when arguments or
options are provided.
* src/grpunconv.c: Open the gshadow file read only.
2011-07-28 14:40:56 +00:00
nekral-guest
7fed07f1e9
* src/chgpasswd.c: Fix typo.
2011-07-28 14:36:24 +00:00
nekral-guest
7180f03376
Add more info on the change of behavior.
2011-07-23 11:05:59 +00:00
nekral-guest
2aefca0f2e
* NEWS, src/login.c: Do not log in utmp / utmpx / wtmp when PAM is
...
enabled. This is already done by pam_lastlog.
2011-07-23 11:03:50 +00:00
nekral-guest
7e8aa5429a
* src/chpasswd.c: Add annotations to indicate that usage() does
...
not return.
* src/chpasswd.c: Reindent.
* src/chpasswd.c: Remove dead code. No need to set crypt_method
to NULL when it is already NULL. sflg is only set if crypt_method
is not NULL.
2011-07-23 08:14:15 +00:00
nekral-guest
2be8650d2c
* src/lastlog.c: Add annotations to indicate that usage() does not
...
return.
2011-07-23 08:10:27 +00:00
nekral-guest
495125415b
* src/faillog.c: Add annotations to indicate that usage() does not
...
return.
* src/faillog.c: Fix message: this is faillog, not lastlog.
* src/faillog.c: Check that there are no extra arguments after
parsing the options.
2011-07-22 23:59:57 +00:00
nekral-guest
1def4ef49d
* src/chgpasswd.c: Add annotations to indicate that usage() does
...
not return.
* src/chgpasswd.c: Split usage in smaller parts. Those parts are
already translated for chpasswd. Usage is now closer to
chpasswd's.
* src/chgpasswd.c: Remove dead code. No need to set crypt_method
to NULL when it is already NULL. sflg is only set if crypt_method
is not NULL.
2011-07-22 23:52:08 +00:00
nekral-guest
bb67476209
* src/expiry.c: Remove dead code.
...
* src/expiry.c: Improve comments.
2011-07-22 22:39:30 +00:00
nekral-guest
e8373305b4
* src/grpck.c: Added comments.
...
* src/grpck.c: Avoid implicit conversion of pointer to boolean.
* src/grpck.c: Remove dead code. argc cannot be lower than optind.
Avoid checking twice in a row for NULL != list[i].
2011-07-22 22:07:23 +00:00
nekral-guest
275ffe2e01
* libmisc/find_new_gid.c, libmisc/find_new_uid.c: Fail in case of
...
invalid configuration.
* libmisc/find_new_gid.c, libmisc/find_new_uid.c: Updated
comments.
* libmisc/find_new_gid.c, libmisc/find_new_uid.c: Be more strict
on the loop stop conditions. Stop if we passed the limit, even if
the limit itself was never noticed.
2011-07-22 21:53:01 +00:00
nekral-guest
a210d898b6
* man/po/fr.po: Fix some spacing issues due to configuration
...
variants.
2011-07-14 14:14:36 +00:00
nekral-guest
8bce7fc016
* src/passwd.c: Overflow when computing the number of days based
...
on the scaling. Use of long long needed.
2011-07-14 14:03:19 +00:00
nekral-guest
39cecdab06
* NEWS, lib/commonio.h, lib/commonio.c: Additional messages to
...
indicate why locking failed.
* NEWS, lib/commonio.c: Fix the sort algorithm in case of NIS. NIS
entries were dropped.
* lib/commonio.c: NIS entries can start by '+' or '-'.
2011-07-14 13:58:17 +00:00
nekral-guest
a7fee9db00
* NEWS, src/groupmod.c: When the gshadow file exists but there are
...
no gshadow entries, an entry is created if the password is changed
and group requires a shadow entry.
2011-07-14 13:30:05 +00:00
nekral-guest
d4e630b8cc
* src/usermod.c (process_flags): Indicate that the user name is
...
invalid, instead of just a 'field'.
2011-07-14 13:29:59 +00:00
nekral-guest
82b92af086
* src/usermod.c (process_flags): Do not display the usage in case
...
of an invalid -f value (similar to -e).
2011-07-14 13:29:54 +00:00
nekral-guest
c23e851074
* src/usermod.c (new_pwent): Document that pw_locate will not fail
...
because getpwnam returned successfully.
2011-07-14 13:29:48 +00:00
nekral-guest
c2333946c0
* man/usermod.8.xml: Document behavior of an empty EXPIRE_DATE.
...
* man/usermod.8.xml: Document that the mail spool might have to be
renamed (as for the homedir)
2011-07-14 13:29:43 +00:00
nekral-guest
2c6782b501
* NEWS, src/usermod.c; man/usermod.8.xml: When the shadow file
...
exists but there are no shadow entries, an entry has to be created
if the password is changed and passwd requires a shadow entry, or
if aging features are used (-e or -f). Document this and also that
-e and -f require a shadow file.
2011-07-14 13:29:37 +00:00
nekral-guest
c2f5088067
* src/usermod.c (update_group, update_gshadow): Reduce complexity
...
and document checks. Some checks were always true/false within
their call context.
2011-07-14 13:29:32 +00:00
nekral-guest
8195a2b5d8
* src/usermod.c (update_gshadow): is_member was computed twice.
2011-07-14 13:29:27 +00:00
nekral-guest
2798e35d86
* src/usermod.c: usage() does not return. Add annotations.
2011-07-14 13:29:22 +00:00
nekral-guest
d1753cc25d
* src/usermod.c (process_flags): Check for oflg is not needed to
...
check if changes are needed.
2011-07-14 13:29:16 +00:00
nekral-guest
a5ded26850
* src/usermod.c (process_flags): Report usage if no options are
...
provided. Update the error message.
* src/usermod.c (process_flags): Check option compatibility and
dependency before options are discarded when no changes are
requested.
2011-07-14 13:29:10 +00:00
nekral-guest
d51420bb01
* src/usermod.c (move_home): It is always an error to use -m if
...
the new home directory already exist (independently from the
existence of the old home directory did not exist)
2011-07-14 13:29:05 +00:00
nekral-guest
aec025dbf6
* src/usermod.c: Fix typo in comment.
2011-07-14 13:28:59 +00:00
nekral-guest
95257d63a1
* src/groupmod.c: Avoid implicit conversion of pointer to boolean.
...
* src/groupmod.c: osgrp can be set only if pflg || nflg. No need
to check for pflg || nflg again
2011-07-08 19:58:40 +00:00
nekral-guest
9cfc91a935
* configure.in: Fix typo. libcrack default is 'no'.
2011-07-08 19:57:08 +00:00
nekral-guest
13873a8799
* lib/fields.c: Fixed typo from 2010-02-15. field insteadof cp
...
ought to be checked.
* src/vipw.c: Use Prog instead of progname. This is needed since
Prog is used in the library.
2011-07-08 19:56:18 +00:00
nekral-guest
3bdad35e9f
* man/*.xml, man/config.xml.in: Add source and version
...
information. This reduce the amount of warnings during the
manpages generation.
2011-07-08 19:49:09 +00:00
nekral-guest
275ac4c5e0
* man/po/ru.po: Add space between option and argument.
2011-06-25 09:13:14 +00:00
nekral-guest
504a89d25b
* man/passwd.1.xml: Added reference to chpasswd(8).
2011-06-25 09:03:05 +00:00
bubulle
42666a6b03
Spanish translation update
2011-06-18 05:33:27 +00:00
nekral-guest
75f4b049a6
* libmisc/isexpired.c: Added parenthesis.
...
* libmisc/env.c: Added comments.
* libmisc/env.c: Avoid implicit conversion of pointer to boolean.
2011-06-16 21:25:36 +00:00
nekral-guest
907025eb40
* src/su.c: environ is provided by <unistd.h>.
...
* src/su.c: Added function prototypes.
* src/su.c: Rename shellstr parameter to shellname to avoid
collision with static variable.
* NEWS, src/su.c: Added support for PAM modules which change
PAM_USER.
2011-06-16 21:21:29 +00:00
nekral-guest
317939e821
* src/su.c: After prepare_pam_close_session() there is no need to
...
close the session in the child. Added pam_setcred to
prepare_pam_close_session().
2011-06-13 18:27:46 +00:00
nekral-guest
1340beed16
* src/su.c: Also drop the controlling terminal when PAM is not
...
used.
* src/su.c: Remove run_shell().
2011-06-13 18:27:40 +00:00