diff options
author | Anonymous <anon@nowhere.com> | 2022-11-30 17:10:35 -0600 |
---|---|---|
committer | Anonymous <anon@nowhere.com> | 2022-11-30 17:10:35 -0600 |
commit | 893634027f4bb13dd3ef34ef7a5d71e6af17f5c9 (patch) | |
tree | 9bc198db7f44e3840ac0e3a41b1d29a69bd9f61e | |
parent | 2a5f10583b98cbf9aa094a244c021c8fee9e905e (diff) |
this is actually a pipe not a file, it should be closed as a pipe
-rw-r--r-- | activitypub.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activitypub.c b/activitypub.c index bb091ff..5f26f73 100644 --- a/activitypub.c +++ b/activitypub.c @@ -1017,10 +1017,10 @@ void process_queue(snac *snac) FILE *f; int ok = 0; - if ((f = popen("/usr/sbin/sendmail -t", "w")) != NULL) { + f = popen("/usr/sbin/sendmail -t", "w"); + if (f) { fprintf(f, "%s\n", msg); - - if (fclose(f) != EOF) + if (pclose(f) != EOF) //this is a pipe stream not just a file ok = 1; } |