Hasse,

Try with "patch -l <patch-file".

Henry

On Sun, 02 May 2004 21:38:45 +0200, Hasse Hagen Johansen <[EMAIL PROTECTED]> wrote:

"Andreas" == Andreas Aardal Hanssen <[EMAIL PROTECTED]> writes:
    Andreas> If this is the case, I'd like those affected by this
    Andreas> problem to try the following patch [*] to 1.2.7final, and
    Andreas> see if it makes things work. This patch makes the
    Andreas> argparser ignore all unqualified arguments. It's not what
    Andreas> qmail-pop3d does, but it may take us a step closer to the
    Andreas> source of the problem.

Hi Andy

I cannot get your patch to apply cleanly. I get this in
argparser.cc.rej

***************
*** 60,76 ****

      for (int i = 1; i < argc; ++i) {
        string s = argv[i];
-       if (s.length() < 2) {
-        errString = "syntax error: " + s;
-        return false;
-       }

        if (s[0] != '-') {
         // read value of last argument
-        if (lastKey == "") {
-          errString = "syntax error: " + s;
-          return false;
-        }

         if (lastIsBoolean && (s != "yes" && s != "no")) {
           errString = "syntax error: " + s;
--- 60,72 ----

      for (int i = 1; i < argc; ++i) {
        string s = argv[i];
+       if (s.length() < 2)
+         continue;

        if (s[0] != '-') {
         // read value of last argument
+        if (lastKey == "")
+           continue;

         if (lastIsBoolean && (s != "yes" && s != "no")) {
           errString = "syntax error: " + s;

/Hasse






-- Henry Baragar Principal, Technical Architecture 416-453-5626 Instantiated Software Inc. http://www.instantiated.ca

Reply via email to