diff options
Diffstat (limited to 'src/automount.c')
-rw-r--r-- | src/automount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/automount.c b/src/automount.c index 9843481a61..047af7759b 100644 --- a/src/automount.c +++ b/src/automount.c @@ -444,6 +444,8 @@ int automount_send_ready(Automount *a, int status) { else log_debug("Sending success."); + r = 0; + /* Autofs thankfully does not hand out 0 as a token */ while ((token = PTR_TO_UINT(set_steal_first(a->tokens)))) { int k; @@ -460,8 +462,6 @@ int automount_send_ready(Automount *a, int status) { r = k; } - r = 0; - fail: if (ioctl_fd >= 0) close_nointr_nofail(ioctl_fd); |