os.fchown, avoiding a race condition
John Leach
john at ecsc.co.uk
Wed Mar 27 04:16:11 EST 2002
Hi,
I haven't managed to find any reference in python (any version) to the
unix system call fchown (SVr4, SVID, POSIX, X/OPEN). There is chown, but
not fchown.
I'd like to create a file as a different user but would like to avoid a
race condition by chowning via the file descriptor, but it seems I cannot.
Does anyone know why this seems to be missing? Any plans for it to
appear? Any other way I can do this?
Thanks in advance.
-John.
--
http://people.ecsc.co.uk/~john
GPG: B89C D450 5B2C 74D8 58FB A360 9B06 B5C2 26F0 3047
More information about the Python-list
mailing list