summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_default.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c
index 2dc7ec75b8..745b36c97c 100644
--- a/source3/modules/vfs_default.c
+++ b/source3/modules/vfs_default.c
@@ -1621,6 +1621,7 @@ static bool vfswrap_is_offline(struct vfs_handle_struct *handle,
{
NTSTATUS status;
char *path;
+ bool offline = false;
if (ISDOT(fname->base_name) || ISDOTDOT(fname->base_name)) {
return false;
@@ -1639,7 +1640,11 @@ static bool vfswrap_is_offline(struct vfs_handle_struct *handle,
return false;
}
- return (dmapi_file_flags(path) & FILE_ATTRIBUTE_OFFLINE) != 0;
+ offline = dmapi_file_flags(path) & FILE_ATTRIBUTE_OFFLINE != 0;
+
+ TALLOC_FREE(path);
+
+ return offline;
}
static int vfswrap_set_offline(struct vfs_handle_struct *handle,