nmh-workers
[Top] [All Lists]

[Nmh-workers] inc_login() patch

2008-04-07 23:53:58

Just incase there's new release coming up...

Gentoo carries this patch which applies cleanly to latest cvs.
It smells as if there might be a security aspect to it too.

Anyone want to review/add to cvs?

/Anders




--- uip/inc.c.orig      2003-10-24 13:17:38.000000000 -0700
+++ uip/inc.c   2004-07-30 19:33:26.699430580 -0700
@@ -486,8 +486,7 @@
      * a POP server?
      */
     if (inc_type == INC_POP) {
-       if (user == NULL)
-           user = getusername ();
+
        if ( strcmp( POPSERVICE, "kpop" ) == 0 ) {
            kpop = 1;
        }
@@ -496,6 +495,12 @@
        else
            ruserpass (host, &user, &pass);
 
+       /* 
+        * Do this _after_ ruserpass, otherwise the login field will be unusable
+        */
+       if (user == NULL)
+           user = getusername ();
+
        /*
         * initialize POP connection
         */







_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
http://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>
  • [Nmh-workers] inc_login() patch, Anders Eriksson <=