summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorRalph Wuerthner <ralph.wuerthner@de.ibm.com>2019-01-10 14:28:14 +0100
committerStefan Metzmacher <metze@samba.org>2019-01-15 04:13:15 +0100
commit12398a2d1ddcd326e02e5d8b0749e0e796145165 (patch)
tree871fbfecbd4d753fff4ceeca168b3caf1be29a33 /source3/modules
parent6619cec3dec8c8a2116d111aea7e5440875d0fa8 (diff)
downloadsamba-12398a2d1ddcd326e02e5d8b0749e0e796145165.tar.gz
vfs_fileid: fix get_connectpath_ino
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13741 Signed-off-by: Ralph Wuerthner <ralph.wuerthner@de.ibm.com> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Jan 15 04:13:15 CET 2019 on sn-devel-144
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_fileid.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/modules/vfs_fileid.c b/source3/modules/vfs_fileid.c
index 5d08fe97d15..cb77a2e52c6 100644
--- a/source3/modules/vfs_fileid.c
+++ b/source3/modules/vfs_fileid.c
@@ -297,12 +297,14 @@ static int get_connectpath_ino(struct vfs_handle_struct *handle,
}
ret = SMB_VFS_NEXT_STAT(handle, fname);
- TALLOC_FREE(fname);
if (ret != 0) {
DBG_ERR("stat failed for %s with %s\n",
handle->conn->connectpath, strerror(errno));
+ TALLOC_FREE(fname);
return -1;
}
+ *ino = fname->st.st_ex_ino;
+ TALLOC_FREE(fname);
return 0;
}