Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/su PR misc/57287 from Nan Xiao



details:   https://anonhg.NetBSD.org/src/rev/8b14d0b9e948
branches:  trunk
changeset: 374017:8b14d0b9e948
user:      kre <kre%NetBSD.org@localhost>
date:      Fri Mar 24 14:34:17 2023 +0000

description:
PR misc/57287 from Nan Xiao

While it has always been assumed that everyone "just knew" that a simple
"su' meant "su root" perhaps the man page really should make that explicit.

Do that (using slightly different wording than suggested in the PR).

diffstat:

 usr.bin/su/su.1 |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 3d298867518a -r 8b14d0b9e948 usr.bin/su/su.1
--- a/usr.bin/su/su.1   Fri Mar 24 14:18:18 2023 +0000
+++ b/usr.bin/su/su.1   Fri Mar 24 14:34:17 2023 +0000
@@ -26,7 +26,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"    from: @(#)su.1  8.2 (Berkeley) 4/18/94
-.\"    $NetBSD: su.1,v 1.54 2019/09/01 19:12:16 wiz Exp $
+.\"    $NetBSD: su.1,v 1.55 2023/03/24 14:34:17 kre Exp $
 .\"
 .Dd September 1, 2019
 .Dt SU 1
@@ -72,6 +72,14 @@ is omitted and
 is provided (form two above), then
 .Ar login
 is assumed to be the current username.
+If neither
+.Ar login
+nor
+.Ar group
+is provided,
+.Dq root
+is used for
+.Ar login .
 .Pp
 When executed by a user, the
 .Ar login



Home | Main Index | Thread Index | Old Index