diff options
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/client.c | 17 |
1 files changed, 12 insertions, 5 deletions
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; } |