Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Aug 2012 22:07:05 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        Manolis Kiagias <sonic2000gr@gmail.com>
Cc:        freebsd-security@freebsd.org
Subject:   Re: getting the running patch level
Message-ID:  <867gt27dzq.fsf@ds4.des.no>
In-Reply-To: <50295C95.7020301@gmail.com> (Manolis Kiagias's message of "Mon,  13 Aug 2012 22:59:17 %2B0300")
References:  <0B65D7562F9DA04FAC3F15C508BF67136B90E09E1F@ESESSCMS0355.eemea.ericsson.se> <001701cd7648$c2520350$46f609f0$@com> <5024f984.45ca320a.1838.4155SMTPIN_ADDED@mx.google.com> <CAC8HS2FU1hrbh_m4P6h%2BSpUAJREfCeynHPD3QnNx6XuzSb3T-g@mail.gmail.com> <86pq6xs0zb.fsf@ds4.des.no> <20120812163448.GA88577@DataIX.net> <86vcgm7fsw.fsf@ds4.des.no> <50295C95.7020301@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Manolis Kiagias <sonic2000gr@gmail.com> writes:
> One could also set the environment variable UNAME_r to the correct
> value (either in system wide e.g. /etc/profile or to a specific user
> dot files).

If your goal is to have uname(1) return the correct value, yes, except
it won't always work.  For instance, sudo(1) (and probably also su(1),
but I never use it) will strip it from the environment and will *not*
run /etc/profile before the requested command.

> Or, since the correct value is always in newvers.sh, if src is present
> in the system a periodic script could update it automatically.

We can't assume that src is present.

> The manual updating  will cause more confusion in the long run -
> people tend to forget these things...

Nobody suggested manually updating anything.

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



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