Preventing temporary files?

Joseph Bruni brunij at earthlink.net
Thu Mar 10 05:14:40 CET 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


On Mar 9, 2005, at 7:04 PM, David Shaw wrote:

> On Thu, Mar 10, 2005 at 03:22:14AM +0200, Ilkka Huotari wrote:
>> I have the PHP side working. The thing that I have problems with is 
>> this:
>>
>> gpg: failed to create temporary file
>> `bin/gpg/.#lk0x80eb83c.nd2.2253': Permissio n denied
>
> That's a lock file.  It is needed to prevent more than one instance of
> GnuPG from modifying keyrings (which would naturally corrupt them).
> If you can guarantee this exclusion outside of GnuPG, then see the
> --lock-never option in the manual.
>
> David


Hi David,

Just out of curiosity, why not obtain an OS lock on the keyring files 
themselves such as that provided by flock() for the BSD unixes and 
lockf() for the SVR4 unixes? Was this for portability reasons?

Joe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)

iQEVAwUBQi/Ju1GV1jrNVRjHAQjXHgf9GRzSP0q94qHNTG2tf0SgJOmG9SuYZS6r
sJR0I26Vo52zC8cNr5Yj2VbhPZAZ9/Fv4Q6OKgGbKRMzZr8ZPKQ5s2actbcVwQ5t
nOY0jsXfpWFWMcblAwYDKT+dgGpsBZcX++Mc2nZ/hfYTgnATMGCi8ZlR9fRn9Srm
4ZiZfARqpM9BeoBabNU6nXB2elBBeVP2Y5H9bBOz4bxf8Gl3FR1iM2TVItPy5kSl
/ihDyI6R3NUi/tTyeTpYnCuh8wuyPTahqGeGh6dXFFoChtUTnCwZWTLmRTP7K4ar
SxwBb53qZ4boCo9MXdxyfJDoyvWP0cnxn3/KyFnhHjStPgzLtALLDA==
=XPMf
-----END PGP SIGNATURE-----




More information about the Gnupg-users mailing list