Why not have an environment variable for its location. If it isn't set, just
have it default to looking for .ghci in the user's home directory, if it is
use that path instead.

Regards,
Andy.

> -----Original Message-----
> From: Simon Marlow [mailto:[EMAIL PROTECTED]]
> Sent: 30 April 2001 12:20
> To: Michael Weber; GHC Bugs list
> Cc: Michal Politowski; [EMAIL PROTECTED]
> Subject: RE: [Fwd: Bug#94739: ./.ghci -- isn't it dangerous?]
> 
> 
> > So, I think a safe solution is to ensure that the .ghci file belongs
> > to the user.  Checking for decent permissions would 
> increase security,
> > but well, IMO it's the users' fault, if he creates a 777 .ghci :-P
> 
> I've thought about this a bit more.  It's not enough to just check the
> owner and permissions of .ghci if the current *directory* is world
> writable.  Therefore I'm thinking of backing off to the approach of
> never reading ./.ghci by default.
> 
> Cheers,
>       Simon
> 
> _______________________________________________
> Glasgow-haskell-bugs mailing list
> [EMAIL PROTECTED]
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
> 

_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to