|
|
9a499a |
autofs-5.1.7 - remove redundant if check
|
|
|
9a499a |
|
|
|
9a499a |
From: Ian Kent <raven@themaw.net>
|
|
|
9a499a |
|
|
|
9a499a |
Coverity: identical code in if condition branches.
|
|
|
9a499a |
|
|
|
9a499a |
Signed-off-by: Ian Kent <raven@themaw.net>
|
|
|
9a499a |
---
|
|
|
9a499a |
CHANGELOG | 1 +
|
|
|
9a499a |
daemon/direct.c | 5 +----
|
|
|
9a499a |
2 files changed, 2 insertions(+), 4 deletions(-)
|
|
|
9a499a |
|
|
|
9a499a |
--- autofs-5.1.4.orig/CHANGELOG
|
|
|
9a499a |
+++ autofs-5.1.4/CHANGELOG
|
|
|
9a499a |
@@ -51,6 +51,7 @@
|
|
|
9a499a |
- remove mounts_mutex.
|
|
|
9a499a |
- remove unused variable from get_exports().
|
|
|
9a499a |
- add missing free in handle_mounts().
|
|
|
9a499a |
+- remove redundant if check.
|
|
|
9a499a |
|
|
|
9a499a |
xx/xx/2018 autofs-5.1.5
|
|
|
9a499a |
- fix flag file permission.
|
|
|
9a499a |
--- autofs-5.1.4.orig/daemon/direct.c
|
|
|
9a499a |
+++ autofs-5.1.4/daemon/direct.c
|
|
|
9a499a |
@@ -752,10 +752,7 @@ int mount_autofs_offset(struct autofs_po
|
|
|
9a499a |
|
|
|
9a499a |
ops->timeout(ap->logopt, ioctlfd, timeout);
|
|
|
9a499a |
cache_set_ino_index(me->mc, me->key, st.st_dev, st.st_ino);
|
|
|
9a499a |
- if (ap->logopt & LOGOPT_DEBUG)
|
|
|
9a499a |
- notify_mount_result(ap, me->key, timeout, str_offset);
|
|
|
9a499a |
- else
|
|
|
9a499a |
- notify_mount_result(ap, me->key, timeout, str_offset);
|
|
|
9a499a |
+ notify_mount_result(ap, me->key, timeout, str_offset);
|
|
|
9a499a |
ops->close(ap->logopt, ioctlfd);
|
|
|
9a499a |
|
|
|
9a499a |
debug(ap->logopt, "mounted trigger %s", me->key);
|