Skip to content

Commit

Permalink
Export a PERIODIC environment variable from periodic(8). This will
Browse files Browse the repository at this point in the history
allow periodic security scripts to know if they have been called in
a daily or a weekly context.
  • Loading branch information
jlh authored and jlh committed Aug 25, 2013
1 parent a08ed50 commit 30d34af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions usr.sbin/periodic/periodic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ shift
arg=$1

tmp_output=`mktemp ${TMPDIR:-/tmp}/periodic.XXXXXXXXXX`
export PERIODIC="$arg${PERIODIC:+ }${PERIODIC}"

# Execute each executable file in the directory list. If the x bit is not
# set, assume the user didn't really want us to muck with it (it's a
Expand Down

0 comments on commit 30d34af

Please sign in to comment.