diff options
author | Anand V. Avati <avati@gluster.com> | 2009-04-10 09:22:18 +0530 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-04-12 11:59:34 +0530 |
commit | be9909606428d78ec23ea02900640c68ca2a40d2 (patch) | |
tree | 0115432e5945b384c7d06b2ac2fe7242fc4672e1 /xlators/mount/fuse | |
parent | fa9eb588fbe758cbc1ebe727d2455f1dcd0b065f (diff) |
reset errno to 0 before calling first fuse_lowlevel_new() to reliably detect for unsupported params
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'xlators/mount/fuse')
-rw-r--r-- | xlators/mount/fuse/src/fuse-bridge.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index c607fce1c7c..49684977c69 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) { |