]> git.evergreen-ils.org Git - OpenSRF.git/commit - src/jserver/osrf_chat.c
Patch from Scott McKellar:
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 11 Apr 2008 14:13:49 +0000 (14:13 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 11 Apr 2008 14:13:49 +0000 (14:13 +0000)
commit89dc9627c05a8d252c9abe5dd76217b11b711b6b
treee94beb7bd8c9400a138f8ce91ae9ebc64f04a152
parentf43270c24570fbeff290035ad5d5316f6ebc962f
Patch from Scott McKellar:

These three patches are independent of each other, but they all do the
same thing.

In each case, we had been getting the local host name by reading the
environmental variable $HOSTNAME.  This approach normally works, but
it is vulnerable to abuse or error by a user who modifies the value
of that variable, or even unsets it altogether.

With these patches we will instead call gethostname(), which is not
affected by changes in the environment.

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1304 9efc2488-bf62-4759-914b-345cdb29e865
src/jserver/osrf_chat.c
src/libopensrf/osrf_system.c
src/libopensrf/transport_session.c