Skip to content

Commit f5ba22d

Browse files
committed
ensure relative includes are correctly processed after editing (fixes #1524)
1 parent d1902f6 commit f5ba22d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/visudo/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ fn edit_sudoers_file(
295295
.wait_with_output()?;
296296

297297
let (sudoers, errors) = File::open(tmp_path)
298-
.and_then(|reader| Sudoers::read(reader, tmp_path))
298+
.and_then(|reader| Sudoers::read(reader, sudoers_path))
299299
.map_err(|err| {
300300
io_msg!(
301301
err,

0 commit comments

Comments
 (0)