diff --git a/lib/mounts.c b/lib/mounts.c index 1e54a33..ec749a8 100644 --- a/lib/mounts.c +++ b/lib/mounts.c @@ -1616,7 +1616,7 @@ static int tree_mapent_traverse_subtree(struct tree_node *n, tree_work_fn_t work { struct traverse_subtree_context *ctxt = ptr; struct mapent *oe = MAPENT(n); - int ret = -1; + int ret = 1; if (n->left) { ret = tree_mapent_traverse_subtree(n->left, work, ctxt); diff --git a/modules/parse_sun.c b/modules/parse_sun.c index d9ac0c9..4ddf027 100644 --- a/modules/parse_sun.c +++ b/modules/parse_sun.c @@ -1197,7 +1197,7 @@ static int mount_subtree(struct autofs_point *ap, struct mapent_cache *mc, * offsets to be mounted. */ rv = sun_mount(ap, name, name, namelen, loc, loclen, options, ctxt); - if (rv <= 0) { + if (rv == 0) { ret = tree_mapent_mount_offsets(me, 1); if (!ret) { tree_mapent_cleanup_offsets(me);