summaryrefslogtreecommitdiff
path: root/etc/daily
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2024-05-30 14:29:06 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2024-05-30 14:29:06 +0000
commit9d03842a28276be4d524be4f794df3b511da58f4 (patch)
tree56d16097997f9a4ba99205a34a645515ab1035e4 /etc/daily
parent7afcdf26f1dacdc82459be8ed597eff139fc7c98 (diff)
sem_open() uses /tmp/*.sem files. Exclude them from /tmp daily cleanup
like is already done for /tmp/*.shm used by libc. ok millert@ tb@, same diff landry@
Diffstat (limited to 'etc/daily')
-rw-r--r--etc/daily4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/daily b/etc/daily
index 77210e71e13..5463c72fc67 100644
--- a/etc/daily
+++ b/etc/daily
@@ -1,5 +1,5 @@
#
-# $OpenBSD: daily,v 1.98 2024/05/16 11:33:59 solene Exp $
+# $OpenBSD: daily,v 1.99 2024/05/30 14:29:05 sthen Exp $
# From: @(#)daily 8.2 (Berkeley) 1/25/94
#
# For local additions, create the file /etc/daily.local.
@@ -50,7 +50,7 @@ if [ -d /tmp -a ! -L /tmp ]; then
find -x . \
\( -path './ssh-*' -o -path ./.X11-unix -o -path ./.ICE-unix \
-o -path './tmux-*' \) -prune -o \
- -type f -and ! -path './*.shm' -atime +7 -delete 2>/dev/null
+ -type f -and ! -path './*.s[eh]m' -atime +7 -delete 2>/dev/null
find -x . -type d -mtime +1 ! -path ./vi.recover ! -path ./.X11-unix \
! -path ./.ICE-unix ! -name . \
-delete >/dev/null 2>&1; }