diff options
author | Jeremy Allison <jra@samba.org> | 2010-11-19 16:29:26 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-11-20 02:15:50 +0100 |
commit | 2b788aa6ce41c5c0a6892cb412cf40a7cbc73f2a (patch) | |
tree | 38d9b916b7f46705d0fe027e86ccef413b5b2374 /source3/torture | |
parent | 8585de88815490ed3c41571030bf20bff02a67d4 (diff) | |
download | samba-2b788aa6ce41c5c0a6892cb412cf40a7cbc73f2a.tar.gz samba-2b788aa6ce41c5c0a6892cb412cf40a7cbc73f2a.tar.bz2 samba-2b788aa6ce41c5c0a6892cb412cf40a7cbc73f2a.zip |
Move the uglyness of #ifdef REALPATH_TAKES_NULL into the vfs_default
module, change the signature of VFS_REALPATH to always return a
malloc'ed string.
Needed to make some privileges work I plan on doing shortly
easier to code.
Jeremy.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Nov 20 02:15:50 CET 2010 on sn-devel-104
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/cmd_vfs.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c index cd550a4f48..ea5004ce63 100644 --- a/source3/torture/cmd_vfs.c +++ b/source3/torture/cmd_vfs.c @@ -1128,14 +1128,12 @@ static NTSTATUS cmd_mknod(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, static NTSTATUS cmd_realpath(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) { - char respath[PATH_MAX]; - if (argc != 2) { printf("Usage: realpath <path>\n"); return NT_STATUS_OK; } - if (SMB_VFS_REALPATH(vfs->conn, argv[1], respath) == NULL) { + if (SMB_VFS_REALPATH(vfs->conn, argv[1]) == NULL) { printf("realpath: error=%d (%s)\n", errno, strerror(errno)); return NT_STATUS_UNSUCCESSFUL; } |