bug-anubis
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-anubis] Re: Problems with Ident


From: Sergey Poznyakoff
Subject: [bug-anubis] Re: Problems with Ident
Date: Sat, 24 Jun 2006 15:15:22 +0300

Czesc Bartku!

> I have a problem concernig ident identification.
> Ident recognizes user with space before the username ie " bartek".
> Could anyone explain me step-by-step how to use the patch, I mean
> where should I copy it or execute?

Yes, sure. But please use the attached file instead. To apply it, follow
these steps:

1. Save the attachment as a file, e.g. ident.c.diff
2. Change to the anubis directory
3. Run

      patch -p0 < ident.c.diff

   If everything goes right, you will see the following message

      patching file src/ident.c

4. Recompile Anubis

Regards,
Sergey

Index: src/ident.c
--- src-orig/ident.c    2006-06-24 15:10:11.000000000 +0300
+++ src/ident.c 2006-06-24 15:12:06.000000000 +0300
@@ -53,7 +53,9 @@ ident_extract_username (char *reply, cha
   p = strchr (p, ':');
   if (!p)
     return 1;
-  p++;
+  do
+    p++;
+  while (*p == ' ');
   if (strlen (p) >= size)
     return 1;
   strcpy (username, p);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]