-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lenses/systemd.aug: Allow "+"(fullprivileges) command flag #841
Conversation
For S-o-b you should use your full name and email, like The reporter wasn't me, it was When applying the patch I see trailing whitespace, please fix as well:
I tested it and the tests passed for me and it otherwise looks good. |
@rwmjones done |
LGTM now |
@tupyy Could you please rebase this on top of the current head. |
This issue is a bit bigger than it seems The problem described in issue #839 is correct, and the fix in Pull Request #841 fixes the issue described However, there a 3 issues which are not addressed, and probably should be
this lens will neither read nor generate a line with the flags in the reverse order
I'm not sure if it's possible, but it would be nice if the updated lens would still accept the old set statement |
Hello, The easiest way is to bundle everything together like |
Hi Cosmin, I think we are agreed that Augeas should not try to enforce systemd flag rules. I only mentioned it to say not to waste effort on this. I like the idea of having cmd_flags and an explicit value (as you have shown), but as you mention, we should try to keep the lens backwards compatible. Allowing an arbitrary flag order can be achieved by changing the following 2 lines:
and
Notice that by restricting just the 1st character of |
This commit allows the "+"(fullprivileges) command flag along with "-" and "@" flags. Order does not matter. Fixes: hercules-team#839 Signed-off-by: Cosmin Tupangiu <[email protected]> Reported-by: Yongkui Guo <[email protected]>
Hi George, Thank you for the suggestions. I've updated the PR accordingly. Cosmin |
This commit allows the "+"(fullprivileges) command flag along with "-" and "@" flags.
Fixes: #839