Date: Thu, 2 Oct 2014 18:05:01 +0000 (UTC) From: Bryan Drewery <bdrewery@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r272430 - stable/10/etc/periodic/daily Message-ID: <201410021805.s92I5183016569@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bdrewery Date: Thu Oct 2 18:05:00 2014 New Revision: 272430 URL: https://svnweb.freebsd.org/changeset/base/272430 Log: MFC r271321: Don't cross mount boundaries when cleaning tmp files. Approved by: re (gjb) Relnotes: yes Modified: stable/10/etc/periodic/daily/110.clean-tmps Directory Properties: stable/10/ (props changed) Modified: stable/10/etc/periodic/daily/110.clean-tmps ============================================================================== --- stable/10/etc/periodic/daily/110.clean-tmps Thu Oct 2 18:00:16 2014 (r272429) +++ stable/10/etc/periodic/daily/110.clean-tmps Thu Oct 2 18:05:00 2014 (r272430) @@ -45,8 +45,8 @@ case "$daily_clean_tmps_enable" in rc=$(for dir in $daily_clean_tmps_dirs do [ ."${dir#/}" != ."$dir" -a -d $dir ] && cd $dir && { - find -d . -type f $args -delete $print - find -d . ! -name . -type d $dargs -delete $print + find -x -d . -type f $args -delete $print + find -x -d . ! -name . -type d $dargs -delete $print } | sed "s,^\\., $dir," done | tee /dev/stderr | wc -l) [ -z "$print" ] && rc=0
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410021805.s92I5183016569>