* patch from upstream for SIGBUS on sparc64, closes: #640304
* use common-session-noninteractive in the pam config to reduce log noise
when sudo is used in cron, etc, closes: #519700
+ * patch from Steven McDonald to fix segfault on startup under certain
+ conditions, closes: #639568
- -- Bdale Garbee <bdale@gag.com> Mon, 26 Sep 2011 20:33:40 -0600
+ -- Bdale Garbee <bdale@gag.com> Mon, 26 Sep 2011 21:55:56 -0600
sudo (1.8.2-1) unstable; urgency=low
--- /dev/null
+Fixes segfault on startup under certain conditions
+--- a/src/utmp.c
++++ b/src/utmp.c
+@@ -96,7 +96,7 @@
+ size_t idlen;
+
+ /* Skip over "tty" in the id if old entry did too. */
+- if (strncmp(line, "tty", 3) == 0) {
++ if (old != NULL && strncmp(line, "tty", 3) == 0) {
+ idlen = MIN(sizeof(old->ut_id), 3);
+ if (strncmp(old->ut_id, "tty", idlen) != 0)
+ line += 3;