f8a95f7ca1Add option --password to groupadd and groupmod (similar to useradd and usermod).
nekral-guest
2008-01-05 14:17:43 +0000
e94d2da45eRemove the declaration of getutent(), getutline(), setutent(), and endutent() which are declared in <utmp.h>
nekral-guest
2008-01-05 14:09:56 +0000
8d440a2a52stat shadows another stat variable. Remove this variable, and directly check the result of getfscreatecon().
nekral-guest
2008-01-05 14:01:34 +0000
616ad5252dChangelog entry forgotten in previous src/gshadow.c commit: * list() is an external function. DO not shadow it with a static function. The internal list() was renamed build_list().
nekral-guest
2008-01-05 13:58:56 +0000
8d9c39789bThe prototypes of fgetsx() and fputsx() are already defined in prototypes.h. Remove the declaration of these functions.
nekral-guest
2008-01-05 13:56:21 +0000
bbb9470661loginsh is a global variable, use newshell for the update_shell()'s parameter.
nekral-guest
2008-01-05 13:54:39 +0000
f11bbd3b70login_prompt is the name of a function, use loginprompt for the internal variable.
nekral-guest
2008-01-05 13:53:14 +0000
239b2d7beeMake a proper prototype for the main() function declaration. (add void)
nekral-guest
2008-01-05 13:51:43 +0000
2040826791Add changelog entry for previous commit.
nekral-guest
2008-01-05 13:49:32 +0000
83b7153b40Add missing include "shadowio.h". (This was OK as long as prototypes.h included this file.)
nekral-guest
2008-01-05 13:40:49 +0000
53b075a760* libmisc/pam_pass.c: Define do_pam_passwd() as static and add its prototype. * libmisc/log.c: Define dolastlog() as static and add its prototype. * src/chage.c: Define isnum() as static and add its prototype.
nekral-guest
2008-01-05 13:37:32 +0000
b8ce324a66Include config.h as a system include, as recommended by the autoconf documentation.
nekral-guest
2008-01-05 13:32:32 +0000
99dc2b1abfDefine is_listed() as static and add its prototype.
nekral-guest
2008-01-05 13:29:24 +0000
96bca84ca4Include "prototypes.h" to make sure the exported prototypes are the ones used for the definition of functions.
nekral-guest
2008-01-05 13:23:22 +0000
b7d372d8e3"shadowio.h" was included for the definition of the spwd structure. Replace this include by <shadow.h>
nekral-guest
2008-01-05 13:07:54 +0000
867034e3bagrent.c does not exist anymore. Remove the putgrent prototype.
nekral-guest
2008-01-05 13:05:21 +0000
3c800f5880Add the syslog_sg prototype.
nekral-guest
2008-01-01 23:56:03 +0000
11864d22b4Also split syslog_sg() out of main().
nekral-guest
2008-01-01 23:54:51 +0000
1ff4e28748Remove duplicate logging to syslog.
nekral-guest
2008-01-01 23:45:44 +0000
d590d0cceeSplit check_perms() out of main().
nekral-guest
2008-01-01 23:35:55 +0000
94b3b98196Avoid assignments in conditionals.
nekral-guest
2008-01-01 23:07:55 +0000
1d76eb6ef7Avoid assignments in conditionals.
nekral-guest
2008-01-01 22:21:55 +0000
631fa3b4f3(split_groups): Test the pointer returned by malloc.
nekral-guest
2008-01-01 20:47:31 +0000
1c2f4f0428No functional changes were introduced by the previous pwck and grpck changes, except for the following bug fix: no syslog logging if a passwd or group file was specified on the command line without a shadowed database file, even if the system shadowed database was changed).
nekral-guest
2008-01-01 16:36:06 +0000
3ad9a439d5Split also check_pw_file() and check_spw_file() out of main().
nekral-guest
2008-01-01 15:49:33 +0000
ef2c12e560Also split open_files and close_files out of main(). New global variables use_system_pw_file and use_system_spw_file
nekral-guest
2008-01-01 15:29:47 +0000
6912ac253aSplit process_flags() out of main(). New global variables is_shadow, sort_mode.
nekral-guest
2008-01-01 15:07:41 +0000
a3501dfd95De-comment code (duplicate the entry when the _R function is not present on the system).
nekral-guest
2008-01-01 14:48:04 +0000
09a95ed70a* src/lastlog.c: Remove statbuf, not used. * src/lastlog.c: Fix types, cast umin and umax to uid_t. * src/lastlog.c: (option -u) user needs to be a signed long, not uid_t (to accept rangees like -<uid>
nekral-guest
2008-01-01 14:38:47 +0000
d0de685c7aAvoid ?: construct without the middle term.
nekral-guest
2008-01-01 14:34:07 +0000
72713d0b73Forgot to commit that one. Avoid empty file when USE_PAM is set.
nekral-guest
2008-01-01 14:32:41 +0000
b681e50ff2* libmisc/copydir.c, src/usermod.c, lib/prototypes.h: The uid and gid parameters can be set to -1 to indicate that the original owners must be kept. Change the types from uid_t/gid_t to a long int (signed). * libmisc/copydir.c: Change the copy_entry(), copy_dir(), copy_symlink(), copy_special(), and copy_file() prototypes accordingly. * lib/prototypes.h: Add the parameters' name for the libmisc/copydir.c functions.
nekral-guest
2008-01-01 14:31:00 +0000
bb8af02978Avoid empty file when WITH_AUDIT is not set.
nekral-guest
2008-01-01 14:20:36 +0000
bca732693b* libmisc/limits.c, libmisc/obscure.c, src/login_nopam.c, lib/pwauth.c: Avoid empty file when USE_PAM is set. * src/login_nopam.c: Fix warnings: resolve_hostname takes and returns a constant string.
nekral-guest
2008-01-01 14:18:55 +0000
0dccafcd23Remove inaccurate documentation. The password file is no more opened in read only mode.
nekral-guest
2008-01-01 14:12:34 +0000
b25feca14cAdd missing prototype declarations. Document the new functions.
nekral-guest
2008-01-01 14:10:21 +0000
0aaddfaf29I forgot to mention compare_members_lists().
nekral-guest
2008-01-01 14:09:47 +0000
3d82d5e452Split check_members() out of check_grp_file() and check_sgr_file().
nekral-guest
2008-01-01 13:50:06 +0000
612820cb9aSplit check_grp_file() and check_sgr_file() out of main().
nekral-guest
2008-01-01 13:48:49 +0000
f6f6eeda8eSplit process_flags(), open_files(), and close_files() out of main(). New global variables is_shadow, sort_mode, use_system_grp_file, and use_system_sgr_file.
nekral-guest
2008-01-01 13:13:47 +0000
83b9a376a2If remove-potcdate.sin does not exist, use the one from teh po directory (it is not installed automatically by autopoint.
nekral-guest
2007-12-31 20:16:46 +0000
ca9fbc0d8eCompilation fix. pamh needs to be global since the split of check_perms().
nekral-guest
2007-12-31 20:15:15 +0000
1ec694eae7Compilation fix. user was removed from the list of global variables.
nekral-guest
2007-12-31 20:14:31 +0000
b9a00ea0eeFix the type of the bitfields in the commonio_entry and commonio_db structures to unsigned int (instead of int).
nekral-guest
2007-12-31 20:12:48 +0000
3709183127(compil fix) Use pw->pw_name instead of user.
nekral-guest
2007-12-31 15:13:39 +0000
9a67b445b1sflg needs to be global.
nekral-guest
2007-12-31 15:07:59 +0000
ca035a53a0Also split update_shell() out of main().
nekral-guest
2007-12-31 15:06:22 +0000
f031095d9f* Split also check_perms() out of main(). * Before pam_end(), the return value of the previous pam API was already checked. No need to validate it again.
nekral-guest
2007-12-31 14:54:46 +0000
7ed7e14deeSplit process_flags() out of main().
nekral-guest
2007-12-31 14:52:52 +0000
4af02cb083Avoid assignments in comparisons.
nekral-guest
2007-12-31 14:37:24 +0000
ce3c44b0f7Avoid assignments in comparisons.
nekral-guest
2007-12-31 14:25:06 +0000
c086f6c931Avoid implicit conversions to booleans.
nekral-guest
2007-12-31 14:15:29 +0000
7279ff37f3* New function: process_flags() split out of main(). The flags variables are now global. * New functions: check_perms(), update_gecos(), get_old_fields(), and check_fields() split out of main(). * Before pam_end(), the return value of the previous pam API was already checked. No need to validate it again.
nekral-guest
2007-12-31 13:43:04 +0000
d0b984528a* src/newusers.c: Compilation fix for PAM support (pamh needs to be global since the function split). * src/chpasswd.c: Likewise. * src/chgpasswd.c: Likewise. * src/chpasswd.c: Avoid implicit conversions to booleans.
nekral-guest
2007-12-31 04:57:54 +0000
e448d1acb1Sort the tools in the NEWS entries of 4.1.1.
nekral-guest
2007-12-31 04:34:10 +0000
f09b1404ebRewrote to match the previous commit message.
nekral-guest
2007-12-31 04:31:28 +0000
db38d0b104* src/chage.c: Fix typo: s/maximim/maximum/ * src/chage.c: New function: fail_exit(). Change most of the exit() to a fail_exit, which makes sure the files are unlocked (new global variables: pw_locked, spw_locked), the PAM transaction is ended, and the failure is logged to libaudit (use a global user_name and user_uid for logging). * src/chage.c: Compilation fix for PAM support (pamh needs to be global since the function split). * src/chage.c: Document process_flags(), check_flags(), check_perms(), open_files(), and close_files(). * src/chage.c: Split update_age() and get_defaults() out of main() * src/chage.c: Drop the privileges just after opening the files. * src/chage.c: Do not log to audit only if the user has an entry in the shadow file. * NEWS, src/chage.c (open_files): Also open the password file for writing. This fix chage when the user only has a password entry (and no shadow entries). * src/chage.c (get_defaults): Use default values that don't change the behavior of the account for the fields that are not specified when the user has no shadow entry.
nekral-guest
2007-12-31 04:29:30 +0000
3b7497b063* Compilation fix for PAM support (pamh needs to be global since the function split). * End the PAM transaction in fail_exit(). * Document check_flags().
nekral-guest
2007-12-30 21:48:55 +0000
d1bee8b593Compilation fix for non-gshadow support.
nekral-guest
2007-12-30 21:39:57 +0000
99230a30adI forgot to open and close gshadow.
nekral-guest
2007-12-29 17:34:02 +0000
623010396cAdded support for gshadow.
nekral-guest
2007-12-29 17:26:28 +0000
098173e1dfDo not add the new user to the group's members, because the group is already the primary group of the new user.
nekral-guest
2007-12-29 17:05:13 +0000
67b9c423feAvoid variables with the name of a type.
nekral-guest
2007-12-29 14:52:35 +0000
b040f047fdAvoid assignments in comparisons.
nekral-guest
2007-12-29 14:48:33 +0000
8c4efbb8ceAvoid implicit brackets and re-indent.
nekral-guest
2007-12-29 14:34:39 +0000
9923513271Before pam_end(), the return value of the previous pam API was already checked. No need to validate it again.
nekral-guest
2007-12-29 14:17:06 +0000
60a422b284newusers cleanups main() split in new functions: process_flags(), check_flags(), check_perms(), open_files(), and close_files().
nekral-guest
2007-12-29 14:11:54 +0000
3c890a55d8Avoid assignments in comparisons.
nekral-guest
2007-12-29 11:34:31 +0000
2d771a97b7Remove dead code. It was probably put here to add more information to the audit_logger.
nekral-guest
2007-12-29 10:50:03 +0000
6ca79a36b0Avoid using a variable with the same name as a type.
nekral-guest
2007-12-29 10:47:04 +0000
388dcee3e4chage cleanups * src/chage.c: Before pam_end(), the return value of the previous pam API was already checked. No need to validate it again. * src/chage.c: main() split in new functions: process_flags(), check_flags(), check_perms(), open_files(), and close_files().
nekral-guest
2007-12-29 10:42:25 +0000
8563319b8b* src/chgpasswd.c: Avoid assignments in comparisons. * src/chgpasswd.c: Avoid implicit brackets. * src/chgpasswd.c: Fix comments to match chgpasswd (group instead of user's passwords are changed).
nekral-guest
2007-12-28 23:14:59 +0000
9fe450e216Same changes as for chpasswd: * src/chpasswd.c: main() split in process_flags(), check_flags(), check_perms(), open_files(), and close_files().
nekral-guest
2007-12-28 22:59:17 +0000
28cd038c35Same changes as for chpasswd: * src/chpasswd.c: main() split in process_flags(), check_flags(), check_perms(), open_files(), and close_files().
nekral-guest
2007-12-28 22:54:35 +0000