We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9b2427 commit 989cae8Copy full SHA for 989cae8
test-framework/sudo-compliance-tests/src/visudo.rs
@@ -160,7 +160,14 @@ ls -l /tmp/sudoers-*/sudoers > {LOGS_PATH}"#
160
161
let ls_output = Command::new("cat").arg(LOGS_PATH).output(&env).stdout();
162
163
- assert_ls_output(&ls_output, "-rwx------", "root", ROOT_GROUP);
+ if sudo_test::is_original_sudo() {
164
+ //TODO: this is incorrect, will be fixed in a future sudo; the
165
+ //point of the test anyway is that the file is not accessible
166
+ //by any other than the owner.
167
+ assert_ls_output(&ls_output, "-rwx------", "root", ROOT_GROUP);
168
+ } else {
169
+ assert_ls_output(&ls_output, "-rw-------", "root", ROOT_GROUP);
170
+ }
171
}
172
173
#[test]
0 commit comments