2.5.0 compatibility problem for find in scripts/news.daily.in

S.P.Zeidler spz at serpens.de
Sat Oct 3 16:21:33 UTC 2009


for file in `find -name "innfeed-dropped*"` 

is a GNUis, since (eg NetBSD):

%find -name "innfeed-dropped*"
find: unknown option -- n
find: unknown option -- a
find: unknown option -- m
find: unknown option -- e
find: innfeed-dropped*: No such file or directory

find . -name "innfeed-dropped*" will work in most cases, but assuming
implied print to work everywhere is also not entirely safe, so I'd
suggest using:

for file in `find . -name "innfeed-dropped*" -print`

As patch:
--- scripts/news.daily.in.orig  2009-05-21 22:08:33.000000000 +0200
+++ scripts/news.daily.in
@@ -233,7 +233,7 @@ then
     # Process files like "innfeed-dropped.A001703" where
     # 1703 is not in $LOCKS.
-    for file in `find -name "innfeed-dropped*"`
+    for file in `find . -name "innfeed-dropped*" -print`
         PID=`echo "$file" | ${SED} 's/^.*[A-Z]0*//'`

best regards,
spz at serpens.de (S.P.Zeidler)

More information about the inn-bugs mailing list