diff options
author | Ralph Wuerthner <ralph.wuerthner@de.ibm.com> | 2019-01-10 14:28:14 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2019-02-01 11:34:10 +0100 |
commit | bb3e0c5c8290575331b636720dbc59d7cf90c65c (patch) | |
tree | 3f6fa229803dd16849d474570214aa06a5b99684 | |
parent | 4588c1c704ae29f924c2c0d45aa55c1e0afc0055 (diff) | |
download | samba-bb3e0c5c8290575331b636720dbc59d7cf90c65c.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
(cherry picked from commit 12398a2d1ddcd326e02e5d8b0749e0e796145165)
-rw-r--r-- | source3/modules/vfs_fileid.c | 4 |
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; } |