nekral-guest
8289eabc55
Remove prototype of l64a() (not used in pwunconv).
2008-01-06 12:12:30 +00:00
nekral-guest
58176a821d
Remove prototypes for __gr_del_entry(), __gr_get_head(),
...
__sgr_del_entry(), and __sgr_get_head().
2008-01-06 12:09:38 +00:00
nekral-guest
4cdbd1fa1d
* src/login_nopam.c: Use an ANSI prototype for resolve_hostname()
...
instead of K&R prototype.
* src/login_nopam.c: Fix the prototypes of list_match(),
user_match(), from_match(), string_match(). There were no
parameters in the prototypes.
* src/login_nopam.c: Fix the prototypes of the function parameter
match_fn of list_match().
2008-01-06 12:07:42 +00:00
nekral-guest
ff49a02023
Fix find_new_gid() prototype. Add a void parameter.
2008-01-05 17:23:46 +00:00
nekral-guest
23e8564812
Fix typos.
2008-01-05 16:44:51 +00:00
nekral-guest
462be08456
* lib/prototypes.h: Add the dolastlog() prototype.
...
* lib/prototypes.h: Typo: login.c -> loginprompt.c
* src/login.c: Remove declaration of dolastlog().
* libmisc/log.c: dolastlog() should not have been changed to static.
Include prototypes.h instead.
2008-01-05 16:44:28 +00:00
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
f8a95f7ca1
Add option --password to groupadd and groupmod (similar to useradd and usermod).
2008-01-05 14:17:43 +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
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
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
e700196c17
Fix typo s/groupadd/chpasswd/
2008-01-01 19:56:29 +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
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
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
nekral-guest
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.
2008-01-01 14:31:00 +00:00
nekral-guest
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.
2008-01-01 14:18:55 +00:00
nekral-guest
0dccafcd23
Remove inaccurate documentation.
...
The password file is no more opened in read only mode.
2008-01-01 14:12:34 +00:00
nekral-guest
b25feca14c
Add missing prototype declarations.
...
Document the new functions.
2008-01-01 14:10:21 +00:00
nekral-guest
3d82d5e452
Split check_members() out of check_grp_file() and check_sgr_file().
2008-01-01 13:50:06 +00:00
nekral-guest
612820cb9a
Split check_grp_file() and check_sgr_file() out of main().
2008-01-01 13:48:49 +00:00
nekral-guest
f6f6eeda8e
Split 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.
2008-01-01 13:13:47 +00:00
nekral-guest
ca9fbc0d8e
Compilation fix. pamh needs to be global since the split of check_perms().
2007-12-31 20:15:15 +00:00
nekral-guest
1ec694eae7
Compilation fix. user was removed from the list of global variables.
2007-12-31 20:14:31 +00:00
nekral-guest
0cc661a2cf
Re-indent.
2007-12-31 15:34:29 +00:00
nekral-guest
d6cabcde78
Re-indent.
2007-12-31 15:32:15 +00:00
nekral-guest
4c9686df0c
Avoid assignments in comparisons.
2007-12-31 15:30:29 +00:00
nekral-guest
ce4e74c1b9
Avoid implicit brackets.
2007-12-31 15:27:23 +00:00
nekral-guest
3709183127
(compil fix) Use pw->pw_name instead of user.
2007-12-31 15:13:39 +00:00
nekral-guest
9a67b445b1
sflg needs to be global.
2007-12-31 15:07:59 +00:00