Mario Fetka
2024-07-31 07:59:25 +02:00
parent 37171bcc17
commit 849dbf3ead
8 changed files with 44 additions and 11 deletions

View File

@@ -21,6 +21,8 @@
#define ENV_UNXCOMM "UNXCOMM"
#ifdef LINUX
# include <unistd.h>
# include <string.h>
# define DEFAULT_COMM "/pipes/unxcomm"
#else
# ifdef DEFAULT_UNC

View File

@@ -12,6 +12,8 @@
#define ENV_UNXCOMM "UNXSENDM"
#ifdef LINUX
# include <unistd.h>
# include <string.h>
# define DEFAULT_COMM "/pipes/unxsendm"
# else
# define DEFAULT_COMM "p:/unxsendm"

View File

@@ -8,6 +8,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/time.h>

View File

@@ -5,6 +5,7 @@
*/
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/time.h>
#include <sys/types.h>
@@ -36,7 +37,7 @@ int main(int argc, char *argv[])
FILE *f;
char path[MAXARGLEN+200];
buf[size]='\0';
sprintf(path, "/usr/sbin/sendmail %s", buf);
sprintf(path, "/usr/bin/sendmail %s", buf);
f=popen(path, "w");
if (NULL != f) {
write(1, "+++++\n", 6);