Hello.

I recently installed new server with latest vpopmail/qmailadmin/etc...
Everything seems to be fine but the page "Email accounts" page in qmailadmin: 
the problem that in generated links for modifying/deleting user, instead of 
user's name present some junk. I tried to move a few versions of qmailadmin 
down, to change gcc from 3.2 to 3.3 but nothing helped.

So yesterday I tried to debug it a bit. The problem seems to be in file 
users.c at line 161:
snprintf(path, sizeof(path), "%s/Maildir", pw->pw_dir);

Somehow this snprintf corrupts pw structure members: I was adding debug output 
before this line and after that was printing pw->pw_dir and pw->pw_name. 
Before this line they are printed ok, after they are full with junk. Also 
"path" itself doesn't get "snprintf"ed correctly. when i print it out it 
seems like "o/Maildir" or something like this.

If I comment this line out everything starts to work just fine.


Any thoughts?

Regards,
 Evgeny

PS. System is Debian Sid with gcc 3.2. Everything else that I compiled on it  
(qmail/ezmlm/vpopmail/etc) functioning just fine.



Reply via email to