Hello community,
here is the log from the commit of package findutils
checked in at Tue Nov 21 10:14:08 CET 2006.
--------
--- findutils/findutils.changes 2006-10-16 13:58:08.000000000 +0200
+++ /mounts/work_src_done/STABLE/findutils/findutils.changes 2006-11-20 13:26:32.000000000 +0100
@@ -1,0 +2,5 @@
+Mon Nov 20 13:26:15 CET 2006 - schwab@suse.de
+
+- cron.daily.clean_core: robustify even more.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ findutils.spec ++++++
--- /var/tmp/diff_new_pack.Fr93lc/_old 2006-11-21 10:13:00.000000000 +0100
+++ /var/tmp/diff_new_pack.Fr93lc/_new 2006-11-21 10:13:00.000000000 +0100
@@ -12,14 +12,14 @@
Name: findutils
URL: http://www.gnu.org/software/findutils/
-License: GPL
+License: GNU General Public License (GPL)
Group: Productivity/File utilities
Provides: find
Obsoletes: find
Autoreqprov: on
PreReq: %{install_info_prereq}
Version: 4.2.28
-Release: 11
+Release: 22
Summary: GNU find--Finding Files
Source: findutils-%{version}.tar.gz
Source1: sysconfig.locate
@@ -39,8 +39,8 @@
Authors:
--------
- David J. MacKenzie
- Jan Brittenson
+ David J. MacKenzie
+ Jan Brittenson
Brian L. Matthews
Mike Rendell
James A. Woods
@@ -67,8 +67,8 @@
Authors:
--------
- David J. MacKenzie
- Jan Brittenson
+ David J. MacKenzie
+ Jan Brittenson
Brian L. Matthews
Mike Rendell
James A. Woods
@@ -133,6 +133,8 @@
/var/adm/fillup-templates/*
%changelog -n findutils
+* Mon Nov 20 2006 - schwab@suse.de
+- cron.daily.clean_core: robustify even more.
* Mon Oct 16 2006 - schwab@suse.de
- cron.daily.clean_core: robustify to avoid matching non-cores [#210987].
* Mon Aug 07 2006 - schwab@suse.de
++++++ cron.daily.clean_core ++++++
--- findutils/cron.daily.clean_core 2006-10-16 13:56:39.000000000 +0200
+++ /mounts/work_src_done/STABLE/findutils/cron.daily.clean_core 2006-11-20 13:28:10.000000000 +0100
@@ -5,9 +5,9 @@
# Please add your local changes to cron.daily.local
# since this file will be overwritten, when updating your system.
#
-# Copyright (c) 2003 SuSE Linux AG, Nuernberg, Germany.
+# Copyright (c) 2006 SuSE Linux Products GmbH, Nuernberg, Germany.
#
-# Please submit bugfixes or comments via http://www.suse.de/feedback/
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# Author: Burchard Steinbild , 1996
# Florian La Roche , 1996
@@ -28,41 +28,51 @@
# get configuration
#
if [ -f /etc/sysconfig/locate ]; then
- . /etc/sysconfig/locate
+ . /etc/sysconfig/locate
fi
if [ -f /etc/sysconfig/cron ]; then
- . /etc/sysconfig/cron
+ . /etc/sysconfig/cron
fi
#
# look for old core files and tell user about it.
#
if [ -z "$MAX_DAYS_FOR_CORE" ]; then
- MAX_DAYS_FOR_CORE=5
+ MAX_DAYS_FOR_CORE=5
fi
if [ -n "$RUN_UPDATEDB" -a "$RUN_UPDATEDB" = yes -a \
-x /usr/bin/updatedb ]; then
- for DUMMY in $(find /var/lib/locatedb -mtime -7 2> /dev/null); do
+ for DUMMY in $(find /var/lib/locatedb -mtime -7 2>/dev/null); do
IFS=$'\n'
- for COREFILE in $(locate '*/core' '*/core.[0-9]*' 2> /dev/null); do
+ for COREFILE in $(locate '*/core' '*/core.[0-9]*' 2>/dev/null); do
for i in $(find "$COREFILE" ! \( -fstype nfs -o -fstype NFS \) \
\( -name core -o -regex ".*/core\\.[0-9]+" \) -type f \
- -mtime +"$MAX_DAYS_FOR_CORE" 2> /dev/null); do
- if [ "$DELETE_OLD_CORE" = yes ]; then
- echo "Deleting core file older than $MAX_DAYS_FOR_CORE days: $i"
- if [ -x /usr/bin/file ]; then
- echo file "$i"
- /usr/bin/file "$i"
- fi
- rm -f "$i"
- else
- echo "Found core file older than $MAX_DAYS_FOR_CORE days: $i"
- if [ -x /usr/bin/file ]; then
- echo file "$i"
- /usr/bin/file "$i"
- fi
- fi
+ -mtime +"$MAX_DAYS_FOR_CORE" 2>/dev/null); do
+ if [ -x /usr/bin/file ]; then
+ type=$(/usr/bin/file "$i")
+ case $type in
+ *core\ file*)
+ ;;
+ *)
+ continue
+ ;;
+ esac
+ fi
+ if [ "$DELETE_OLD_CORE" = yes ]; then
+ echo "Deleting core file older than $MAX_DAYS_FOR_CORE days: $i"
+ if [ -x /usr/bin/file ]; then
+ echo file "$i"
+ echo "$type"
+ fi
+ rm -f "$i"
+ else
+ echo "Found core file older than $MAX_DAYS_FOR_CORE days: $i"
+ if [ -x /usr/bin/file ]; then
+ echo file "$i"
+ echo "$type"
+ fi
+ fi
done
done
done
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org