Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jul 2020 11:29:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 247947] Consider trimming values passed to setenv in login.conf
Message-ID:  <bug-247947-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 247947
           Summary: Consider trimming values passed to setenv in
                    login.conf
           Product: Base System
           Version: 12.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: conf
          Assignee: bugs@FreeBSD.org
          Reporter: michael.osipov@siemens.com

Consider I want to write in login.conf:

default:\
    ...
    :setenv=3DBLOCKSIZE=3DK,\
        LSCOLORS=3DExGxFxdxCxDxDxhbadExEx,\
        CLICOLOR=3DYES,\
        LESS=3D-x4 -R,\
        NCURSES_NO_UTF8_ACS=3D1,\
        EDITOR=3Dvim:\
    ...

After cap_mkdb is run on /etc/login.conf and a relogin the indented env vars
have preceding spaces and are unusable. While one can remove them, this bre=
aks
visual formatting and makes the file looks odd.

Consider trimming after splitting at the comma.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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