Arla-0.27 and redhat-6.0

Love lha at stacken.kth.se
Wed Dec 1 00:16:01 CET 1999


Goswin Brederlow <goswin.brederlow at student.uni-tuebingen.de> writes:

> I had the same problem and I have to say its an absolut idiotic idea
> to use the # as seperator (it normaly means comment) and even more
> idiotic to make spaces relevant.

Index: kocell.c
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/lib/ko/kocell.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -w -u -w -r1.25 -r1.26
--- kocell.c	1999/09/25 17:32:35	1.25
+++ kocell.c	1999/11/30 23:11:26	1.26
@@ -317,6 +317,10 @@
 	  return -1;
      } else {
 	  ++hostname;
+	  while (*hostname && isspace(*hostname))
+	      hostname++;
+	  if (*hostname == '\0')
+	      hostname = inet_ntoa (numaddr);
 	  dbservs[*dbnum].name = strdup (hostname);
 	  if (dbservs[*dbnum].name == NULL)
 	      err (1, "strdup");

Love





More information about the Arla-drinkers mailing list