summaryrefslogtreecommitdiff
path: root/irc/dancer-services/files
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2003-04-24 20:19:31 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2003-04-24 20:19:31 +0000
commite5925cd22ef16a563ffd18374baf0b2f009db01c (patch)
treedaae89874b134f07692aed1f51ba07b5a90f136f /irc/dancer-services/files
parentAdd user & group in package building too. (diff)
Add patches to prevent multibyte encoded strings to be garbaged.
(already submitted to the author) Add user & group in package building too. Submitted by: bento Remove user & group on deinstallation (only on bento).
Notes
Notes: svn path=/head/; revision=79600
Diffstat (limited to 'irc/dancer-services/files')
-rw-r--r--irc/dancer-services/files/patch-dcc.c11
-rw-r--r--irc/dancer-services/files/patch-log.c14
-rw-r--r--irc/dancer-services/files/patch-server.c15
3 files changed, 40 insertions, 0 deletions
diff --git a/irc/dancer-services/files/patch-dcc.c b/irc/dancer-services/files/patch-dcc.c
new file mode 100644
index 000000000000..993163207bde
--- /dev/null
+++ b/irc/dancer-services/files/patch-dcc.c
@@ -0,0 +1,11 @@
+--- source/dcc.c.orig Wed Nov 14 04:49:45 2001
++++ source/dcc.c Fri Apr 25 04:07:12 2003
+@@ -1057,7 +1057,7 @@
+
+ if (ircncmp(msg, "PING", 4) == 0)
+ {
+- notice(target, nick, msg - 1);
++ notice(target, nick, "%s", msg - 1);
+ SendUmode(OPERUMODE_Y,
+ "%s: CTCP PING received from %s!%s@%s",
+ target,
diff --git a/irc/dancer-services/files/patch-log.c b/irc/dancer-services/files/patch-log.c
new file mode 100644
index 000000000000..e9ed377a0528
--- /dev/null
+++ b/irc/dancer-services/files/patch-log.c
@@ -0,0 +1,14 @@
+--- source/log.c.orig Wed Nov 14 04:49:45 2001
++++ source/log.c Fri Apr 25 04:02:23 2003
+@@ -214,9 +214,8 @@
+ va_end(args);
+
+ /* log the command */
+- stripformatsymbols( buffer );
+- putlog(LOG2, buffer);
++ putlog(LOG2, "%s", buffer);
+
+ /* send it to opers with usermode +s */
+- SendUmode(OPERUMODE_S, buffer);
++ SendUmode(OPERUMODE_S, "%s", buffer);
+ } /* RecordCommand() */
diff --git a/irc/dancer-services/files/patch-server.c b/irc/dancer-services/files/patch-server.c
new file mode 100644
index 000000000000..a9419f9011c7
--- /dev/null
+++ b/irc/dancer-services/files/patch-server.c
@@ -0,0 +1,15 @@
+--- source/server.c.orig Tue Mar 25 06:09:13 2003
++++ source/server.c Fri Apr 25 04:09:10 2003
+@@ -1029,12 +1029,6 @@
+ I moved this code from below for smoother source tweak -kre */
+ command = av[3] + 1;
+
+- /* Obviously, this code down strips '%'. But what if some valid string
+- contains regular '%' and it should _not_ be stripped, ie. passwd
+- string? So, I'll add search for IDENTIFY string. -kre */
+- if (ircncmp(command, "IDENTIFY", 8))
+- stripformatsymbols(av[3]);
+-
+ if (RestrictedAccess)
+ {
+ /*