Package: mol Version: 0.9.70-15 Severity: important Tags: patch Hi,
When i'm using mol with allow: user directive in the /etc/mol/session.map file, mol segfault just after beginning a new session. This segfault is caused by a null pointer in a strcmp() call. The attached file fix this segfault. Cheers. -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: powerpc (ppc) Kernel: Linux 2.6.9-powerpc Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Versions of packages mol depends on: ii debconf [debconf-2.0] 1.4.42 Debian configuration management sy ii debianutils 2.11.2 Miscellaneous utilities specific t ii libasound2 1.0.7-4 ALSA library ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an ii libx11-6 4.3.0.dfsg.1-10 X Window System protocol client li ii libxext6 4.3.0.dfsg.1-10 X Window System miscellaneous exte ii mol-drivers-linux [mol-d 0.9.70+1-1 The Mac-on-Linux emulator - driver ii mol-drivers-macosx [mol- 0.9.70-1 The Mac-on-Linux emulator - driver ii xlibs 4.3.0.dfsg.1-10 X Keyboard Extension (XKB) configu --
--- mol-0.9.70/src/main/main.c.old 2005-01-16 00:15:21.167533944 +0100 +++ mol-0.9.70/src/main/main.c 2005-01-15 23:55:25.000000000 +0100 @@ -279,7 +279,7 @@ static void authenticate( void ) { - char *s1, *s, *user = getlogin(); + char *s1, *s, *user = getpwuid(geteuid()); int i, j, deny_all=0; printf("user = %s\n", user);