[openib-general] [PATCH] osm: fixing OSM_LOG_DIR and OSM_CACHE_DIR treatment

Hal Rosenstock halr at voltaire.com
Mon Oct 16 05:53:58 PDT 2006


On Mon, 2006-10-16 at 05:47, Yevgeny Kliteynik wrote:
> Hi Hal
> 
> Leaving OSM_LOG_DIR or OSM_CACHE_DIR environment variables
> empty will cause OSM to wright log or cache files to /
> since OSM runs as root process.
> 
> Although one might say that this is just a question of point 
> of view, I really think that to prevent root directory trashing
> (as I did by mistake on my machine), empty variable should be 
> treated as if it is not set.
> If a user wants the SM to write something to /, he should specify
> this explicitly by setting "/" as an env. variable value.
> 
> --
> Yevgeny
> 
> Signed-off-by:  Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>

Thanks. Applied.

-- Hal






More information about the general mailing list