[Bug 247947] Consider trimming values passed to setenv in login.conf

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jul 13 11:29:01 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247947

            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 at FreeBSD.org
          Reporter: michael.osipov at siemens.com

Consider I want to write in login.conf:

default:\
    ...
    :setenv=BLOCKSIZE=K,\
        LSCOLORS=ExGxFxdxCxDxDxhbadExEx,\
        CLICOLOR=YES,\
        LESS=-x4 -R,\
        NCURSES_NO_UTF8_ACS=1,\
        EDITOR=vim:\
    ...

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 breaks
visual formatting and makes the file looks odd.

Consider trimming after splitting at the comma.

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


More information about the freebsd-bugs mailing list