> > Also, I was lookin around at blackbox cvs at expandTilde(), and although I've > never come across an instance of $HOME not being set (anyone?), it could be > possible. > > This may be a bit much, but perhaps adding some stuff to use getpw* could be > done... Checks for getpwuid() and pwd.h could be added to the autoconf stuff, > then test $HOME, and if it's not set... > > struct passwd *p = getpwuid(getuid()); > ... use p->pw_dir ... > > Dunno, just a thought. :) >
It is definately "good enough" style code. It works for now but needs work later.
