Re: [PATCH] issue #532 read-only admin area
From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-01-28 23:53:52 CET
Karl Fogel <kfogel@newton.ch.collab.net> writes:
> > I'll move the code in question into apr_file_set_read_only() in io.c
Damn! That means I need to think of a complete interface instead of
Well, Branko suggested
apr_file_(get|set)_perms
First, APR already has apr_file_set_perms:
apr_status_t apr_file_perms_set(const char *fname, apr_fileperms_t perms);
and it provides apr_stat to get the perms, so that interface is
Now APR doesn't appear to have a boolean type so in keeping with the
#define APR_FILE_ATTRIBUTE_READONLY 0x01
/* Holds or'ed values of APR_FILE_ATTRIBUTE_... */
apr_status_t apr_file_set_attributes(char const *fname,
These have fairly obvious implementations in terms of
However, this get/set interface doesn't allow Unix to set readonly
-- Philip --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Sat Oct 21 14:37:00 2006 |
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.