Another trivial patch.

Cheers,
Jeff

Signed-off-by: Jeff Moyer <[email protected]>

diff --git a/daemon/direct.c b/daemon/direct.c
index 0c78627..9b4e57b 100644
--- a/daemon/direct.c
+++ b/daemon/direct.c
@@ -1245,7 +1245,7 @@ static void *do_mount_direct(void *arg)
        }
 
        status = stat(mt.name, &st);
-       if (!S_ISDIR(st.st_mode) || st.st_dev != mt.dev) {
+       if (status != 0 || !S_ISDIR(st.st_mode) || st.st_dev != mt.dev) {
                error(ap->logopt,
                     "direct trigger not valid or already mounted %s",
                     mt.name);

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to