Skip to content

Commit 77fa3b6

Browse files
authored
Fix typos in comments (#1166)
1 parent 5d2435b commit 77fa3b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/exec/noexec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ pub(crate) fn add_noexec_filter(command: &mut Command) -> SpawnNoexecHandler {
307307
return Err(io::Error::last_os_error());
308308
}
309309

310-
// While the man page warns againt using seccomp_unotify as security
310+
// While the man page warns against using seccomp_unotify as security
311311
// mechanism, the TOCTOU problem that is described there isn't
312312
// relevant here. We only SECCOMP_USER_NOTIF_FLAG_CONTINUE the first
313313
// execve which is done by ourself and thus trusted.

src/system/timestamp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ impl SessionRecordFile {
216216
}
217217

218218
/// Disable all records that match the given scope. If an auth user id is
219-
/// given then only records with the given scope that are targetting that
219+
/// given then only records with the given scope that are targeting that
220220
/// specific user will be disabled.
221221
pub fn disable(&mut self, scope: RecordScope, auth_user: Option<UserId>) -> io::Result<()> {
222222
let lock = FileLock::exclusive(&self.file, false)?;

0 commit comments

Comments
 (0)