Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Apr 2020 19:26:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 245342] adduser.sh silently sets a password different from the input if it contains leading/trailing spaces
Message-ID:  <bug-245342-227-BmWtusFRWq@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-245342-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-245342-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245342

--- Comment #1 from commit-hook@freebsd.org ---
A commit references this bug:

Author: kevans
Date: Sun Apr  5 19:25:46 UTC 2020
New revision: 359642
URL: https://svnweb.freebsd.org/changeset/base/359642

Log:
  adduser: allow standard IFS characters in passwords

  Notably, the default IFS contains space/tab, thus any leading/trailing
  whitespace characters tend to be removed.

  Set IFS=3D for just the read lines to mitigate this, allowing the user to=
 be
  less surprised when their leading/trailing spaces weren't actually captur=
ed
  in the password as they are with other means of setting a user's password.

  PR:           245342
  Submitted by: dereks_lifeofadishwasher.com
  Reviewed by:  jilles
  MFC after:    1 week
  Differential Revision:        https://reviews.freebsd.org/D24292

Changes:
  head/usr.sbin/adduser/adduser.sh

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-245342-227-BmWtusFRWq>