|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [PATCH] Mkbuildtree little fix
ChangeSet 1.1846, 2005/05/03 17:30:40+01:00, ydroneaud@xxxxxxxxxxxx
[PATCH] Mkbuildtree little fix
Hi, here is a really small fix for mkbuildtree.
With my 'find' version [1], I get many of these warning when using
mkbuildtree:
find: warning: you have specified the -maxdepth option after a
non-option argument -type, but options are not positional (-maxdepth
affects tests specified before it as well as those specified after it).
Please specify options before other arguments.
My patch just correct the ordering of the options, it should be
harmless, but I didn't test with other versions of find.
Regards
[1] find --version
GNU find version 4.2.20
Features enabled: D_TYPE O_NOFOLLOW(enabled)
xen-unstable-mkbuildtree-find-maxpath.patch:
linux-2.4.29-xen-sparse/mkbuildtree | 2 +-
linux-2.6.11-xen-sparse/mkbuildtree | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff -Nru a/linux-2.4.29-xen-sparse/mkbuildtree
b/linux-2.4.29-xen-sparse/mkbuildtree
--- a/linux-2.4.29-xen-sparse/mkbuildtree 2005-05-03 13:03:39 -04:00
+++ b/linux-2.4.29-xen-sparse/mkbuildtree 2005-05-03 13:03:39 -04:00
@@ -66,7 +66,7 @@
(
cd $i
pref=`echo $i | sed -e 's#/[^/]*#../#g' -e 's#^\.##'`
- for j in `find . -type f -o -type l -maxdepth 1`; do
+ for j in `find . -maxdepth 1 -type f -o -type l`; do
ln -sf ${pref}${REAL_DIR}/$i/$j ${SYMLINK_DIR}/$i/$j
done
)
diff -Nru a/linux-2.6.11-xen-sparse/mkbuildtree
b/linux-2.6.11-xen-sparse/mkbuildtree
--- a/linux-2.6.11-xen-sparse/mkbuildtree 2005-05-03 13:03:39 -04:00
+++ b/linux-2.6.11-xen-sparse/mkbuildtree 2005-05-03 13:03:39 -04:00
@@ -66,7 +66,7 @@
(
cd $i
pref=`echo $i | sed -e 's#/[^/]*#../#g' -e 's#^\.##'`
- for j in `find . -type f -o -type l -maxdepth 1`; do
+ for j in `find . -maxdepth 1 -type f -o -type l`; do
ln -sf ${pref}${REAL_DIR}/$i/$j ${SYMLINK_DIR}/$i/$j
done
)
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
|
|
|
|