1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices] ircservices-
5.0.57 convert-db utility crashes
5 when converting from anope db.
7 <LINK REL=
"Index" HREF=
"index.html" >
8 <LINK REL=
"made" HREF=
"mailto:ircservices%40ircservices.esper.net?Subject=%5BIRCServices%5D%20ircservices-5.0.57%20convert-db%20utility%20crashes%20%0A%09when%20converting%20from%20anope%20db.&In-Reply-To=4496d9f5.42222%40msgid.achurch.org">
9 <META NAME=
"robots" CONTENT=
"index,nofollow">
10 <META http-equiv=
"Content-Type" content=
"text/html; charset=us-ascii">
11 <LINK REL=
"Previous" HREF=
"005147.html">
12 <LINK REL=
"Next" HREF=
"005149.html">
14 <BODY BGCOLOR=
"#ffffff">
15 <H1>[IRCServices] ircservices-
5.0.57 convert-db utility crashes
16 when converting from anope db.
</H1>
18 <A HREF=
"mailto:ircservices%40ircservices.esper.net?Subject=%5BIRCServices%5D%20ircservices-5.0.57%20convert-db%20utility%20crashes%20%0A%09when%20converting%20from%20anope%20db.&In-Reply-To=4496d9f5.42222%40msgid.achurch.org"
19 TITLE=
"[IRCServices] ircservices-5.0.57 convert-db utility crashes
20 when converting from anope db.">gabriel.baez at solid-ircd.com
22 <I>Mon Jun
19 13:
20:
17 PDT
2006</I>
24 <LI>Previous message:
<A HREF=
"005147.html">[IRCServices] ircservices-
5.0.57 convert-db utility crashes when
25 converting from anope db.
27 <LI>Next message:
<A HREF=
"005149.html">[IRCServices] ircservices-
5.0.57 convert-db utility crashes
28 when converting from anope db.
30 <LI> <B>Messages sorted by:
</B>
31 <a href=
"date.html#5148">[ date ]
</a>
32 <a href=
"thread.html#5148">[ thread ]
</a>
33 <a href=
"subject.html#5148">[ subject ]
</a>
34 <a href=
"author.html#5148">[ author ]
</a>
39 <PRE>Thanks this worked, the issue I have now, is that I can't identify, the
40 passwords in the anope db were encrypted and now when I Import the data
41 and try to identify I get a password incorrect message.
44 >><i>sheik@***** [~/services2/lib]# ./convert-db -v +anope
45 </I>>><i> /home/sheik/services
46 </I>>><i>Loading nick.db...
47 </I>>><i>Loading chan.db...
48 </I>>><i>Loading oper.db...
49 </I>>><i>Loading exception.db...
50 </I>>><i>Loading news.db...
51 </I>>><i>Data files successfully loaded.
52 </I>>><i>Checking data integrity...
53 </I>>><i>Segmentation fault
55 </I>><i> Can you try applying the patch below and tell me if it solves your
58 </I>><i> --Andrew Church
59 </I>><i> <A HREF=
"http://lists.ircservices.za.net/mailman/listinfo/ircservices">achurch at achurch.org
</A>
60 </I>><i> <A HREF=
"http://achurch.org/">http://achurch.org/
</A>
62 </I>><i> ---------------------------------------------------------------------------
64 </I>><i> Index: tools/convert-db.c
65 </I>><i> ===================================================================
66 </I>><i> RCS file: /var/local/cvsroot/ircservices/tools/convert-db.c,v
67 </I>><i> retrieving revision
2.30.2.6
68 </I>><i> diff -u -r2.30
.2.6 convert-db.c
69 </I>><i> --- tools/convert-db.c
20 Jan
2006 08:
33:
59 -
0000 2.30.2.6
70 </I>><i> +++ tools/convert-db.c
19 Jun
2006 17:
03:
51 -
0000
71 </I>><i> @@ -
591,
10 +
591,
15 @@
73 </I>><i> /* Make sure all access entries have non-empty user and host parts. */
74 </I>><i> ARRAY_FOREACH (i, ngi-
>access) {
75 </I>><i> - s = strchr(ngi-
>access[i], '@');
76 </I>><i> - if (!s || s==ngi-
>access[i] || !s[
1]) {
77 </I>><i> - fprintf(stderr,
"Access entry %d for nickgroup %u isn't a
"
78 </I>><i> -
" valid
<A HREF=
"http://lists.ircservices.za.net/mailman/listinfo/ircservices">user at host
</A> mask, deleting.\n
", i, ngi-
>id);
79 </I>><i> + if (!ngi-
>access[i]
80 </I>><i> + || !(s = strchr(ngi-
>access[i], '@'))
81 </I>><i> + || s == ngi-
>access[i]
82 </I>><i> + || !s[
1]
84 </I>><i> + fprintf(stderr,
"Access entry %d for nickgroup %u %s,
"
85 </I>><i> +
" deleting.\n
", i, ngi-
>id,
86 </I>><i> + !ngi-
>access ?
"is empty
"
87 </I>><i> + :
"isn't a valid
<A HREF=
"http://lists.ircservices.za.net/mailman/listinfo/ircservices">user at host
</A> mask
");
88 </I>><i> ARRAY_REMOVE(ngi-
>access, i);
91 </I>><i> ------------------------------------------------------------------
92 </I>><i> To unsubscribe or change your subscription options, visit:
93 </I>><i> <A HREF=
"http://lists.ircservices.za.net/mailman/listinfo/ircservices">http://lists.ircservices.za.net/mailman/listinfo/ircservices
</A>
103 <LI>Previous message:
<A HREF=
"005147.html">[IRCServices] ircservices-
5.0.57 convert-db utility crashes when
104 converting from anope db.
106 <LI>Next message:
<A HREF=
"005149.html">[IRCServices] ircservices-
5.0.57 convert-db utility crashes
107 when converting from anope db.
109 <LI> <B>Messages sorted by:
</B>
110 <a href=
"date.html#5148">[ date ]
</a>
111 <a href=
"thread.html#5148">[ thread ]
</a>
112 <a href=
"subject.html#5148">[ subject ]
</a>
113 <a href=
"author.html#5148">[ author ]
</a>