cron errors: grep: /etc/libvirt/qemu/*.xml: No such file or directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Fix Released
|
Medium
|
Jamie Strandboge |
Bug Description
Hi
I got a mail from cron this night:
/etc/cron.
grep: /etc/libvirt/
Looking at /etc/cron.
for i in /etc/libvirt/
uuid=`grep '<uuid>' "$i" | sed 's#.*<uuid>
uuids="$uuids $uuid"
done
I can reproduce with:
sh -c 'for i in /etc/foo*bar; do echo $i; done'
/etc/foo*bar
Proposed change, add a backtick expansion and call ls; i.e.:
for i in `ls /etc/libvirt/
Note that this continues execution even in set -e mode:
sh -c 'set -e; for i in `ls /etc/foo*bar 2>/dev/null`; do echo $i; done; echo true'
Thanks,
ProblemType: Bug
Architecture: amd64
Date: Wed Oct 21 22:21:58 2009
DistroRelease: Ubuntu 9.10
Package: libvirt-bin 0.7.0-1ubuntu12
ProcEnviron:
SHELL=/bin/zsh
PATH=(custom, user)
LANG=fr_FR.UTF-8
ProcVersionSign
SourcePackage: libvirt
Uname: Linux 2.6.31-11-generic x86_64
Related branches
Changed in libvirt (Ubuntu): | |
assignee: | nobody → Jamie Strandboge (jdstrand) |
importance: | Undecided → Medium |
milestone: | none → karmic-updates |
status: | New → Triaged |
Assuming a more pending update to libvirt doesn't come up which I can piggback this on, I'll do an SRU for this.