Package: libpam-mount Version: 0.13-3 Severity: normal Tags: patch Hi,
When pam_mount is required for login (i just changed 'optional' to 'required' in /etc/pam.d/common-pammount), i have to enter 2 times my login+passwd in gdm. The first time I get a login error but my home is correctly mounted, and I can see this in the log: "waiting for mount error waiting for child" If I try a second time, it works because everything is already mounted. I googled and i found a similar bug in pam_ssh : http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/45669 Based on these informations i wrote the following patch and it works but i'm not sure it's the right fix. --- src/mount.c.orig 2006-05-31 01:40:13.336501564 +0200 +++ src/mount.c 2006-05-31 01:39:00.020501564 +0200 @@ -838,7 +838,7 @@ log_output(cstderr); CLOSE(cstderr); w4rn(PMPREFIX "waiting for mount\n"); - if (waitpid(pid, &child_exit, 0) == -1) { + if (waitpid(pid, &child_exit, 0) == -1 && errno != ECHILD) { l0g(PMPREFIX "error waiting for child\n"); return 0; } Regards, Sebastien -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: powerpc (ppc) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.17-rc5 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages libpam-mount depends on: ii libc6 2.3.6-10 GNU C Library: Shared libraries ii libglib2.0-0 2.10.3-1 The GLib library of C routines ii libssl0.9.8 0.9.8b-2 SSL shared libraries ii mount 2.12r-10 Tools for mounting and manipulatin ii zlib1g 1:1.2.3-11 compression library - runtime libpam-mount recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

