227e780644
When there is a gshadow file, gshadow is activated. Then a group password change puts the password in the gshadow file (create an entry) and the group's password is set to 'x'.
nekral-guest
2011-09-23 17:50:59 +00:00
85f90d1aa2
Add 12 tests for gpasswd.
nekral-guest
2011-09-23 17:46:57 +00:00
2fcaf22140
Add separation for the logs.
nekral-guest
2011-09-23 17:45:06 +00:00
9fa842ffbf
Remove generated test log file.
nekral-guest
2011-09-23 17:30:31 +00:00
f870cc7eab
Miscellaneous: * lib/prototypes, libmisc/basename.c (Basename): Input is a constant string. * lib/prototypes.h, lib/spawn.h, lib/spawn.c, src/userdel.c, lib/nscd.c, lib/Makefile.am: Delete spawn.h. Move from spawn.h to prototypes.h. * src/userdel.c: Remove unused variables. * lib/nscd.c: Remove unused header files. * lib/nscd.c: Add the program name to error messages. * lib/nscd.c: Indicate when nscd does not terminate normally (signal). * lib/spawn.c: Updated header. * lib/spawn.c: Flush stdout and stderr to avoid inheriting from ongoing buffers. * lib/spawn.c: Avoid implicit conversion of pointer to boolean. * lib/spawn.c: Replace perror by a complete message. * lib/spawn.c: Continue to wait for the child if another child terminates. * lib/prototypes.h: The name field from cleanup_info_mod is a constant string. (username).
nekral-guest
2011-09-18 21:02:43 +00:00
05b55446da
* libmisc/cleanup.c: Spawn children should no trigger cleanup actions. Make sure only the parent (initial caller) perform the cleanup actions.
nekral-guest
2011-09-18 20:43:28 +00:00
f1db2383fc
* libmisc/salt.c (SHA_salt_rounds): It is statically ensured that the format fits in rounds_prefix. * libmisc/loginprompt.c: Likewise.
nekral-guest
2011-09-18 20:41:38 +00:00
cd10be6c91
* libmisc/salt.c (SHA_salt_rounds): It is statically ensured that the format fits in rounds_prefix.
nekral-guest
2011-09-18 20:40:50 +00:00
2b5ba27ff8
* src/grpconv.c: Fail if not called correctly. * src/grpconv.c: At the end of main, the passwd and shadow files are locked. No need to check before unlocking. No need to set the lock as false neither since there cannot be anymore failures.
nekral-guest
2011-09-18 20:26:27 +00:00
fa96d1bb78
* src/chage.c: EPOCH is not needed, it's converted to -1 by strtoday(). But we need to support "-1" specifically. * src/chage.c: Fix usage: LOGIN is mandatory. * src/chage.c: Display disabled expiry or last change as "-1" instead of 1969-12-31. 1969-12-31 is still supported as input from the user. * src/chage.c: Exit cleanly with fail_exit() (lock files were not removed).
nekral-guest
2011-09-18 20:24:36 +00:00
23afb3fd07
* src/useradd.c: Remove def_file. It was always set to USER_DEFAULTS_FILE. * src/useradd.c: Fix cut&paste issue causing bad warning when the useradd.default file contains an invalid INACTIVE= value. * src/useradd.c: Added missing end of line for rename errors. * src/useradd.c: Added -D synopsis to the usage message. * src/useradd.c: Do not scale_age(-1), just use -1. * src/useradd.c: Added FIXME to be fixed later. * src/useradd.c: Allow -e -1 when there is no shadow file. * src/useradd.c: Fail, but do not print the usage message when the -e argument is not valid. * src/useradd.c: No need to check for oflg since uflg is already checked.
nekral-guest
2011-09-18 18:00:06 +00:00
6f05b866bc
* src/su.c: Too much const were added on 2011-08-15. pw in save_caller_context() is allocated and freed. * src/su.c: Added missing #endif indication * src/su.c save_caller_context(): password only needed if SU_ACCESS and !USE_PAM.
nekral-guest
2011-09-18 17:47:03 +00:00
603d949ed5
* src/usermod.c: date_to_str() is always called with negativ set to "never", remove this argument. * src/usermod.c: Added missing cast for gr_free argument.
nekral-guest
2011-09-18 17:34:21 +00:00
4ce849a5ed
* src/pwconv.c: Fail if not called correctly. * src/pwconv.c: At the end of main, the passwd and shadow files are locked. No need to check before unlocking.
nekral-guest
2011-09-18 17:32:04 +00:00
7b0116c5b4
* src/newusers.c: Initially set the passwd's password to '*' instead of 'x'. Only when it is confirmed that a shadow entry is (will be) added, set the passwd's password to 'x'. * src/newusers.c: An invalid line is an error. A failure needs to be reported.
nekral-guest
2011-09-18 17:29:52 +00:00
a52a8d8a5d
* src/gpasswd.c: Remove log_gpasswd_success_gshadow(). Writing in gshadowis the last sub-task.
nekral-guest
2011-09-18 17:27:18 +00:00
75936bf9f7
* src/chsh.c: No needto remove lines tarting with '#' from /etc/shells. This is already done by getusershell() and these shell would fail the access(X_OK) test.
nekral-guest
2011-09-18 17:24:15 +00:00
0d00d3eecf
* man/generate_mans.mak: Fix the generation of translated man pages. xml2po removed the comment from empty headers and the config was no more inserted.
nekral-guest
2011-09-18 17:02:10 +00:00
93ee4927bc
* man/login.defs.d/QUOTAS_ENAB.xml: Document the dependency between /etc/limits and QUOTAS_ENAB.
nekral-guest
2011-09-18 17:00:28 +00:00
5570ec21b4
* man/chage.1.xml: The LOGIN argument is not optional.
nekral-guest
2011-09-18 16:59:16 +00:00
5305181f4e
* debian/rules, debian/man.insert, debian/man.insert.sed: Bug #507673 has been closed. It is no more needed to patch the generated manpages. This also fix failures to build twice is a row. Closes: #636047
nekral-guest
2011-08-17 17:36:54 +00:00
7f842bdf4f
* src/groupmod.c: Ignore return value from snprintf. * src/groupmod.c: Add static qualifier to the cleanup structures.
nekral-guest
2011-08-15 14:22:33 +00:00
7c96d6cbcc
* src/usermod.c: Do not assign static to NULL. * src/usermod.c (date_to_str): buf needs to be unique (e.g. independent from negativ), and is an out buffer. * src/usermod.c: Ignore return value from snprintf, and force nul-termination of buffer. * src/usermod.c: Improve memory management. * src/usermod.c: An audit bloc was not reachable, moved above on success to move the home directory. * src/usermod.c: Ignore close() return value for the mailbox (opened read only).
nekral-guest
2011-08-15 09:56:43 +00:00
00d1ab6454
* src/usermod.c: Add annotations to indicate that fail_exit() does not return. * src/usermod.c: Fix typo in notreached annotation.
nekral-guest
2011-07-30 01:41:03 +00:00
019048c555
* libmisc/find_new_uid.c: free (used_uids) on return. * libmisc/find_new_gid.c: free (used_gids) on return.
nekral-guest
2011-07-30 01:38:07 +00:00
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.
nekral-guest
2011-07-28 15:18:39 +00:00
75fa697526
* 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.
nekral-guest
2011-07-28 15:17:28 +00:00
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.
nekral-guest
2011-07-28 14:40:56 +00:00
871df6e34b
Added tests for faillog.
nekral-guest
2011-07-26 15:33:12 +00:00
279b8e9b69
Fix TTY detection. use the lowest unused TTY ID.
nekral-guest
2011-07-26 15:25:15 +00:00
9540ec861e
Added test for pwconv.
nekral-guest
2011-07-26 15:23:49 +00:00
d408a3cdda
Use a more common config with password in shadow instead of passwd. (Other tests focus on the less frequent use cases)
nekral-guest
2011-07-26 15:23:03 +00:00
c0a26b82ae
Added test for chpasswd.
nekral-guest
2011-07-26 15:14:38 +00:00
133092e437
Fix expected test results.
nekral-guest
2011-07-26 14:12:08 +00:00
6f7963a3ea
Added test for expiry.
nekral-guest
2011-07-26 14:08:36 +00:00
d2b12355ee
Added changelog entries for issues closed in the new upstream version.
nekral-guest
2011-07-24 16:26:51 +00:00
7180f03376
Add more info on the change of behavior.
nekral-guest
2011-07-23 11:05:59 +00:00
2aefca0f2e
* NEWS, src/login.c: Do not log in utmp / utmpx / wtmp when PAM is enabled. This is already done by pam_lastlog.
nekral-guest
2011-07-23 11:03:50 +00:00
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.
nekral-guest
2011-07-23 08:14:15 +00:00
2be8650d2c
* src/lastlog.c: Add annotations to indicate that usage() does not return.
nekral-guest
2011-07-23 08:10:27 +00:00
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.
nekral-guest
2011-07-22 23:59:57 +00:00
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.
nekral-guest
2011-07-22 23:52:08 +00:00
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].
nekral-guest
2011-07-22 22:07:23 +00:00
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.
nekral-guest
2011-07-22 21:53:01 +00:00
87134054ab
Use valid files for 03_chpasswd_no_shadow_file. This avoid a failure. The failure will be tested later.
nekral-guest
2011-07-16 16:08:51 +00:00
f26adb9373
Added tests for chpasswd and chgpasswd.
nekral-guest
2011-07-16 16:01:27 +00:00
563facd989
Added tests for chgpasswd.
nekral-guest
2011-07-16 15:56:21 +00:00
5292e8e37e
Additional tests for grpck.
nekral-guest
2011-07-16 15:45:04 +00:00
4a79eb6418
Added tests for grpck.
nekral-guest
2011-07-16 15:44:21 +00:00
d36e1588a4
Added library to change the time.
nekral-guest
2011-07-15 16:27:27 +00:00
3a8fc569dc
Added tests for lastlog. --This line, and those below, will be ignored--
nekral-guest
2011-07-15 16:26:34 +00:00
d88fee56d0
Updated to include the new Chinese translations and the groupmems manpages (built for the tested package, but not in Debian).
nekral-guest
2011-07-14 17:27:27 +00:00
17589834e9
The reason for the lock failure is now indicated in the failure message.
nekral-guest
2011-07-14 17:25:48 +00:00
b1dcbb9109
Added tests for groupadd and groupmod
nekral-guest
2011-07-14 17:22:15 +00:00
ff21533772
The reason for the lock failure is now indicated in the failure message.
nekral-guest
2011-07-14 17:20:29 +00:00
8e4062eaad
If there are no gshadow entry, but group indicate that gshadow is enabled, a gshadow entry is created.
nekral-guest
2011-07-14 17:19:14 +00:00
3e7c866497
Since there are no gshadow, it is more logical to have a password (rather than x).
nekral-guest
2011-07-14 17:18:07 +00:00