summaryrefslogtreecommitdiffstats
path: root/contrib/fuse-lib
diff options
context:
space:
mode:
authorKartik_Burmee <kburmee@redhat.com>2017-11-14 16:50:49 +0530
committerNiels de Vos <ndevos@redhat.com>2017-11-16 08:07:19 +0000
commit3bf2ba3fb4910a4e9ba6ea7850f3737c9c285fe8 (patch)
treeeac52c260764802316d04fc387e2d58ca8d30b82 /contrib/fuse-lib
parent3a0d9584e772191336854b140fadd3b124714012 (diff)
fuse-lib: checked_return coverity fix
issue: Calling "chdir" without checking return value function: gf_fuse_unmount_daemon fix: typecasted return value of function to void. Change-Id: I5f06fbe886a35c2d4c9f763eeb01771e9451f232 BUG: 789278 Signed-off-by: Kartik_Burmee <kburmee@redhat.com>
Diffstat (limited to 'contrib/fuse-lib')
-rw-r--r--contrib/fuse-lib/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/fuse-lib/mount.c b/contrib/fuse-lib/mount.c
index 6801f9d7383..ffa0a4b6316 100644
--- a/contrib/fuse-lib/mount.c
+++ b/contrib/fuse-lib/mount.c
@@ -103,7 +103,7 @@ gf_fuse_unmount_daemon (const char *mountpoint, int fd)
close_fds_except (ump, 1);
setsid();
- chdir("/");
+ (void)chdir("/");
sigfillset(&sigset);
sigprocmask(SIG_BLOCK, &sigset, NULL);