apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Pilch-Bisson <ke...@pilch-bisson.net>
Subject umasks, apr_file_perms_set and APR_OS_DEFAULT
Date Thu, 22 Nov 2001 19:48:15 GMT
Hi All,

I'm a developer on the subversion project, and one of the things I'm
trying to do is make the files in the .svn administrative directory

In order to do that I have to play around with permissions on a bunch of
files.  The problem I have run into is that if APR_OS_DEFAULT is is
passed to apr_file_open, the resulting permissions are the result of the
umask and APR_OS_DEFAULT.  However, if apr_file_perms_set is used, the
umask doesn't get applied, and all my files end up being rwxrwxrwx.

Any ideas on a way to retrieve the umask, so that I can reliably use
apr_file_perms_set to set file permissions to the users default
Kevin Pilch-Bisson                    http://www.pilch-bisson.net
     "Historically speaking, the presences of wheels in Unix
     has never precluded their reinvention." - Larry Wall

View raw message