DeleteLinesNotStarting

Andy Elmer <[email protected]>
Newsgroups gmane.comp.sysutils.cfengine.bugs
Message-ID <[email protected]>
Unless I'm doing something wrong, I believe there is a bug with the editfile's command "DeleteLinesNotStarting" as it doesn't appear to be working.

Here is the context I am using it in. I want everything in the file, /etc/securetty, removed except for "console".

editfiles:
    linux::
                { /etc/securetty
                        DeleteLinesNotStarting "console"
                }


The file does not change.  However, if I try to delete specific lines using DeleteLinesStarting, it works fine.  Example:

editfiles:
    linux::
                { /etc/securetty
                        DeleteLinesStarting "tty"
                        DeleteLinesStarting "vc"
                }

Everything starting with "tty" or "vc" is removed.  I'm using version 2.2.8.   Thanks,


Andy

_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.