From: Jeremy Allison Date: Tue, 19 Oct 2004 23:41:26 +0000 (+0000) Subject: r3072: Fix for bug #1947 - incorrect use of getpwnam() etc. interface. X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=d330d8610dde7dc5e56e76f71879ecc2e5180ce5;p=jra%2Fsamba%2F.git r3072: Fix for bug #1947 - incorrect use of getpwnam() etc. interface. Jeremy. (This used to be commit aaab1120849efca11c68bdce9285bad25e05eecf) --- diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c index bfce4b88b41..43661f1d6cb 100644 --- a/source3/torture/cmd_vfs.c +++ b/source3/torture/cmd_vfs.c @@ -538,8 +538,6 @@ static NTSTATUS cmd_stat(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, c printf(" Modify: %s", ctime(&(st.st_mtime))); printf(" Change: %s", ctime(&(st.st_ctime))); - SAFE_FREE(pwd); - SAFE_FREE(grp); return NT_STATUS_OK; } @@ -606,8 +604,6 @@ static NTSTATUS cmd_fstat(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, printf(" Modify: %s", ctime(&(st.st_mtime))); printf(" Change: %s", ctime(&(st.st_ctime))); - SAFE_FREE(pwd); - SAFE_FREE(grp); return NT_STATUS_OK; } @@ -662,8 +658,6 @@ static NTSTATUS cmd_lstat(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, printf(" Modify: %s", ctime(&(st.st_mtime))); printf(" Change: %s", ctime(&(st.st_ctime))); - SAFE_FREE(pwd); - SAFE_FREE(grp); return NT_STATUS_OK; }