aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libshare/os/linux/smb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libshare/os/linux/smb.c b/lib/libshare/os/linux/smb.c
index 8eb1894de..0679e8210 100644
--- a/lib/libshare/os/linux/smb.c
+++ b/lib/libshare/os/linux/smb.c
@@ -103,7 +103,7 @@ smb_retrieve_shares(void)
goto out;
}
- if (stat(file_path, &eStat) == -1) {
+ if (fstat(fd, &eStat) == -1) {
close(fd);
rc = SA_SYSTEM_ERR;
goto out;