here's the tiny test program I wrote that shows the incorrect behavior
of apr_file_lock vs. flock :
if you compile with "gcc testlock.c -I/usr/include/apr-1.0 -lapr-1",
the output is:
thread aquired lock
thread aquired lock
thread released lock
thread released lock
adding -DUSE_FLOCK to the compi
Hi,
I have written a file sync module, that will pull files from web server 1
to web server 2. the module on web server 2 writes the file (whether an
image file or a code file) into the right place in the docroot. It's kind
of experimental.
there are clearly security problems with this. t
On Tue, 4 Oct 2011 23:43:44 +0100 (BST)
Doug Bridgens wrote:
> my question is, are there any suggestions as to something like switch uid
> on a module basis ? this module is only enabled for a specific
You can't in general. The uid is an attribute of the process,
not of some part of it. Th