From e9c1c822f88fcfe156b289c5a9831a06ef914427 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 7 Feb 2020 14:11:13 +0200 Subject: [PATCH] smbclient: Don't cli_posix_stat() twice Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/client/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/client/client.c b/source3/client/client.c index 76180fc5ba7..d907890ddaf 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -3814,7 +3814,7 @@ static int cmd_getfacl(void) } status = cli_posix_stat(targetcli, targetname, &sbuf); - if (!NT_STATUS_IS_OK(cli_posix_stat(targetcli, targetname, &sbuf))) { + if (!NT_STATUS_IS_OK(status)) { d_printf("%s getfacl doing a stat on file %s\n", nt_errstr(status), src); return 1;