nekral-guest
29e71bf1b3
Fix --non-unique's has_arg field to no_argument instead of required_argument.
2008-02-19 21:16:28 +00:00
nekral-guest
7ec4a64cdb
Add missing 'p' to the getopt_long's optstring.
2008-02-19 21:10:17 +00:00
nekral-guest
18c914f086
Added new option -r, --system for system accounts in useradd, groupadd,
...
and newusers.
2008-02-19 21:01:38 +00:00
nekral-guest
04190741e7
Use the find_new_uid() and find_new_gid() from the library instead of the
...
local functions.
2008-02-03 16:56:23 +00:00
nekral-guest
8c229ea473
Re-indent.
2008-01-24 20:54:42 +00:00
nekral-guest
3dd5866244
Replace printf by puts for fixed strings. This would avoid issues caused
...
by formats introduced in translated strings.
2008-01-24 20:42:12 +00:00
nekral-guest
229e6cbdd8
Fix typo in comment: s/find_new_uid/find_new_gid/
2008-01-22 22:59:06 +00:00
nekral-guest
23e8564812
Fix typos.
2008-01-05 16:44:51 +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
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().
2007-12-30 21:48:55 +00:00
nekral-guest
8dc4ca297c
New function check_flags(). Split the validation of
...
options and arguments out of process_flags.
2007-12-28 21:04:04 +00:00
nekral-guest
605a338216
(main, check_perms): New function check_perms().
...
Split the validation of the user's permissions out of main()
2007-12-28 20:46:24 +00:00
nekral-guest
6d09b4ce4d
(main): Before pam_end(), the return value of the previous pam API was already
...
checked. No need to validate it again.
2007-12-28 20:40:59 +00:00
nekral-guest
147c37789a
Re-indent.
2007-12-28 20:35:05 +00:00
nekral-guest
ffa34c5afd
(process_flags): prefer fail_exit to exit. This avoid
...
an explicit call to audit_logger().
2007-12-28 19:15:14 +00:00
nekral-guest
da37da30e1
I forgot the initialization of group_id in find_new_gid().
2007-12-28 19:08:33 +00:00
nekral-guest
b4f6b853f8
* process_args renamed process_flags
...
* Add the options checks in process_flags (group_name, group ID uniqueness)
* Add the parameters' names in the prototypes.
2007-12-28 11:22:27 +00:00
nekral-guest
cc1f6c10be
Split the processing of options out of main().
2007-12-28 10:41:22 +00:00
nekral-guest
08e09354b2
find_new_gid is never called when an
...
GID is specified with -g. Simplify find_new_gid accordingly.
2007-12-28 10:30:39 +00:00
nekral-guest
83b546beef
(find_new_gid): If oflg is set, gflg is also set.
...
Use (!gflg), which is cleared than (!gflg || !oflg).
2007-12-28 10:19:21 +00:00
nekral-guest
b4071939e0
A group with the specified name cannot exist at that time in find_new_gid.
...
Remove the check.
2007-12-28 10:15:42 +00:00
nekral-guest
0a4424ef00
Avoid implict brackets.
2007-12-28 10:12:09 +00:00
nekral-guest
18a654d13b
When compiled without AUDIT support, if the return code was E_SUCCESS,
...
fail_exit() wouldn't have exited. Fix the scope of #idef WITH_AUDIT.
2007-12-28 09:39:22 +00:00
nekral-guest
20dfe6ba98
NO_GETPWENT is no more supported. Remove associated chunks of code.
2007-12-26 09:28:02 +00:00
nekral-guest
6831c45533
Do not use tabulations in Usage strings.
2007-11-24 22:41:24 +00:00
nekral-guest
9adfc136b6
* lib/prototypes.h, configure.in, libmisc/Makefile.am,
...
libmisc/xgetXXbyYY.c, libmisc/xgetpwnam.c, libmisc/xgetpwuid.c,
libmisc/xgetgrnam.c, libmisc/xgetgrgid.c, libmisc/xgetspnam.c:
Added functions xgetpwnam(), xgetpwuid(), xgetgrnam(),
xgetgrgid(), and xgetspnam(). They allocate memory for the
returned structure and are more robust to successive calls. They
are implemented with the libc's getxxyyy_r() functions if
available.
* libmisc/limits.c, libmisc/entry.c, libmisc/chowntty.c,
libmisc/addgrps.c, libmisc/myname.c, libmisc/rlogin.c,
libmisc/pwdcheck.c, src/newgrp.c, src/login_nopam.c,
src/userdel.c, src/lastlog.c, src/grpck.c, src/gpasswd.c,
src/newusers.c, src/chpasswd.c, src/chfn.c, src/groupmems.c,
src/usermod.c, src/expiry.c, src/groupdel.c, src/chgpasswd.c,
src/su.c, src/useradd.c, src/groupmod.c, src/passwd.c, src/pwck.c,
src/groupadd.c, src/chage.c, src/login.c, src/suauth.c,
src/faillog.c, src/groups.c, src/chsh.c, src/id.c: Review all the
usage of one of the getpwnam(), getpwuid(), getgrnam(),
getgrgid(), and getspnam() functions. It was noticed on
http://bugs.debian.org/341230 that chfn and chsh use a passwd
structure after calling a pam function, which result in using
information from the passwd structure requested by pam, not the
original one. It is much easier to use the new xget... functions
to avoid these issues. I've checked which call to the original
get... functions could be left (reducing the scope of the
structure if possible), and I've left comments to ease future
reviews (e.g. /* local, no need for xgetpwnam */).
Note: the getpwent/getgrent calls should probably be checked also.
* src/groupdel.c, src/expiry.c: Fix typos in comments.
* src/groupmod.c: Re-indent.
* libmisc/Makefile.am, lib/groupmem.c, lib/groupio.c, lib/pwmem.c,
lib/pwio.c, lib/shadowmem.c, lib/shadowio.c: Move the __<xx>_dup
functions (used by the xget... functions) from the <xx>io.c files
to the new <xx>mem.c files. This avoid linking some utils against
the SELinux library.
2007-11-18 23:15:26 +00:00
nekral-guest
b2120265fd
Added the subversion svn:keywords property (Id) for proper identification.
2007-11-10 23:46:11 +00:00
nekral-guest
79bf2081fe
Commit the last version from the PLD CVS repository.
...
(last changelog entry: 2007-02-01)
This also adds the files which were present in the CVS repository, but not
present in the shadow archives.
2007-10-07 14:36:51 +00:00
nekral-guest
5e20c4359f
[svn-upgrade] Integrating new upstream version, shadow (4.0.18)
2007-10-07 11:47:57 +00:00
nekral-guest
8a78a8d68c
[svn-upgrade] Integrating new upstream version, shadow (4.0.17)
2007-10-07 11:47:45 +00:00
nekral-guest
591830e43b
[svn-upgrade] Integrating new upstream version, shadow (4.0.15)
2007-10-07 11:47:22 +00:00
nekral-guest
24178ad677
[svn-upgrade] Integrating new upstream version, shadow (4.0.14)
2007-10-07 11:47:11 +00:00
nekral-guest
8451bed8b0
[svn-upgrade] Integrating new upstream version, shadow (4.0.13)
2007-10-07 11:47:01 +00:00
nekral-guest
e89f3546f2
[svn-upgrade] Integrating new upstream version, shadow (4.0.12)
2007-10-07 11:46:52 +00:00
nekral-guest
b48129fcbb
[svn-upgrade] Integrating new upstream version, shadow (4.0.11)
2007-10-07 11:46:34 +00:00
nekral-guest
8c50e06102
[svn-upgrade] Integrating new upstream version, shadow (4.0.10)
2007-10-07 11:46:25 +00:00
nekral-guest
8e167d28af
[svn-upgrade] Integrating new upstream version, shadow (4.0.8)
2007-10-07 11:46:07 +00:00
nekral-guest
b0e078d9c8
[svn-upgrade] Integrating new upstream version, shadow (4.0.5)
2007-10-07 11:45:40 +00:00
nekral-guest
effd479bff
[svn-upgrade] Integrating new upstream version, shadow (4.0.4)
2007-10-07 11:45:23 +00:00
nekral-guest
9db6abfa42
[svn-upgrade] Integrating new upstream version, shadow (4.0.1)
2007-10-07 11:44:59 +00:00
nekral-guest
4e3fe42600
[svn-upgrade] Integrating new upstream version, shadow (20001012)
2007-10-07 11:44:38 +00:00
nekral-guest
d6e9891ad7
[svn-upgrade] Integrating new upstream version, shadow (20000902)
2007-10-07 11:44:32 +00:00
nekral-guest
be1f391d2a
[svn-upgrade] Integrating new upstream version, shadow (20000826)
2007-10-07 11:44:26 +00:00
nekral-guest
5cd76a407a
[svn-upgrade] Integrating new upstream version, shadow (20000902)
2007-10-07 11:44:20 +00:00
nekral-guest
efd7efa9f1
[svn-upgrade] Integrating new upstream version, shadow (20000826)
2007-10-07 11:44:14 +00:00
nekral-guest
45c6603cc8
[svn-upgrade] Integrating new upstream version, shadow (19990709)
2007-10-07 11:44:02 +00:00