]> xenbits.xensource.com Git - libvirt.git/commitdiff
Correctly handle '*' in /etc/filesystems
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 1 Nov 2011 12:29:25 +0000 (12:29 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 1 Nov 2011 18:40:37 +0000 (18:40 +0000)
The /etc/filesystems file can contain a '*' on the last line to
indicate that /proc/filessystems should be tried next. We have
a check that this '*' only occurs on the last line. Unfortunately
when we then start reading /proc/filesystems, we mistakenly think
we've seen '*' in /proc/filesystems and fail

* src/lxc/lxc_container.c: Skip '*' validation when we're reading
  /proc/filesystems

src/lxc/lxc_container.c

index 7a3589b5f8bf0e9c451351b818ada94183485c50..63284e52f5b31bcd425b1f1186664ca85f73d267 100644 (file)
@@ -700,7 +700,7 @@ retry:
         /*
          * /etc/filesystems is only allowed to contain '*' on the last line
          */
-        if (gotStar) {
+        if (gotStar && !tryProc) {
             lxcError(VIR_ERR_INTERNAL_ERROR,
                      _("%s has unexpected '*' before last line"),
                      fslist);