From ae8ed1c1446d3c5482cd109778b840b1f97a6c06 Mon Sep 17 00:00:00 2001 From: sthen Date: Thu, 30 May 2024 14:29:05 +0000 Subject: [PATCH] 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@ --- etc/daily | 4 ++-- 1 file 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; } -- 2.20.1