From e28b45a67cce5cb46222bd1d7ca12521df5c11a2 Mon Sep 17 00:00:00 2001 From: dakkar Date: Sun, 20 Oct 2019 16:34:42 +0100 Subject: moved outgoingip.patch to user patches --- mail-mta/netqmail/files/1.06-fbsd-utmpx.patch | 64 --------------------------- 1 file changed, 64 deletions(-) delete mode 100644 mail-mta/netqmail/files/1.06-fbsd-utmpx.patch (limited to 'mail-mta/netqmail/files/1.06-fbsd-utmpx.patch') diff --git a/mail-mta/netqmail/files/1.06-fbsd-utmpx.patch b/mail-mta/netqmail/files/1.06-fbsd-utmpx.patch deleted file mode 100644 index 8500eb5..0000000 --- a/mail-mta/netqmail/files/1.06-fbsd-utmpx.patch +++ /dev/null @@ -1,64 +0,0 @@ ---- qbiff.c.orig 2010-04-06 08:43:28.000000000 -0300 -+++ qbiff.c 2010-04-06 08:44:35.000000000 -0300 -@@ -1,13 +1,6 @@ - #include - #include --#include --#ifndef UTMP_FILE --#ifdef _PATH_UTMP --#define UTMP_FILE _PATH_UTMP --#else --#define UTMP_FILE "/etc/utmp" --#endif --#endif -+#include - #include "readwrite.h" - #include "stralloc.h" - #include "substdio.h" -@@ -21,15 +14,12 @@ - #include "env.h" - #include "exit.h" - --substdio ssutmp; --char bufutmp[sizeof(struct utmp) * 16]; --int fdutmp; - substdio sstty; - char buftty[1024]; - int fdtty; - --struct utmp ut; --char line[sizeof(ut.ut_line) + 1]; -+struct utmpx *ut; -+char line[sizeof(ut->ut_line) + 1]; - stralloc woof = {0}; - stralloc tofrom = {0}; - stralloc text = {0}; -@@ -64,7 +54,7 @@ - if (!(user = env_get("USER"))) _exit(0); - if (!(sender = env_get("SENDER"))) _exit(0); - if (!(userext = env_get("LOCAL"))) _exit(0); -- if (str_len(user) > sizeof(ut.ut_name)) _exit(0); -+ if (str_len(user) > sizeof(ut->ut_user)) _exit(0); - - if (!stralloc_copys(&tofrom,"*** TO <")) _exit(0); - if (!stralloc_cats(&tofrom,userext)) _exit(0); -@@ -89,15 +79,11 @@ - if (!stralloc_cat(&woof,&text)) _exit(0); - if (!stralloc_cats(&woof,"\015\n")) _exit(0); - -- fdutmp = open_read(UTMP_FILE); -- if (fdutmp == -1) _exit(0); -- substdio_fdbuf(&ssutmp,read,fdutmp,bufutmp,sizeof(bufutmp)); -- -- while (substdio_get(&ssutmp,&ut,sizeof(ut)) == sizeof(ut)) -- if (!str_diffn(ut.ut_name,user,sizeof(ut.ut_name))) -+ while ((ut = getutxent()) != NULL) -+ if (ut->ut_type == USER_PROCESS && !str_diffn(ut->ut_user,user,sizeof(ut->ut_user))) - { -- byte_copy(line,sizeof(ut.ut_line),ut.ut_line); -- line[sizeof(ut.ut_line)] = 0; -+ byte_copy(line,sizeof(ut->ut_line),ut->ut_line); -+ line[sizeof(ut->ut_line)] = 0; - if (line[0] == '/') continue; - if (!line[0]) continue; - if (line[str_chr(line,'.')]) continue; -- cgit v1.2.3