]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
mconsole patch fixed.
authorTobias Brunner <tobias@strongswan.org>
Fri, 12 Jun 2009 08:55:45 +0000 (10:55 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 15 Sep 2009 12:15:17 +0000 (14:15 +0200)
src/dumm/patches/mconsole-exec-2.6.28.patch

index 2f400b3fe7c62f2fa69de5afd079350c8349759d..ca88b5df3e25a818a845a6a9f925ca55d5097639 100644 (file)
@@ -72,7 +72,7 @@
 +      }
 +      
 +      for (;;) {
-+              len = out->f_op->read(out, buf, sizeof(buf), 0);
++              len = out->f_op->read(out, buf, sizeof(buf), &out->f_pos);
 +              if (len < 0) {
 +                      mconsole_reply(req, "reading output failed", 1, 0);
 +                      break;