s3-selftest: fix chmod commands in provisioning.
authorGünther Deschner <gd@samba.org>
Fri, 28 May 2010 22:38:21 +0000 (00:38 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 28 May 2010 22:38:21 +0000 (00:38 +0200)
Guenther

selftest/target/Samba3.pm

index 57ec1d83680e5e023e5dda63606e22c202e8f0e6..de87311ad29c87ffe937ceb0a0f263162e6b7663 100644 (file)
@@ -452,16 +452,16 @@ sub provision($$$$$$)
        ## create ro and msdfs share layout
        ##
 
-       chmod 755, $ro_shrdir;
+       chmod 0755, $ro_shrdir;
        my $unreadable_file = "$ro_shrdir/unreadable_file";
        open(UNREADABLE_FILE, ">$unreadable_file") or die("Unable to open $unreadable_file");
        close(UNREADABLE_FILE);
-       chmod 600, $unreadable_file;
+       chmod 0600, $unreadable_file;
 
        my $msdfs_target = "$ro_shrdir/msdfs-target";
        open(MSDFS_TARGET, ">$msdfs_target") or die("Unable to open $msdfs_target");
        close(MSDFS_TARGET);
-       chmod 666, $msdfs_target;
+       chmod 0666, $msdfs_target;
        symlink "msdfs:$server_ip\\ro-tmp", "$msdfs_shrdir/msdfs-src1";
        symlink "msdfs:$server_ip\\ro-tmp", "$msdfs_shrdir/deeppath/msdfs-src2";