diff options
| author | 2025-06-04 06:38:44 +0200 | |
|---|---|---|
| committer | 2025-06-04 06:38:44 +0200 | |
| commit | f0509f8b2b8df704226a94e9af8c06c3065234d4 (patch) | |
| tree | 75fbb033975303dc093ef5a7729d20227ff2de34 /sandbox.c | |
| parent | Don't enable unveil() and pledge() for sendmail spawn if "smtp_url" is set. (diff) | |
| download | penes-snac2-f0509f8b2b8df704226a94e9af8c06c3065234d4.tar.gz penes-snac2-f0509f8b2b8df704226a94e9af8c06c3065234d4.tar.xz penes-snac2-f0509f8b2b8df704226a94e9af8c06c3065234d4.zip | |
Minor tweak.
Diffstat (limited to 'sandbox.c')
| -rw-r--r-- | sandbox.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -13,12 +13,13 @@ void sbox_enter(const char *basedir) | |||
| 13 | return; | 13 | return; |
| 14 | } | 14 | } |
| 15 | 15 | ||
| 16 | int smail = !xs_is_true(xs_dict_get(srv_config, "disable_email_notifications")); | 16 | int smail; |
| 17 | |||
| 18 | const char *url = xs_dict_get(srv_config, "smtp_url"); | 17 | const char *url = xs_dict_get(srv_config, "smtp_url"); |
| 19 | 18 | ||
| 20 | if (xs_is_string(url) && *url) | 19 | if (xs_is_string(url) && *url) |
| 21 | smail = 0; | 20 | smail = 0; |
| 21 | else | ||
| 22 | smail = !xs_is_true(xs_dict_get(srv_config, "disable_email_notifications")); | ||
| 22 | 23 | ||
| 23 | srv_debug(1, xs_fmt("Calling unveil()")); | 24 | srv_debug(1, xs_fmt("Calling unveil()")); |
| 24 | unveil(basedir, "rwc"); | 25 | unveil(basedir, "rwc"); |