From f9ad5cd133b57b66a3b71ede7829ef8c226f2224 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 12 Nov 2009 23:07:21 +0100 Subject: s3: Convert cli_unix_extensions_version to async --- source3/client/client.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'source3/client') diff --git a/source3/client/client.c b/source3/client/client.c index 6a3e73c710..f81762a563 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -2449,14 +2449,18 @@ static int cmd_posix(void) uint16 major, minor; uint32 caplow, caphigh; char *caps; + NTSTATUS status; if (!SERVER_HAS_UNIX_CIFS(cli)) { d_printf("Server doesn't support UNIX CIFS extensions.\n"); return 1; } - if (!cli_unix_extensions_version(cli, &major, &minor, &caplow, &caphigh)) { - d_printf("Can't get UNIX CIFS extensions version from server.\n"); + status = cli_unix_extensions_version(cli, &major, &minor, &caplow, + &caphigh); + if (!NT_STATUS_IS_OK(status)) { + d_printf("Can't get UNIX CIFS extensions version from " + "server: %s\n", nt_errstr(status)); return 1; } @@ -2983,6 +2987,7 @@ static int cmd_getfacl(void) uint16 num_file_acls = 0; uint16 num_dir_acls = 0; uint16 i; + NTSTATUS status; if (!next_token_talloc(ctx, &cmd_ptr,&name,NULL)) { d_printf("getfacl filename\n"); @@ -3006,9 +3011,11 @@ static int cmd_getfacl(void) return 1; } - if (!cli_unix_extensions_version(targetcli, &major, &minor, - &caplow, &caphigh)) { - d_printf("Can't get UNIX CIFS version from server.\n"); + status = cli_unix_extensions_version(targetcli, &major, &minor, + &caplow, &caphigh); + if (!NT_STATUS_IS_OK(status)) { + d_printf("Can't get UNIX CIFS version from server: %s.\n", + nt_errstr(status)); return 1; } -- cgit