From 1718e803dc9269f8ba0db4260cc3b8a000da248a Mon Sep 17 00:00:00 2001 From: Aravind Srinivasan Date: Mon, 11 May 2009 22:39:05 +0000 Subject: s3: Always allocate memory in dptr_ReadDirName This is a follow up to 69d61453df6019caef4e7960fa78c6a3c51f3d2a to adjust the API to allow the lower layers allocate memory. Now the memory can explicitly be freed rather than relying on talloc_tos(). Signed-off-by: Tim Prouty --- source3/include/proto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/include/proto.h') diff --git a/source3/include/proto.h b/source3/include/proto.h index 68c312568b..6f298ad9a0 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -6142,7 +6142,7 @@ void dptr_SeekDir(struct dptr_struct *dptr, long offset); long dptr_TellDir(struct dptr_struct *dptr); bool dptr_has_wild(struct dptr_struct *dptr); int dptr_dnum(struct dptr_struct *dptr); -const char *dptr_ReadDirName(TALLOC_CTX *ctx, +char *dptr_ReadDirName(TALLOC_CTX *ctx, struct dptr_struct *dptr, long *poffset, SMB_STRUCT_STAT *pst); -- cgit