From e2498b1110d260c917be3f938c11f68e6b6c80e4 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 30 Jun 2011 15:26:21 +0200 Subject: s3: Read symlink information in smbclient "allinfo" --- source3/client/client.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'source3/client') diff --git a/source3/client/client.c b/source3/client/client.c index 207147c6d0..94c7e98ab3 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -1716,6 +1716,23 @@ static int do_allinfo(const char *name) (unsigned long long)streams[i].size); } + if (mode & FILE_ATTRIBUTE_REPARSE_POINT) { + char *subst, *print; + uint32_t flags; + + status = cli_readlink(cli, name, talloc_tos(), &subst, &print, + &flags); + if (!NT_STATUS_IS_OK(status)) { + d_fprintf(stderr, "cli_readlink returned %s\n", + nt_errstr(status)); + } else { + d_printf("symlink: subst=[%s], print=[%s], flags=%x\n", + subst, print, flags); + TALLOC_FREE(subst); + TALLOC_FREE(print); + } + } + status = cli_ntcreate(cli, name, 0, CREATE_ACCESS_READ, 0, FILE_SHARE_READ|FILE_SHARE_WRITE -- cgit