if (!NT_STATUS_IS_OK(status)) {
DEBUG(5, ("cacl_get failed to open %s: %s\n",
targetpath, nt_errstr(status)));
- errno = 0;
+ errno = cli_status_to_errno(status);
return -1;
}
DEBUG(5,("cacl_get Failed to query old descriptor "
"of %s: %s\n",
targetpath, nt_errstr(status)));
- errno = 0;
+ errno = cli_status_to_errno(status);
return -1;
}
filename,
discard_const_p(char, value),
size);
- if (ret < 0 && errno == 0) {
- errno = SMBC_errno(context, srv->cli);
- }
TALLOC_FREE(frame);
/*
* static function cacl_get returns a value greater than zero