DragonFly commits List (threaded) for 2012-05
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: pw: Sync with FreeBSD
commit 500b62b4a51de59d7f82d5d21af3f810b64b3de2
Author: Peter Avalos <pavalos@dragonflybsd.org>
Date: Sun May 6 12:11:50 2012 -0700
pw: Sync with FreeBSD
* Spelling fixes.
* Stop hard-coding default directory mode as 0777.
* Use arc4random_uniform() to avoid "modulo bias".
* Before updating the password database, the pw(8) utility first
performs a sanity check by invoking "pwd_mkdb -C". However, if this
failed it silently returned success. Fix this so it fails the update
operation instead.
* Increase the size of the salt in pw(8) from 8 to 32.
* Make it possible to have a '/' in the salt.
* Add the groupmod '-d' option to pw to allow the deletion of existing
users from a group without the need to perform the same operation by
replacing the existing list via the '-M' option. The '-M' option
requires someone to fetch the existing members with pw, deleting the
undesired members from the list and sending the altered list back.
* Do the right thing with symlinks in the skeleton directory.
* Accept passwords which contain whitespace.
* Introduce the new option -M to allow to set the permissions of the
user's newly created home directory.
* Use strlcpy(3).
* Shift file locking to source file instead of temp file.
* Add a `-H <fd>' option that is like `-h <fd>', but accepts an already
encrypted password on the specified file descriptor.
DragonFly-bug: <http://bugs.dragonflybsd.org/issue2362>
Obtained-from: FreeBSD
Summary of changes:
usr.sbin/pw/Makefile | 4 -
usr.sbin/pw/bitmap.h | 3 +-
usr.sbin/pw/cpdir.c | 26 ++++---
usr.sbin/pw/edgroup.c | 10 +--
usr.sbin/pw/fileupd.c | 9 +--
usr.sbin/pw/grupd.c | 3 +-
usr.sbin/pw/psdate.c | 19 ++---
usr.sbin/pw/psdate.h | 3 +-
usr.sbin/pw/pw.8 | 139 ++++++++++++++++++++++++------------
usr.sbin/pw/pw.c | 24 ++++---
usr.sbin/pw/pw.conf.5 | 46 ++++++++----
usr.sbin/pw/pw.h | 5 +-
usr.sbin/pw/pw_conf.c | 22 +++++-
usr.sbin/pw/pw_group.c | 112 +++++++++++++++++++++++------
usr.sbin/pw/pw_log.c | 3 +-
usr.sbin/pw/pw_user.c | 187 +++++++++++++++++++----------------------------
usr.sbin/pw/pw_vpw.c | 9 +--
usr.sbin/pw/pwupd.c | 11 ++-
usr.sbin/pw/pwupd.h | 3 +-
usr.sbin/pw/rm_r.c | 3 +-
20 files changed, 374 insertions(+), 267 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/500b62b4a51de59d7f82d5d21af3f810b64b3de2
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]