(spamd_test): Use EUID to determine user's identity.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -315,7 +315,7 @@ spamd_test (sieve_machine_t mach, list_t args, list_t tags) | ... | @@ -315,7 +315,7 @@ spamd_test (sieve_machine_t mach, list_t args, list_t tags) |
315 | message_size (msg, &m_size); | 315 | message_size (msg, &m_size); |
316 | message_lines (msg, &m_lines); | 316 | message_lines (msg, &m_lines); |
317 | 317 | ||
318 | auth = mu_get_auth_by_uid (getuid ()); | 318 | auth = mu_get_auth_by_uid (geteuid ()); |
319 | spamd_send_command (stream, "SYMBOLS SPAMC/1.2"); | 319 | spamd_send_command (stream, "SYMBOLS SPAMC/1.2"); |
320 | spamd_send_command (stream, "Content-length: %lu", | 320 | spamd_send_command (stream, "Content-length: %lu", |
321 | (u_long) (m_size + m_lines)); | 321 | (u_long) (m_size + m_lines)); | ... | ... |
-
Please register or sign in to post a comment