Skip to content

Commit 989cae8

Browse files
committed
patch compliance test
1 parent d9b2427 commit 989cae8

File tree

1 file changed

+8
-1
lines changed
  • test-framework/sudo-compliance-tests/src

1 file changed

+8
-1
lines changed

test-framework/sudo-compliance-tests/src/visudo.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,14 @@ ls -l /tmp/sudoers-*/sudoers > {LOGS_PATH}"#
160160

161161
let ls_output = Command::new("cat").arg(LOGS_PATH).output(&env).stdout();
162162

163-
assert_ls_output(&ls_output, "-rwx------", "root", ROOT_GROUP);
163+
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+
}
164171
}
165172

166173
#[test]

0 commit comments

Comments
 (0)