nekral-guest
db0dddc6e9
* libmisc/pwdcheck.c: Do not include <pwd.h>. Include <shadow.h>
...
and "pwauth.h" only when compiled without PAM support.
* src/chfn.c, src/chsh.c: Do not include <shadow.h>
* lib/commonio.c: Do not include <shadow.h>. Do not include
<pwd.h>. Include "nscd.h" instead of <nscd.h>.
* configure.in: Do not check if shadow.h exist, but make sure it
exists.
* libmisc/pwdcheck.c, src/chfn.c, src/chsh.c, lib/defines.h,
lib/shadowmem.c, lib/shadowio.c, lib/commonio.c:
HAVE_SHADOW_H is no more needed (shadow.h should always exist).
2008-01-05 16:33:43 +00:00
nekral-guest
cea5c823a1
Fix the do_pam_passwd() prototype (it returns void).
2008-01-05 15:43:33 +00:00
nekral-guest
5a4848c8cc
do_pam_passwd should not have been defined static, prototypes.h needed
...
to be included instead.
2008-01-05 15:41:58 +00:00
nekral-guest
6cf5b05493
Remove prototype of putgrent(), add parameter's name of sgetgrent().
2008-01-05 14:35:13 +00:00
nekral-guest
f8a95f7ca1
Add option --password to groupadd and groupmod (similar to useradd and usermod).
2008-01-05 14:17:43 +00:00
nekral-guest
e94d2da45e
Remove the declaration of getutent(), getutline(), setutent(), and
...
endutent() which are declared in <utmp.h>
2008-01-05 14:09:56 +00:00
nekral-guest
8d440a2a52
stat shadows another stat variable. Remove this
...
variable, and directly check the result of getfscreatecon().
2008-01-05 14:01:34 +00:00
nekral-guest
616ad5252d
Changelog 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().
2008-01-05 13:58:56 +00:00
nekral-guest
8d9c39789b
The prototypes of fgetsx() and fputsx() are already defined in
...
prototypes.h. Remove the declaration of these functions.
2008-01-05 13:56:21 +00:00
nekral-guest
bbb9470661
loginsh is a global variable, use newshell for the update_shell()'s parameter.
2008-01-05 13:54:39 +00:00
nekral-guest
f11bbd3b70
login_prompt is the name of a function, use loginprompt for the internal variable.
2008-01-05 13:53:14 +00:00
nekral-guest
239b2d7bee
Make a proper prototype for the main() function declaration. (add void)
2008-01-05 13:51:43 +00:00
nekral-guest
2040826791
Add changelog entry for previous commit.
2008-01-05 13:49:32 +00:00
nekral-guest
83b7153b40
Add missing include "shadowio.h". (This was OK as long as prototypes.h included this file.)
2008-01-05 13:40:49 +00:00
nekral-guest
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.
2008-01-05 13:37:32 +00:00
nekral-guest
b8ce324a66
Include config.h as a system include, as recommended by the autoconf documentation.
2008-01-05 13:32:32 +00:00
nekral-guest
99dc2b1abf
Define is_listed() as static and add its prototype.
2008-01-05 13:29:24 +00:00
nekral-guest
96bca84ca4
Include "prototypes.h" to make sure the exported prototypes are
...
the ones used for the definition of functions.
2008-01-05 13:23:22 +00:00
nekral-guest
b7d372d8e3
"shadowio.h" was included for the definition of the spwd structure.
...
Replace this include by <shadow.h>
2008-01-05 13:07:54 +00:00
nekral-guest
867034e3ba
grent.c does not exist anymore. Remove the putgrent prototype.
2008-01-05 13:05:21 +00:00
nekral-guest
3c800f5880
Add the syslog_sg prototype.
2008-01-01 23:56:03 +00:00
nekral-guest
11864d22b4
Also split syslog_sg() out of main().
2008-01-01 23:54:51 +00:00
nekral-guest
1ff4e28748
Remove duplicate logging to syslog.
2008-01-01 23:45:44 +00:00
nekral-guest
d590d0ccee
Split check_perms() out of main().
2008-01-01 23:35:55 +00:00
nekral-guest
94b3b98196
Avoid assignments in conditionals.
2008-01-01 23:07:55 +00:00
nekral-guest
1d76eb6ef7
Avoid assignments in conditionals.
2008-01-01 22:21:55 +00:00
nekral-guest
631fa3b4f3
(split_groups): Test the pointer returned by malloc.
2008-01-01 20:47:31 +00:00
nekral-guest
6f45325d6e
Document add_one_entry_nis(), write_all(), commonio_remove(),
...
commonio_locate(), and commonio_rewind().
2008-01-01 20:34:47 +00:00
nekral-guest
e700196c17
Fix typo s/groupadd/chpasswd/
2008-01-01 19:56:29 +00:00
nekral-guest
53ecd8e0c0
New TODO item:
...
- newusers: add logging to SYSLOG & AUDIT
2008-01-01 19:54:37 +00:00
nekral-guest
97d7df1ef4
Fix typo s/groupadd/chage/
2008-01-01 19:53:33 +00:00
nekral-guest
376d990101
Fix typo s/groupadd/chgpasswd/.
2008-01-01 19:53:02 +00:00
nekral-guest
4c2f65d7d0
Avoid implicit conversions to booleans.
2008-01-01 18:27:40 +00:00
nekral-guest
92d8cbb26c
Avoid implicit brackets.
2008-01-01 18:04:46 +00:00
nekral-guest
7080370042
Re-indent.
2008-01-01 17:56:33 +00:00
nekral-guest
a9ae2a8710
Avoid implicit conversions to booleans.
2008-01-01 17:51:54 +00:00
nekral-guest
94266e1360
use_system_pw_file and use_system_spw_file were not reset.
2008-01-01 17:43:18 +00:00
nekral-guest
f6e79f59be
Re-indent.
2008-01-01 16:58:13 +00:00
nekral-guest
27ed5ec8b9
Avoid implicit brackets.
2008-01-01 16:54:18 +00:00
nekral-guest
f9f420b107
ignore libmisc.a
2008-01-01 16:40:50 +00:00
nekral-guest
1c2f4f0428
No 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).
2008-01-01 16:36:06 +00:00
nekral-guest
42a5b75c5a
* Fix open_files prototype (void argument).
...
* close_file documentation (s:password/shadow:group/gshadow:)
2008-01-01 16:28:01 +00:00
nekral-guest
6ac97a708c
Fix typos in comments (gshadow/shadow).
2008-01-01 16:25:57 +00:00
nekral-guest
d022527b71
Simplify pwck's main(). Remove gotos.
2008-01-01 15:52:07 +00:00
nekral-guest
3ad9a439d5
Split also check_pw_file() and check_spw_file() out of main().
2008-01-01 15:49:33 +00:00
nekral-guest
ef2c12e560
Also split open_files and close_files out of main().
...
New global variables use_system_pw_file and use_system_spw_file
2008-01-01 15:29:47 +00:00
nekral-guest
6912ac253a
Split process_flags() out of main(). New global variables is_shadow,
...
sort_mode.
2008-01-01 15:07:41 +00:00
nekral-guest
a3501dfd95
De-comment code (duplicate the entry when the _R function is not present on the system).
2008-01-01 14:48:04 +00:00
nekral-guest
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>
2008-01-01 14:38:47 +00:00
nekral-guest
d0de685c7a
Avoid ?: construct without the middle term.
2008-01-01 14:34:07 +00:00