]> jfr.im git - irc.git/blob - software/!RELEASES/ircservices/achurch.org/services/lists/ircservices/2006/005148.html
RELEASE -> !RELEASE
[irc.git] / software / !RELEASES / ircservices / achurch.org / services / lists / ircservices / 2006 / 005148.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices] ircservices-5.0.57 convert-db utility crashes
5 when converting from anope db.
6 </TITLE>
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">
13 </HEAD>
14 <BODY BGCOLOR="#ffffff">
15 <H1>[IRCServices] ircservices-5.0.57 convert-db utility crashes
16 when converting from anope db.</H1>
17 <B>Gabriel Baez</B>
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
21 </A><BR>
22 <I>Mon Jun 19 13:20:17 PDT 2006</I>
23 <P><UL>
24 <LI>Previous message: <A HREF="005147.html">[IRCServices] ircservices-5.0.57 convert-db utility crashes when
25 converting from anope db.
26 </A></li>
27 <LI>Next message: <A HREF="005149.html">[IRCServices] ircservices-5.0.57 convert-db utility crashes
28 when converting from anope db.
29 </A></li>
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>
35 </LI>
36 </UL>
37 <HR>
38 <!--beginarticle-->
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.
42
43
44 &gt;&gt;<i>sheik@***** [~/services2/lib]# ./convert-db -v +anope
45 </I>&gt;&gt;<i> /home/sheik/services
46 </I>&gt;&gt;<i>Loading nick.db...
47 </I>&gt;&gt;<i>Loading chan.db...
48 </I>&gt;&gt;<i>Loading oper.db...
49 </I>&gt;&gt;<i>Loading exception.db...
50 </I>&gt;&gt;<i>Loading news.db...
51 </I>&gt;&gt;<i>Data files successfully loaded.
52 </I>&gt;&gt;<i>Checking data integrity...
53 </I>&gt;&gt;<i>Segmentation fault
54 </I>&gt;<i>
55 </I>&gt;<i> Can you try applying the patch below and tell me if it solves your
56 </I>&gt;<i> problem?
57 </I>&gt;<i>
58 </I>&gt;<i> --Andrew Church
59 </I>&gt;<i> <A HREF="http://lists.ircservices.za.net/mailman/listinfo/ircservices">achurch at achurch.org</A>
60 </I>&gt;<i> <A HREF="http://achurch.org/">http://achurch.org/</A>
61 </I>&gt;<i>
62 </I>&gt;<i> ---------------------------------------------------------------------------
63 </I>&gt;<i>
64 </I>&gt;<i> Index: tools/convert-db.c
65 </I>&gt;<i> ===================================================================
66 </I>&gt;<i> RCS file: /var/local/cvsroot/ircservices/tools/convert-db.c,v
67 </I>&gt;<i> retrieving revision 2.30.2.6
68 </I>&gt;<i> diff -u -r2.30.2.6 convert-db.c
69 </I>&gt;<i> --- tools/convert-db.c 20 Jan 2006 08:33:59 -0000 2.30.2.6
70 </I>&gt;<i> +++ tools/convert-db.c 19 Jun 2006 17:03:51 -0000
71 </I>&gt;<i> @@ -591,10 +591,15 @@
72 </I>&gt;<i>
73 </I>&gt;<i> /* Make sure all access entries have non-empty user and host parts. */
74 </I>&gt;<i> ARRAY_FOREACH (i, ngi-&gt;access) {
75 </I>&gt;<i> - s = strchr(ngi-&gt;access[i], '@');
76 </I>&gt;<i> - if (!s || s==ngi-&gt;access[i] || !s[1]) {
77 </I>&gt;<i> - fprintf(stderr, &quot;Access entry %d for nickgroup %u isn't a&quot;
78 </I>&gt;<i> - &quot; valid <A HREF="http://lists.ircservices.za.net/mailman/listinfo/ircservices">user at host</A> mask, deleting.\n&quot;, i, ngi-&gt;id);
79 </I>&gt;<i> + if (!ngi-&gt;access[i]
80 </I>&gt;<i> + || !(s = strchr(ngi-&gt;access[i], '@'))
81 </I>&gt;<i> + || s == ngi-&gt;access[i]
82 </I>&gt;<i> + || !s[1]
83 </I>&gt;<i> + ) {
84 </I>&gt;<i> + fprintf(stderr, &quot;Access entry %d for nickgroup %u %s,&quot;
85 </I>&gt;<i> + &quot; deleting.\n&quot;, i, ngi-&gt;id,
86 </I>&gt;<i> + !ngi-&gt;access ? &quot;is empty&quot;
87 </I>&gt;<i> + : &quot;isn't a valid <A HREF="http://lists.ircservices.za.net/mailman/listinfo/ircservices">user at host</A> mask&quot;);
88 </I>&gt;<i> ARRAY_REMOVE(ngi-&gt;access, i);
89 </I>&gt;<i> i--;
90 </I>&gt;<i> }
91 </I>&gt;<i> ------------------------------------------------------------------
92 </I>&gt;<i> To unsubscribe or change your subscription options, visit:
93 </I>&gt;<i> <A HREF="http://lists.ircservices.za.net/mailman/listinfo/ircservices">http://lists.ircservices.za.net/mailman/listinfo/ircservices</A>
94 </I>&gt;<i>
95 </I>
96 </PRE>
97
98
99 <!--endarticle-->
100 <HR>
101 <P><UL>
102 <!--threads-->
103 <LI>Previous message: <A HREF="005147.html">[IRCServices] ircservices-5.0.57 convert-db utility crashes when
104 converting from anope db.
105 </A></li>
106 <LI>Next message: <A HREF="005149.html">[IRCServices] ircservices-5.0.57 convert-db utility crashes
107 when converting from anope db.
108 </A></li>
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>
114 </LI>
115 </UL>
116
117 </body></html>