Skip to content

Commit 7d97e0c

Browse files
committed
replace 'sudo-rs' prefix with 'sudo' prefix in diagnostic
1 parent dee8bc6 commit 7d97e0c

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/sudo/diagnostic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ macro_rules! diagnostic {
4343
if let Some(range) = $pos {
4444
$crate::sudo::diagnostic::cited_error(&format!($str), range, $path);
4545
} else {
46-
eprintln_ignore_io_error!("sudo-rs: {}", format!($str));
46+
eprintln_ignore_io_error!("sudo: {}", format!($str));
4747
}
4848
};
4949
($str:expr) => {{
50-
eprintln_ignore_io_error!("sudo-rs: {}", format!($str));
50+
eprintln_ignore_io_error!("sudo: {}", format!($str));
5151
}};
5252
}
5353

test-framework/e2e-tests/src/regression.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fn no_permissions_should_not_violate_io_safety() {
2727

2828
assert_eq!(
2929
stderr,
30-
"sudo-rs: cannot execute '/usr/bin/foo': Permission denied (os error 13)"
30+
"sudo: cannot execute '/usr/bin/foo': Permission denied (os error 13)"
3131
);
3232
}
3333

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ fn resolves_command_in_invoking_users_path_fail() {
404404
let diagnostic = if sudo_test::is_original_sudo() {
405405
"sudo: true: command not found"
406406
} else {
407-
"sudo-rs: 'true': command not found"
407+
"sudo: 'true': command not found"
408408
};
409409
assert_eq!(output.stderr(), diagnostic);
410410
}
@@ -453,7 +453,7 @@ fn relative_path_does_not_exist() {
453453
let diagnostic = if sudo_test::is_original_sudo() {
454454
format!("sudo: {prog_rel_path}: command not found")
455455
} else {
456-
format!("sudo-rs: '{prog_rel_path}': command not found")
456+
format!("sudo: '{prog_rel_path}': command not found")
457457
};
458458
assert_contains!(output.stderr(), diagnostic);
459459
}

test-framework/sudo-compliance-tests/src/sudo/flag_list/flag_other_user.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fn other_user_does_not_exist() {
1616
let diagnostic = if sudo_test::is_original_sudo() {
1717
format!("sudo: unknown user {USERNAME}")
1818
} else {
19-
format!("sudo-rs: user '{USERNAME}' not found")
19+
format!("sudo: user '{USERNAME}' not found")
2020
};
2121
assert_contains!(output.stderr(), diagnostic);
2222
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ fn v_flag_without_pwd_fails_if_nopasswd_is_not_set_for_all_users_entries() {
143143
} else {
144144
assert_contains!(
145145
stderr,
146-
"[sudo: authenticate] Password: \nsudo: Authentication failed, try again.\n[sudo: authenticate] Password: \nsudo: Authentication failed, try again.\n[sudo: authenticate] Password: \nsudo-rs: Maximum 3 incorrect authentication attempts"
146+
"[sudo: authenticate] Password: \nsudo: Authentication failed, try again.\n[sudo: authenticate] Password: \nsudo: Authentication failed, try again.\n[sudo: authenticate] Password: \nsudo: Maximum 3 incorrect authentication attempts"
147147
);
148148
}
149149
}

0 commit comments

Comments
 (0)