diff options
author | Tom Hukins <tom@FreeBSD.org> | 2001-11-17 16:06:51 +0000 |
---|---|---|
committer | Tom Hukins <tom@FreeBSD.org> | 2001-11-17 16:06:51 +0000 |
commit | d49d576fe56d8df765f0ce70ebeb3c27a1de7c25 (patch) | |
tree | bfda4bea0afbcff602e1199207337e94b109aa25 /net/generic-nqs/files/patch-ah | |
parent | Update to 0.4.6. (diff) |
Make Generic-NQS actually work properly
PR: ports/31208
Submitted by: AMAKAWA Shuhei <sa264@cam.ac.uk>
Notes
Notes:
svn path=/head/; revision=50147
Diffstat (limited to 'net/generic-nqs/files/patch-ah')
-rw-r--r-- | net/generic-nqs/files/patch-ah | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net/generic-nqs/files/patch-ah b/net/generic-nqs/files/patch-ah new file mode 100644 index 000000000000..8c650745f69e --- /dev/null +++ b/net/generic-nqs/files/patch-ah @@ -0,0 +1,19 @@ +--- Source-Tree/nqsdaemon/all-systems/nqs_mai.c.orig Sun Mar 19 13:19:21 2000 ++++ Source-Tree/nqsdaemon/all-systems/nqs_mai.c Sat Oct 6 10:21:00 2001 +@@ -247,8 +247,14 @@ + argv [0] = "mail"; + argv [1] = maildest; + argv [2] = (char *) 0; +- execve ("/bin/mail", argv, /* Execve() mail program */ +- envp); ++ { ++ struct stat stb; ++ if (stat("/bin/mail", &stb) != -1) ++ execve ("/bin/mail",/* Execve() mail program */ ++ argv, envp); ++ else if (stat("/usr/bin/mail", &stb) != -1) ++ execve ("/usr/bin/mail", argv, envp); ++ } + _exit (1); + } + else if (pid == -1) return (-1); /* Fork failed */ |