[Freeipa-devel] [PATCH] 374 don't make assumptions about cwd

Rob Crittenden rcritten at redhat.com
Wed Feb 3 22:44:43 UTC 2010


Don't assume that cwd exists or is writable. I had worked on this 
previously so that we change to a known writable directory when issuing 
server certs. Enhance that so we change to the NSS db dir when issuing 
the self-signed CA. certutil wants to write a file to the cwd when 
generating a key so we need to be some place writable.

Also handle the case where cwd is an invalid directory. I tested this with:

term 1: mkdir foo
         cd foo

term 2: rmdir foo

term 1: ipa-server-install ...

Probably not a major issue but not hard to more carefully handle it 
either. The installation will still fail but at least we have a good 
message when it does.

rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-374-chdir.patch
Type: application/mbox
Size: 1725 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20100203/41de571a/attachment.mbox>


More information about the Freeipa-devel mailing list