Rob Moore wrote: > Marc Sherman wrote: > >> Is this a 6.0 bug? > > > Not sure if it could be qualified as a bug, but, indeed, it would be > nice if there were a slimserver home parameter that could be passed in > to slimserver.pl or else if it would figure out the directory > slimserver.pl lives in. Worst case, pwd could be a fallback.
Setting it fixes things on my machine. Personally, I'd call it a bug.
However, it's easy to fix, here's a patch:
--- /usr/local/slimserver/slimserver.pl.orig Thu Mar 31 11:50:32 2005
+++ /usr/local/slimserver/slimserver.pl Thu Mar 31 11:54:15 2005
@@ -84,6 +84,10 @@
BEGIN {
use Symbol;
+ # Get our home directory
+ my $homedir=(getpwuid($<))[7];
+ $ENV{'HOME'} = $homedir;
+
# This begin statement contains some trickery to deal with modules
# that need to load XS code. Previously, we would check in a module
# under CPAN/arch/$VERSION/auto/... including it's binary parts and
This forces $ENV{'HOME'} to whatever the home directory is for the user
running the code. There may be a more elegant way to do this -- heck, I
could even argue that the FreeBSD startup scripts should be switching
users with "su -", and then this wouldn't be an issue.
--
Dan Rich <[EMAIL PROTECTED]> | http://www.employees.org/~drich/
| "Step up to red alert!" "Are you sure, sir?
| It means changing the bulb in the sign..."
| - Red Dwarf (BBC)
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Discuss mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/discuss
