![](https://seccdn.libravatar.org/avatar/af22e20b6884acbc89be6d7736c43e92.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package findutils checked in at Mon Oct 16 23:51:36 CEST 2006. -------- --- findutils/findutils.changes 2006-08-07 11:47:10.000000000 +0200 +++ /mounts/work_src_done/STABLE/findutils/findutils.changes 2006-10-16 13:58:08.000000000 +0200 @@ -1,0 +2,5 @@ +Mon Oct 16 13:56:56 CEST 2006 - schwab@suse.de + +- cron.daily.clean_core: robustify to avoid matching non-cores [#210987]. + +------------------------------------------------------------------- @@ -5,25 +10,21 @@ -** Bug Fixes - -Savannah bug #15800: If find finds more subdirectories within a parent -directory than it previously expected to based on the link count of -the parent, the resulting error message now gives the correct -directory name (previously an error message was issued but it -specified the wrong directory). - -Savannah bug #16738: "find .... -exec ... {} +" now works if you have -a large environment and many files must be passed to the -exec -action. The same problem affected the -execdir action, though since -the number of files in a given directory will normally be smaller, the -problem was worse for -exec. - -Savannah bug #16579: Updatedb now works if it is running as a user -whose login shell is not actually a shell. - -** Translations -The following translations have been updated: - Vietnamese, Belarusian, Catalan, Danish, German, Greek, Esperanto, - Spanish, Estonian, Finnish, French, Irish, Galician, Croatian, Hungarian, - Indonesian, Italian, Japanese, Korean, Luganda, Malay, Dutch, Polish, - Portuguese, Brazilian Portuguese, Romanian, Russian, Kinyarwanda, - Slovak, Slovenian, Serbian, Swedish, Turkish, Chinese (simplified), - Chinese (traditional), Bulgarian + ** Bug Fixes + Savannah bug #15800: If find finds more subdirectories within a parent + directory than it previously expected to based on the link count of + the parent, the resulting error message now gives the correct + directory name (previously an error message was issued but it + specified the wrong directory). + Savannah bug #16738: "find .... -exec ... {} +" now works if you have + a large environment and many files must be passed to the -exec + action. The same problem affected the -execdir action, though since + the number of files in a given directory will normally be smaller, the + problem was worse for -exec. + Savannah bug #16579: Updatedb now works if it is running as a user + whose login shell is not actually a shell. + ** Translations + The following translations have been updated: + Vietnamese, Belarusian, Catalan, Danish, German, Greek, Esperanto, + Spanish, Estonian, Finnish, French, Irish, Galician, Croatian, Hungarian, + Indonesian, Italian, Japanese, Korean, Luganda, Malay, Dutch, Polish, + Portuguese, Brazilian Portuguese, Romanian, Russian, Kinyarwanda, + Slovak, Slovenian, Serbian, Swedish, Turkish, Chinese (simplified), + Chinese (traditional), Bulgarian ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ findutils.spec ++++++ --- /var/tmp/diff_new_pack.GWW88k/_old 2006-10-16 23:46:19.000000000 +0200 +++ /var/tmp/diff_new_pack.GWW88k/_new 2006-10-16 23:46:19.000000000 +0200 @@ -19,7 +19,7 @@ Autoreqprov: on PreReq: %{install_info_prereq} Version: 4.2.28 -Release: 1 +Release: 11 Summary: GNU find--Finding Files Source: findutils-%{version}.tar.gz Source1: sysconfig.locate @@ -133,6 +133,8 @@ /var/adm/fillup-templates/* %changelog -n findutils +* 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 - Update to finutils 4.2.28. ** Bug Fixes ++++++ cron.daily.clean_core ++++++ --- findutils/cron.daily.clean_core 2003-03-06 16:14:12.000000000 +0100 +++ /mounts/work_src_done/STABLE/findutils/cron.daily.clean_core 2006-10-16 13:56:39.000000000 +0200 @@ -27,40 +27,41 @@ # # get configuration # -if [ -f /etc/sysconfig/locate ] ; then +if [ -f /etc/sysconfig/locate ]; then . /etc/sysconfig/locate fi -if [ -f /etc/sysconfig/cron ] ; then +if [ -f /etc/sysconfig/cron ]; then . /etc/sysconfig/cron fi # # look for old core files and tell user about it. # -if [ -z "$MAX_DAYS_FOR_CORE" ] ; then +if [ -z "$MAX_DAYS_FOR_CORE" ]; then 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 COREFILE in `locate '*/core' '*/core.[0-9]*' 2> /dev/null` ; do - for i in `find "$COREFILE" ! \( -fstype nfs -o -fstype NFS \) \ - \( -name core -o -name "core.[0-9]*" \) -type f \ - -mtime +"$MAX_DAYS_FOR_CORE" 2> /dev/null` ; do - if [ -n "$DELETE_OLD_CORE" -a "$DELETE_OLD_CORE" = "yes" ] ; then - echo "Deleting core file older than $MAX_DAYS_FOR_CORE days: $i" - if test -x /usr/bin/file ; then - echo file "$i" - /usr/bin/file "$i" - fi - rm -f "$i" +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 + IFS=$'\n' + 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 test -x /usr/bin/file ; then - echo file "$i" - /usr/bin/file "$i" - fi + 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 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
participants (1)
-
root@suse.de