autofs-5.0.5 - fix disable timeout From: Ian Kent <raven@themaw.net> Using a timeout of zero should disable expires but instead causes the alarm handler to fire constant expires. --- CHANGELOG | 1 + lib/alarm.c | 3 +++ 2 files changed, 4 insertions(+) --- autofs-5.0.5.orig/CHANGELOG +++ autofs-5.0.5/CHANGELOG @@ -19,6 +19,7 @@ - fix memory leak on reload. - dont connect at ldap lookup module init. - fix random selection option. +- fix disable timeout. 03/09/2009 autofs-5.0.5 ----------------------- --- autofs-5.0.5.orig/lib/alarm.c +++ autofs-5.0.5/lib/alarm.c @@ -67,6 +67,9 @@ int alarm_add(struct autofs_point *ap, t unsigned int empty = 1; int status; + if (!seconds) + return 1; + new = malloc(sizeof(struct alarm)); if (!new) return 0;