[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nmh-workers] inc_login() patch
From: |
Anders Eriksson |
Subject: |
[Nmh-workers] inc_login() patch |
Date: |
Tue, 08 Apr 2008 08:53:17 +0200 |
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
*/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Nmh-workers] inc_login() patch,
Anders Eriksson <=