Package: libpam-mount Followup-For: Bug #302024 The below patch makes xdm work with libpam-mount.
The issue is that readconfig's read_command callback doesn't put a NULL
into the next array entry after the last segment read, which means if
the memory is not null (eg. being recycled from the malloc heap) it will
end up with unexpected rubbish in the parameter list.
This is working here nicely, in conjuction with the previous patch.
--- libpam-mount-0.9.25.orig/src/readconfig.c
+++ libpam-mount-0.9.25/src/readconfig.c
@@ -247,6 +247,8 @@
"pam_mount: command line configured to be too long";
COMMAND(i) = g_strdup(cmd->data.list[i]);
}
+ if (i <= MAX_PAR)
+ COMMAND(i) = NULL;
return NULL;
}
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (990, 'unstable'), (950, 'unstable'), (900, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
--
Paul "TBBle" Hampson, [EMAIL PROTECTED]
8th year CompSci/Asian Studies student, ANU
Shorter .sig for a more eco-friendly paperless office.
pgpQ7zk2ax6vh.pgp
Description: PGP signature

