-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sssd_flush_cache() errors ignored #1221
Comments
All callers ignore it. Link: <shadow-maint#1221> Signed-off-by: Alejandro Colomar <[email protected]>
All callers ignore it. Link: <shadow-maint#1221> Signed-off-by: Alejandro Colomar <[email protected]>
All callers ignore it. Link: <shadow-maint#1221> Signed-off-by: Alejandro Colomar <[email protected]>
Being a macro, the unused return value triggers a diagnostic. This probably needs further investigation, but we have the issue linked below for that. Link: <shadow-maint#1221> Signed-off-by: Alejandro Colomar <[email protected]>
Being a macro, the unused return value triggers a diagnostic. This probably needs further investigation, but we have the issue linked below for that. Link: <shadow-maint#1221> Signed-off-by: Alejandro Colomar <[email protected]>
Being a macro, the unused return value triggers a diagnostic. This probably needs further investigation, but we have the issue linked below for that. Link: <shadow-maint#1221> Signed-off-by: Alejandro Colomar <[email protected]>
Being a macro, the unused return value triggers a diagnostic. This probably needs further investigation, but we have the issue linked below for that. Link: <shadow-maint#1221> Signed-off-by: Alejandro Colomar <[email protected]>
Being a macro, the unused return value triggers a diagnostic. This probably needs further investigation, but we have the issue linked below for that. Link: <shadow-maint#1221> Signed-off-by: Alejandro Colomar <[email protected]>
Being a macro, the unused return value triggers a diagnostic. This probably needs further investigation, but we have the issue linked below for that. Link: <shadow-maint#1221> Signed-off-by: Alejandro Colomar <[email protected]>
Being a macro, the unused return value triggers a diagnostic. This probably needs further investigation, but we have the issue linked below for that. Link: <shadow-maint#1221> Signed-off-by: Alejandro Colomar <[email protected]>
Being a macro, the unused return value triggers a diagnostic. This probably needs further investigation, but we have the issue linked below for that. Link: <shadow-maint#1221> Signed-off-by: Alejandro Colomar <[email protected]>
Being a macro, the unused return value triggers a diagnostic. This probably needs further investigation, but we have the issue linked below for that. Link: <shadow-maint#1221> Signed-off-by: Alejandro Colomar <[email protected]>
Being a macro, the unused return value triggers a diagnostic. This probably needs further investigation, but we have the issue linked below for that. Link: <shadow-maint#1221> Signed-off-by: Alejandro Colomar <[email protected]>
Being a macro, the unused return value triggers a diagnostic. This probably needs further investigation, but we have the issue linked below for that. Link: <shadow-maint#1221> Signed-off-by: Alejandro Colomar <[email protected]>
Being a macro, the unused return value triggers a diagnostic. This probably needs further investigation, but we have the issue linked below for that. Link: <shadow-maint#1221> Signed-off-by: Alejandro Colomar <[email protected]>
Being a macro, the unused return value triggers a diagnostic. This probably needs further investigation, but we have the issue linked below for that. Link: <shadow-maint#1221> Signed-off-by: Alejandro Colomar <[email protected]>
Being a macro, the unused return value triggers a diagnostic. This probably needs further investigation, but we have the issue linked below for that. Link: <shadow-maint#1221> Signed-off-by: Alejandro Colomar <[email protected]>
Being a macro, the unused return value triggers a diagnostic. This probably needs further investigation, but we have the issue linked below for that. Link: <shadow-maint#1221> Signed-off-by: Alejandro Colomar <[email protected]>
Being a macro, the unused return value triggers a diagnostic. This probably needs further investigation, but we have the issue linked below for that. Link: <shadow-maint#1221> Signed-off-by: Alejandro Colomar <[email protected]>
This is done after all other changes have been made, so trying to unwind the changes may resul |
? |
Egads, i wrote a lot more than that, that's kind of annoying. tl;dr was that I don't think we can, if ssd_flush_cache() fails, undo the rest of the changes and return an error, because undoing the changes may also break. So we should syslog an error message. Except that the error case you pointed to is where malloc(4) failed. In that case I don't expect syslog() to succeed either. |
Hmmm, okay, so all other error cases already do syslog, and this one it's pointless, so ignoring the return value is actually fine. I guess it's okay. I'll then try to workaround the diagnostic. |
sssd deprecated the |
Nice! Do you have an estimate of how distros are catching up with that? |
No, I'm not following this topic closely. The sssd version was released a year a go, so I'd probably give it another 1-2 years. |
Thanks! |
shadow/lib/sssd.c
Line 41 in 40bb89b
shadow/lib/sssd.h
Line 13 in 40bb89b
This function (actually the macro when it's not being compiled) triggered an error while enabling
-Werror=all
, due to (all) callers ignoring the return value. Do we need to care about that return value when this function fails?Cc: @jhrozek
The text was updated successfully, but these errors were encountered: