On Thu, Aug 13, 2009 at 1:05 AM, Rafał Kupka<[email protected]> wrote: > On Wed, Aug 12, 2009 at 08:47:18PM +0200, Andrew Beekhof wrote: > Hello, > >> > I don't have time to look into code, sorry. Maybe it is from >> > mkdir (..., 750) instead of mkdir (..., 0750)? >> >> can someone add a leading zero and let me know if it helps? > >> >> perhaps write a small program that uses mkdir() and chmod() and see if >> >> you can get it to behave correctly. > > Sample program: > > #include <sys/stat.h> > int main (int argc, char * argv[]) > { > mkdir("test1", 750); > mkdir("test2", 0750); > } > > Results: > d-wxr-xr-T 2 kupson kupson 4096 sie 13 00:50 test1 > drwxr-x--- 2 kupson kupson 4096 sie 13 00:50 test2
Perfect. Thanks! http://hg.clusterlabs.org/pacemaker/stable-1.0/rev/3840e6b5a305 _______________________________________________ Pacemaker mailing list [email protected] http://oss.clusterlabs.org/mailman/listinfo/pacemaker
