diff options
Diffstat (limited to 'source3/client/clitar.c')
-rw-r--r-- | source3/client/clitar.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/client/clitar.c b/source3/client/clitar.c index fd6c4ccef9..80f6c81880 100644 --- a/source3/client/clitar.c +++ b/source3/client/clitar.c @@ -594,7 +594,9 @@ static void do_setrattr(char *name, uint16 attr, int set) { uint16 oldattr; - if (!cli_getatr(cli, name, &oldattr, NULL, NULL)) return; + if (!NT_STATUS_IS_OK(cli_getatr(cli, name, &oldattr, NULL, NULL))) { + return; + } if (set == ATTRSET) { attr |= oldattr; |