Back in March I reported as follows:

        directories:
                /tmp/binowned           owner=bin
        
        files:
                /tmp/binowned2/         owner=bin action=create
        
        results in
        
        # ls -ld /tmp/binowned*
        drwxr-xr-x  2 bin  root 48 Mar 18 12:16 /tmp/binowned
        drwxr-xr-x  2 root root 48 Mar 18 12:16 /tmp/binowned2
        
        That was with 2.1.13.
        
and Mark replied saying that the bug had been found and fixed for
2.1.14. I haven't used 2.1.4, but I've just upgraded some machines to
2.1.15 and the bug is (still) present.

Now I've found another problem in the same area:

        files:
                /tmp/file1      owner=bin action=touch
                /tmp/file2      owner=bin action=touch

results (on the first run) in

# ls -l /tmp/file[0-9]
----------  1 bin  root 0 Aug  3 15:00 /tmp/file1
-rwxr-xr-x  1 root root 0 Aug  3 15:00 /tmp/file2

The owner of file2 is, as expected, corrected on the second run. There
is no mention of the default mode under 'touch', but the documentation
says that it is 0644 for 'create'; however, it gets it wrong too. Of
course it is easy enough to get the modes right by setting them
explicitly. 

Jim




_______________________________________________
Bug-cfengine mailing list
Bug-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-cfengine

Reply via email to