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
RE: [Fwd: Bug#94739: ./.ghci -- isn't it dangerous?]
BENNETT,ANDY (HP-Unitedkingdom,ex1) Mon, 30 Apr 2001 04:08:53 -0700
- [Fwd: Bug#94739: ./.ghci -- isn't it d... Michael Weber
- Patch [Re: [Fwd: Bug#94739: ./.gh... Volker Stolz
- Re: [Fwd: Bug#94739: ./.ghci -- i... Matt Harden
- Re: [Fwd: Bug#94739: ./.ghci -- i... Matt Harden
- Re: [Fwd: Bug#94739: ./.ghci ... Matt Harden
- RE: [Fwd: Bug#94739: ./.ghci -- i... BENNETT,ANDY (HP-Unitedkingdom,ex1)
- Re: [Fwd: Bug#94739: ./.ghci ... Michael Weber
- RE: [Fwd: Bug#94739: ./.ghci -- i... Simon Marlow
- RE: [Fwd: Bug#94739: ./.ghci -- i... Simon Marlow
- Re: [Fwd: Bug#94739: ./.ghci -- i... BENNETT,ANDY (HP-Unitedkingdom,ex1)
- Re: [Fwd: Bug#94739: ./.ghci -- i... Michael Weber
- Re: [Fwd: Bug#94739: ./.ghci ... Marcin 'Qrczak' Kowalczyk
- RE: [Fwd: Bug#94739: ./.ghci -- i... Simon Marlow
- Re: [Fwd: Bug#94739: ./.ghci ... Marcin 'Qrczak' Kowalczyk
- RE: [Fwd: Bug#94739: ./.ghci -- i... Julian Seward (Intl Vendor)
- RE: [Fwd: Bug#94739: ./.ghci -- i... Simon Marlow
- RE: [Fwd: Bug#94739: ./.ghci -- i... Simon Marlow
- Re: [Fwd: Bug#94739: ./.ghci ... Volker Stolz