diff options
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 */ |