Skip to content

Commit 3e03296

Browse files
LordGrimmauldstevegrubb
authored andcommitted
augenrules: use sh from PATH
expecting a shell to be in `/bin/sh` is not super portable for non-FHS systems. While systemd does implicitly expect /bin/sh to exist, this may not be the case on systemd-less systems. `/usr/bin/env` is still an absolute path, but at least using env allows replacing the interpreter shell via $PATH.
1 parent 1db5397 commit 3e03296

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init.d/augenrules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/usr/bin/env sh
22

33
# Script to concatenate rules files found in a base audit rules directory
44
# to form a single /etc/audit/audit.rules file suitable for loading into

0 commit comments

Comments
 (0)