Bug#409819: snoopy: segfaults on amd64

2007-02-26 Thread Marc Haber
On Mon, Feb 26, 2007 at 10:04:24AM +0100, Marc Haber wrote: > I have committed the attached patch and have pointed upstream here. Stupid me forgot the attachment. Greetings Marc -- - Marc Haber | "I don't trust

Bug#409819: snoopy: segfaults on amd64

2007-02-25 Thread Steve Langasek
FWIW, this latest patch can't be right: +@@ -96,9 +98,13 @@ + free(*(argv_copy+i)); + #endif + +- syslog(LOG_INFO, "[%s, uid:%d sid:%d]: %s", getlogin(), getuid(), getsid(0), logstring); +- free(logstring); ++ getlogin_r( login, 255 ); ++ if( login == 0 ) { ++