freebsd-skq/lib/libutil
bapt 5daa84302c MFC: 272445,272578,273772,273779,273782,273786,273787,273791
Add a test for bug 191427 where pw(8) will go into an infinite loop
Add some tests for modifying groups
When a group is renamed then the group has been invalidated for sure.
In that case get the group information using the new name.

Fix a regression in pw usermod -G list

The user was perperly adding the to different groups from "list" but was not
removed from the other groups it could have belong to.

Do not delete the group wheel when bad argument is passed to pw groupdel -g

Check that the -g argument is actually a number, if not report an error.
This argument is converted without checking with atoi(3) later so without this
check it converts any alpha entries into 0 meaning it deletes the group wheel

Ensure pw userdel -u <invalid> do not try to remove root

Check the uid passed is actually a number as early as possible

Fix renaming a group via the gr_copy function

Add a regression test to pw(8) because the bug was discovered via using:
pw groupmod

PR:		193704 [1], 185666 [2], 90114 [3], 187189 [4]
Submitted by:	Marc de la Gueronniere [4]
Reported by:	az [1], sub.mesa@gmail.com [2], bkoenig@cs.tu-berlin.de [3],
		mcdouga9@egr.msu.edu [4]
2014-11-04 07:50:48 +00:00
..
tests MFC r270180: 2014-08-27 18:25:14 +00:00
_secure_path.3
_secure_path.c
auth.c Finally nuke auth.conf, nine years after it was deprecated. The only 2012-06-12 17:02:53 +00:00
expand_number.3
expand_number.c The round of expand_number() cleanups. 2013-08-30 11:21:52 +00:00
flopen.3 Convert files to UTF-8 and add some copyright markers where missing. 2012-01-07 16:13:56 +00:00
flopen.c
fparseln.3
fparseln.c MFC r269015: 2014-08-16 00:54:56 +00:00
gr_util.c MFC: 272445,272578,273772,273779,273782,273786,273787,273791 2014-11-04 07:50:48 +00:00
hexdump.3
hexdump.c
humanize_number.3 don't assert on bad args, instead return an error.. 2013-10-07 22:22:57 +00:00
humanize_number.c don't assert on bad args, instead return an error.. 2013-10-07 22:22:57 +00:00
kinfo_getallproc.3 mdoc: sort prologue macros. 2012-03-26 19:23:57 +00:00
kinfo_getallproc.c - Commit work from libprocstat project. These patches add support for runtime 2011-05-12 10:11:39 +00:00
kinfo_getfile.3 MFC r265276: 2014-07-29 22:29:31 +00:00
kinfo_getfile.c
kinfo_getproc.3 Fixed documented prototype of kinfo_getproc(3). 2013-03-01 07:39:14 +00:00
kinfo_getproc.c - Commit work from libprocstat project. These patches add support for runtime 2011-05-12 10:11:39 +00:00
kinfo_getvmmap.3
kinfo_getvmmap.c
kld.3 Convert files to UTF-8 and add some copyright markers where missing. 2012-01-07 16:13:56 +00:00
kld.c
libutil.h Cleanup gr_add() so it does not leak mem 2013-03-07 19:00:00 +00:00
login_auth.3
login_auth.c libutil: Use O_CLOEXEC for internal file descriptors from open(). 2013-08-28 21:10:37 +00:00
login_cap.3 Remove trailing whitespace per mdoc lint warning 2012-03-29 05:02:12 +00:00
login_cap.c libutil: Use O_CLOEXEC for internal file descriptors from open(). 2013-08-28 21:10:37 +00:00
login_cap.h
login_class.3 Add missing resource limits: 2011-03-24 16:06:57 +00:00
login_class.c MFC r273837: 2014-11-01 13:45:01 +00:00
login_crypt.c
login_ok.3
login_ok.c
login_times.3
login_times.c Fix -Wunsequenced warning 2013-06-29 15:52:48 +00:00
login_tty.3
login_tty.c
login.conf.5 Switch the default password hash from md5 to sha512. 2012-06-19 14:46:18 +00:00
Makefile MFC r270180: 2014-08-27 18:25:14 +00:00
pidfile.3 Add a comment to the example that pidfile_* functions can handle pfh being NULL. 2012-02-08 08:49:30 +00:00
pidfile.c libutil: Use O_CLOEXEC for internal file descriptors from open(). 2013-08-28 21:10:37 +00:00
property.3 Finally nuke auth.conf, nine years after it was deprecated. The only 2012-06-12 17:02:53 +00:00
property.c
pty.3
pty.c
pw_util.3 MFC r261824: 2014-02-16 02:33:59 +00:00
pw_util.c Add O_CLOEXEC to flopen 2012-12-27 20:24:44 +00:00
quotafile.3 Remove trailing whitespace per mdoc lint warning 2012-03-29 05:02:12 +00:00
quotafile.c libutil: Use O_CLOEXEC for internal file descriptors from open(). 2013-08-28 21:10:37 +00:00
realhostname_sa.3
realhostname.3 Remove unnecessary includes from these libutil man pages. 2012-01-16 21:25:41 +00:00
realhostname.c
stub.c
trimdomain.3
trimdomain.c
uucplock.3
uucplock.c libutil: Use O_CLOEXEC for internal file descriptors from open(). 2013-08-28 21:10:37 +00:00