From: Volker Lendecke Date: Fri, 7 Feb 2020 12:11:13 +0000 (+0200) Subject: smbclient: Don't cli_posix_stat() twice X-Git-Tag: ldb-2.1.1~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9c1c822f88fcfe156b289c5a9831a06ef914427;p=thirdparty%2Fsamba.git smbclient: Don't cli_posix_stat() twice Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- 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;