summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2019-12-21 06:01:10 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2019-12-21 06:01:10 +0000
commit3e92c223df4d6afc80c3ddd7116a0d85fb4bc490 (patch)
treedb789999512ed23dd833908f68800b70abd5eb4c /lib/libc
parentb152682605c66991fc6639cf9f6b97e811044e8b (diff)
Warn that auth_call(3) users should include a "--" argument before
non-optional arguments to stop getopt(3) processing. ok deraadt@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/auth_subr.39
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/gen/auth_subr.3 b/lib/libc/gen/auth_subr.3
index 000386679e3..e4f7bd1a253 100644
--- a/lib/libc/gen/auth_subr.3
+++ b/lib/libc/gen/auth_subr.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: auth_subr.3,v 1.23 2015/11/24 22:03:33 millert Exp $
+.\" $OpenBSD: auth_subr.3,v 1.24 2019/12/21 06:01:09 jsg Exp $
.\"
.\" Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved.
.\"
@@ -31,7 +31,7 @@
.\" SUCH DAMAGE.
.\"
.\" BSDI $From: auth_subr.3,v 2.5 2000/03/30 19:11:27 polk Exp $
-.Dd $Mdocdate: November 24 2015 $
+.Dd $Mdocdate: December 21 2019 $
.Dt AUTH_OPEN 3
.Os
.Sh NAME
@@ -200,6 +200,11 @@ The remaining arguments, which should be of type
and terminated with a
.Dv NULL ,
are passed to the login script at the end of the command line.
+Non-optional arguments such as user should be prefixed by a
+.Qq --
+argument so that
+.Xr getopt 3
+will not attempt to interpret them as optional flags.
.El
.Pp
The