From be9909606428d78ec23ea02900640c68ca2a40d2 Mon Sep 17 00:00:00 2001 From: "Anand V. Avati" Date: Fri, 10 Apr 2009 09:22:18 +0530 Subject: reset errno to 0 before calling first fuse_lowlevel_new() to reliably detect for unsupported params Signed-off-by: Anand V. Avati --- xlators/mount/fuse/src/fuse-bridge.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xlators/mount/fuse') diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index c607fce1c..49684977c 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -2862,7 +2862,9 @@ init (xlator_t *this_xl) goto cleanup_exit; } - + + errno = 0; + priv->se = fuse_lowlevel_new (&args, &fuse_ops, sizeof (fuse_ops), this_xl); if (priv->se == NULL && !errno) { -- cgit