From f98788f1fa1bd03f978aa4c3535ee1da86c7c3ba Mon Sep 17 00:00:00 2001 From: Packit Bot Date: May 04 2021 22:13:47 +0000 Subject: Apply patch autofs-5.1.7-remove-redundant-if-check.patch patch_name: autofs-5.1.7-remove-redundant-if-check.patch present_in_specfile: true --- diff --git a/CHANGELOG b/CHANGELOG index 1f281cc..7c354d4 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -51,6 +51,7 @@ - remove mounts_mutex. - remove unused variable from get_exports(). - add missing free in handle_mounts(). +- remove redundant if check. xx/xx/2018 autofs-5.1.5 - fix flag file permission. diff --git a/daemon/direct.c b/daemon/direct.c index 3f4f570..a33f9f9 100644 --- a/daemon/direct.c +++ b/daemon/direct.c @@ -752,10 +752,7 @@ int mount_autofs_offset(struct autofs_point *ap, struct mapent *me) ops->timeout(ap->logopt, ioctlfd, timeout); cache_set_ino_index(me->mc, me->key, st.st_dev, st.st_ino); - if (ap->logopt & LOGOPT_DEBUG) - notify_mount_result(ap, me->key, timeout, str_offset); - else - notify_mount_result(ap, me->key, timeout, str_offset); + notify_mount_result(ap, me->key, timeout, str_offset); ops->close(ap->logopt, ioctlfd); debug(ap->logopt, "mounted trigger %s", me->key);