[SCM] Samba Shared Repository - branch master updated
Volker Lendecke
vlendec at samba.org
Tue Sep 27 10:52:05 MDT 2011
The branch, master has been updated
via dab8472 Free the memory talloc'd
from b93eae2 s3-samr: Remove fstring in samr.
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit dab8472731e9c1328eab2ff90f2ab8846b02cd46
Author: Richard Sharpe <realrichardsharpe at gmail.com>
Date: Mon Sep 26 22:25:43 2011 -0700
Free the memory talloc'd
Autobuild-User: Volker Lendecke <vlendec at samba.org>
Autobuild-Date: Tue Sep 27 18:51:47 CEST 2011 on sn-devel-104
-----------------------------------------------------------------------
Summary of changes:
source3/modules/vfs_default.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c
index 2dc7ec7..745b36c 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,
--
Samba Shared Repository
More information about the samba-cvs
mailing list