diff options
-rw-r--r-- | news/knews/files/patch-sum | 3 | ||||
-rw-r--r-- | news/knews/patches/patch-ac | 30 |
2 files changed, 32 insertions, 1 deletions
diff --git a/news/knews/files/patch-sum b/news/knews/files/patch-sum index 1e7c8005135..ef68c6a3571 100644 --- a/news/knews/files/patch-sum +++ b/news/knews/files/patch-sum @@ -1,4 +1,5 @@ -$NetBSD: patch-sum,v 1.1 1999/07/09 14:12:33 agc Exp $ +$NetBSD: patch-sum,v 1.2 1999/07/24 12:02:32 tron Exp $ MD5 (patch-aa) = 95cd0655c3bc770d6450343e204ecf97 MD5 (patch-ab) = a7803c0d155e79576a8f0d4e94933786 +MD5 (patch-ac) = b377e050b3aad321de2ef795395a1ac8 diff --git a/news/knews/patches/patch-ac b/news/knews/patches/patch-ac new file mode 100644 index 00000000000..59ef949390d --- /dev/null +++ b/news/knews/patches/patch-ac @@ -0,0 +1,30 @@ +$NetBSD: patch-ac,v 1.5 1999/07/24 12:02:33 tron Exp $ + +--- src/domain.c.orig Sun Aug 23 16:23:19 1998 ++++ src/domain.c Sat Jul 24 13:57:12 1999 +@@ -66,10 +66,25 @@ + } + } + ++static void fix_mail_name(void) ++{ ++ char *dn; ++ ++ if (!global.mail_name) return; ++ ++ dn = strchr(global.mail_name, '@'); ++ if (!dn) return; ++ *dn++='\0'; ++ ++ XtFree(global.domain_name); ++ global.domain_name = XtNewString(dn); ++} ++ + void fix_domain_stuff() + { + fix_domain_name(); + fix_user_id(); ++ fix_mail_name(); + + if (!global.domain_name) + fputs("knews: Couldn't determine domain name. " |