Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jul 2023 15:48:46 GMT
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: d6e837c7225e - stable/13 - login.conf: document how to specify env var values with commas
Message-ID:  <202307171548.36HFmkKw079998@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=d6e837c7225e1e4853a186ed42dba183057704b3

commit d6e837c7225e1e4853a186ed42dba183057704b3
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2023-06-28 18:50:49 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-07-17 15:48:28 +0000

    login.conf: document how to specify env var values with commas
    
    As of f32db406504e quotes may be used to specify login class
    capabilities that include commas.  This is true in general but is
    particularly relevant for setenv, a comma-separated list of environment
    variables and values, so mention it there.
    
    PR:             236204
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit ab2f6ae8d1742f57552c37425e9cab8499d2d4ea)
---
 lib/libutil/login.conf.5 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/libutil/login.conf.5 b/lib/libutil/login.conf.5
index 7276863f53a9..cf8787495a18 100644
--- a/lib/libutil/login.conf.5
+++ b/lib/libutil/login.conf.5
@@ -19,7 +19,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd October 6, 2021
+.Dd June 28, 2023
 .Dt LOGIN.CONF 5
 .Os
 .Sh NAME
@@ -247,6 +247,7 @@ the login session will be terminated.
 .It "requirehome 	bool	false	Require a valid home directory to login."
 .It "setenv	list		A comma-separated list of environment variables and"
 values to which they are to be set.
+Values containing commas must be quoted.
 .It "shell	prog		Session shell to execute rather than the"
 shell specified in the passwd file.
 The SHELL environment variable will



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307171548.36HFmkKw079998>