Good day all,

I have a long standing oddity - first seen in cfengine 3.1.X  and also seen
in latest one I have running cfengine-3.2.3-14.1 .. Built from OpenSuse
Build system src.rpm.

A relatively simple promise:


files:
  "/home/theuser/tmp/consolidator/."
        create => "true",
        perms => mog("774","theuser","users");



It is my understanding that the /. syntax signifies a directory rather than
a file.



The resulting directory is created  but its mode is not 774:

Access: (0775/drwxrwxr-x)

I have tried using symbols rather than numeric and it behaves the same way.
I have been fiddling around with this for some time, experimenting, and
updated recently to 3.2.1X  hoping that would resolve the issue.  Has
anyone seen this before?  Or have advice?

BTW I also changed the file slightly, dropped the /.  If the directory
exists the mode is changed correctly. If the directory does not exist an
ordinary file is created instead.

Cheers
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to