diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-09-09 09:10:26 +0200 |
---|---|---|
committer | Johannes Berg <johannes@sipsolutions.net> | 2008-09-09 09:10:26 +0200 |
commit | c0dd0943168cdcac3efcb0744767eef241a11112 (patch) | |
tree | ee4473441a3032aa5e7d75643d597a204582a243 /dspam-exec.c | |
parent | ea27a882ce5b26967fc68c32970d61e77a15042c (diff) | |
download | dovecot-antispam-c0dd0943168cdcac3efcb0744767eef241a11112.tar.gz dovecot-antispam-c0dd0943168cdcac3efcb0744767eef241a11112.tar.xz dovecot-antispam-c0dd0943168cdcac3efcb0744767eef241a11112.zip |
some more verbose debugging, untested
Diffstat (limited to 'dspam-exec.c')
-rw-r--r-- | dspam-exec.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/dspam-exec.c b/dspam-exec.c index fffb61b..2f37c36 100644 --- a/dspam-exec.c +++ b/dspam-exec.c @@ -130,19 +130,20 @@ static int call_dspam(const char *signature, enum classification wanted) argv[2] = (char *)class_arg; argv[3] = (char *)sign_arg; + for (i = 0; i < extra_args_num; i++) + argv[i + 4] = (char *)extra_args[i]; + #ifdef DEBUG_SYSLOG /* * not good with stderr debuggin since we then write to * stderr which our parent takes as a bug */ - debug("%s --source=error %s %s ...", - dspam_binary, class_arg, sign_arg); + debugv(argv); #endif - for (i = 0; i < extra_args_num; i++) - argv[i + 4] = (char *)extra_args[i]; - execv(dspam_binary, argv); + debug("executing %s failed: %d (uid=%d, gid=%d)", + dspam_binary, errno, getuid(), getgid()); /* fall through if dspam can't be found */ exit(127); /* not reached */ |