Skip to content

Conversation

@jtru
Copy link

@jtru jtru commented Sep 27, 2025

This patch foregoes the use of system() to make cat and grep do what's better done in pure python.

I've also fixed a small typo in the ifupdown2.conf template that might confuse users.

This avoids gratuitous execution of POSIX utilities in a forked shell to
do a job that python itself is perfectly capable of doing.

Note that it changes existing behavior *slightly* (but for the better),
as before this patch, even a commented out line like the following:

    # enable_persistent_debug_logging=yes

... in `ifupdown2.conf` would have led to the persistent debugging
feature being enabled, despite `ifupdown2.conf`'s content suggesting
that this is against the (afaict not formally specified) parsing rules.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant