| 99 | } |
| 100 | |
| 101 | static void activation_note_refusal(const char *predicate, unsigned long os_error) { |
| 102 | if (g_activation_refusal_note[0] != '\0') { |
| 103 | return; |
| 104 | } |
| 105 | (void)snprintf(g_activation_refusal_note, sizeof(g_activation_refusal_note), "%s (os %lu)%s%s", |
| 106 | predicate, os_error, g_activation_refusal_object ? " at " : "", |
| 107 | g_activation_refusal_object ? g_activation_refusal_object : ""); |
| 108 | } |
| 109 | |
| 110 | #ifndef _WIN32 |
| 111 | /* A permission refusal has no errno to report — the syscall succeeded and the |
no outgoing calls
no test coverage detected