[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: RFC: svnserve.conf umask directive

From: John Peacock <jpeacock_at_rowman.com>
Date: 2003-12-01 02:35:30 CET

Tobias Ringstrom wrote:
> A solution could perhaps be to only check that the current umask is
> correct, and abort if not. That would prevent repository "corruption"
> and let the user fix the problem. Unfortunately I'm not sure if it's
> possible to read the umask without setting it. Anyone?
>

It appears that on some architectures, getumask() is available (and is supposed
to be threadsafe), but all others would have to use:

               mode_t getumask(void) {
                    mode_t mask = umask(0);
                    umask(mask);
                    return mask;
               }

[direct quote from the getumask man page) and worry about threads conflicting.

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Dec 1 02:35:41 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.