Debian Codegraph @

debian/patches/rnews_reject_reason

raw
1 diff -ruN inn-1.7.2.orig/frontends/rnews.c inn-1.7.2/frontends/rnews.c
2 --- inn-1.7.2.orig/frontends/rnews.c 2004-07-12 18:29:17.000000000 +0200
3 +++ inn-1.7.2/frontends/rnews.c 2004-07-12 18:29:07.000000000 +0200
4 @@ -207,6 +207,15 @@
5 syslog(L_ERROR, "cant fopen %s %m", buff);
6 return;
7 }
8 + {
9 + char h[1024 + 24], r[1024];
10 + int len;
11 + sprintf(r, reason, arg);
12 + sprintf(h, "X-rnews-Reject-Reason: %s\n", r);
13 + len = strlen(h);
14 + if (fwrite(h, 1, len, F) != len)
15 + syslog(L_ERROR, "cant fwrite %s %m", buff);
16 + }
17 i = strlen(article);
18 if (fwrite((POINTER)article, (SIZE_T)1, (SIZE_T)i, F) != i)
19 syslog(L_ERROR, "cant fwrite %s %m", buff);