]> granicus.if.org Git - procps-ng/commit
top: properly handle an improper $HOME environment variable
authorJim Warner <james.warner@comcast.net>
Fri, 13 Jan 2012 22:07:40 +0000 (16:07 -0600)
committerCraig Small <csmall@enc.com.au>
Wed, 8 Feb 2012 09:57:30 +0000 (20:57 +1100)
commit9573a6fe5b945ae4acd126cb8f285ee3434c2296
treee39136bdc3a6ef598a842a94f81f4ed8008d22e7
parentbc6b99e8ffc022f5fc36a640141001917d7cf2e8
top: properly handle an improper $HOME environment variable

Since its inception, this top has improperly handled an
empty HOME environment variable.  Under those conditions
a path to the root directory would have been constructed.

That caused no real harm upon startup since the display
defaults would have been employed.  However, except for
root, it would have been impossible to save the rc file.

This commit keeps the promise made in the documentation.
top/top.c