From b3dbebfa15ca2c44a53f0bc7d7a52b4dc3d76352 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Thu, 11 Nov 2004 10:07:16 +0000 Subject: [PATCH] fixed "find -maxdepth" warning --- scripts/brp-cleanup.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/brp-cleanup.in b/scripts/brp-cleanup.in index d6116c5..cf0616d 100755 --- a/scripts/brp-cleanup.in +++ b/scripts/brp-cleanup.in @@ -66,13 +66,13 @@ find .$RPM_CLEANUP_TOPDIR -type d -name CVS -print0 | if [ -z "$RPM_KEEP_LIBTOOL_FILES" ]; then for d in ./lib ./usr/lib ./usr/X11R6/lib; do [ -d "$d" ] || continue - find "$d" -type f -mindepth 1 -maxdepth 1 -name 'lib*.la' -print0 | + find "$d" -mindepth 1 -maxdepth 1 -type f -name 'lib*.la' -print0 | xargs -r0 rm -fv -- done fi if [ -d ./etc/pam.d ]; then - find ./etc/pam.d -type f -mindepth 1 -maxdepth 1 -print0 | + find ./etc/pam.d -mindepth 1 -maxdepth 1 -type f -print0 | xargs -r0 subst -p ' s,^\(#\?\)auth[[:space:]]\+,\1auth ,g s,^\(#\?\)account[[:space:]]\+,\1account ,g