head 1.9; access; symbols pkgsrc-2026Q1:1.9.0.134 pkgsrc-2026Q1-base:1.9 pkgsrc-2025Q4:1.9.0.132 pkgsrc-2025Q4-base:1.9 pkgsrc-2025Q3:1.9.0.130 pkgsrc-2025Q3-base:1.9 pkgsrc-2025Q2:1.9.0.128 pkgsrc-2025Q2-base:1.9 pkgsrc-2025Q1:1.9.0.126 pkgsrc-2025Q1-base:1.9 pkgsrc-2024Q4:1.9.0.124 pkgsrc-2024Q4-base:1.9 pkgsrc-2024Q3:1.9.0.122 pkgsrc-2024Q3-base:1.9 pkgsrc-2024Q2:1.9.0.120 pkgsrc-2024Q2-base:1.9 pkgsrc-2024Q1:1.9.0.118 pkgsrc-2024Q1-base:1.9 pkgsrc-2023Q4:1.9.0.116 pkgsrc-2023Q4-base:1.9 pkgsrc-2023Q3:1.9.0.114 pkgsrc-2023Q3-base:1.9 pkgsrc-2023Q2:1.9.0.112 pkgsrc-2023Q2-base:1.9 pkgsrc-2023Q1:1.9.0.110 pkgsrc-2023Q1-base:1.9 pkgsrc-2022Q4:1.9.0.108 pkgsrc-2022Q4-base:1.9 pkgsrc-2022Q3:1.9.0.106 pkgsrc-2022Q3-base:1.9 pkgsrc-2022Q2:1.9.0.104 pkgsrc-2022Q2-base:1.9 pkgsrc-2022Q1:1.9.0.102 pkgsrc-2022Q1-base:1.9 pkgsrc-2021Q4:1.9.0.100 pkgsrc-2021Q4-base:1.9 pkgsrc-2021Q3:1.9.0.98 pkgsrc-2021Q3-base:1.9 pkgsrc-2021Q2:1.9.0.96 pkgsrc-2021Q2-base:1.9 pkgsrc-2021Q1:1.9.0.94 pkgsrc-2021Q1-base:1.9 pkgsrc-2020Q4:1.9.0.92 pkgsrc-2020Q4-base:1.9 pkgsrc-2020Q3:1.9.0.90 pkgsrc-2020Q3-base:1.9 pkgsrc-2020Q2:1.9.0.86 pkgsrc-2020Q2-base:1.9 pkgsrc-2020Q1:1.9.0.66 pkgsrc-2020Q1-base:1.9 pkgsrc-2019Q4:1.9.0.88 pkgsrc-2019Q4-base:1.9 pkgsrc-2019Q3:1.9.0.84 pkgsrc-2019Q3-base:1.9 pkgsrc-2019Q2:1.9.0.82 pkgsrc-2019Q2-base:1.9 pkgsrc-2019Q1:1.9.0.80 pkgsrc-2019Q1-base:1.9 pkgsrc-2018Q4:1.9.0.78 pkgsrc-2018Q4-base:1.9 pkgsrc-2018Q3:1.9.0.76 pkgsrc-2018Q3-base:1.9 pkgsrc-2018Q2:1.9.0.74 pkgsrc-2018Q2-base:1.9 pkgsrc-2018Q1:1.9.0.72 pkgsrc-2018Q1-base:1.9 pkgsrc-2017Q4:1.9.0.70 pkgsrc-2017Q4-base:1.9 pkgsrc-2017Q3:1.9.0.68 pkgsrc-2017Q3-base:1.9 pkgsrc-2017Q2:1.9.0.64 pkgsrc-2017Q2-base:1.9 pkgsrc-2017Q1:1.9.0.62 pkgsrc-2017Q1-base:1.9 pkgsrc-2016Q4:1.9.0.60 pkgsrc-2016Q4-base:1.9 pkgsrc-2016Q3:1.9.0.58 pkgsrc-2016Q3-base:1.9 pkgsrc-2016Q2:1.9.0.56 pkgsrc-2016Q2-base:1.9 pkgsrc-2016Q1:1.9.0.54 pkgsrc-2016Q1-base:1.9 pkgsrc-2015Q4:1.9.0.52 pkgsrc-2015Q4-base:1.9 pkgsrc-2015Q3:1.9.0.50 pkgsrc-2015Q3-base:1.9 pkgsrc-2015Q2:1.9.0.48 pkgsrc-2015Q2-base:1.9 pkgsrc-2015Q1:1.9.0.46 pkgsrc-2015Q1-base:1.9 pkgsrc-2014Q4:1.9.0.44 pkgsrc-2014Q4-base:1.9 pkgsrc-2014Q3:1.9.0.42 pkgsrc-2014Q3-base:1.9 pkgsrc-2014Q2:1.9.0.40 pkgsrc-2014Q2-base:1.9 pkgsrc-2014Q1:1.9.0.38 pkgsrc-2014Q1-base:1.9 pkgsrc-2013Q4:1.9.0.36 pkgsrc-2013Q4-base:1.9 pkgsrc-2013Q3:1.9.0.34 pkgsrc-2013Q3-base:1.9 pkgsrc-2013Q2:1.9.0.32 pkgsrc-2013Q2-base:1.9 pkgsrc-2013Q1:1.9.0.30 pkgsrc-2013Q1-base:1.9 pkgsrc-2012Q4:1.9.0.28 pkgsrc-2012Q4-base:1.9 pkgsrc-2012Q3:1.9.0.26 pkgsrc-2012Q3-base:1.9 pkgsrc-2012Q2:1.9.0.24 pkgsrc-2012Q2-base:1.9 pkgsrc-2012Q1:1.9.0.22 pkgsrc-2012Q1-base:1.9 pkgsrc-2011Q4:1.9.0.20 pkgsrc-2011Q4-base:1.9 pkgsrc-2011Q3:1.9.0.18 pkgsrc-2011Q3-base:1.9 pkgsrc-2011Q2:1.9.0.16 pkgsrc-2011Q2-base:1.9 pkgsrc-2011Q1:1.9.0.14 pkgsrc-2011Q1-base:1.9 pkgsrc-2010Q4:1.9.0.12 pkgsrc-2010Q4-base:1.9 pkgsrc-2010Q3:1.9.0.10 pkgsrc-2010Q3-base:1.9 pkgsrc-2010Q2:1.9.0.8 pkgsrc-2010Q2-base:1.9 pkgsrc-2010Q1:1.9.0.6 pkgsrc-2010Q1-base:1.9 pkgsrc-2009Q4:1.9.0.4 pkgsrc-2009Q4-base:1.9 pkgsrc-2009Q3:1.9.0.2 pkgsrc-2009Q3-base:1.9 pkgsrc-2009Q2:1.8.0.6 pkgsrc-2009Q2-base:1.8 pkgsrc-2009Q1:1.8.0.4 pkgsrc-2009Q1-base:1.8 pkgsrc-2008Q4:1.8.0.2 pkgsrc-2008Q4-base:1.8 pkgsrc-2008Q3:1.7.0.24 pkgsrc-2008Q3-base:1.7 cube-native-xorg:1.7.0.22 cube-native-xorg-base:1.7 pkgsrc-2008Q2:1.7.0.20 pkgsrc-2008Q2-base:1.7 pkgsrc-2008Q1:1.7.0.18 pkgsrc-2008Q1-base:1.7 pkgsrc-2007Q4:1.7.0.16 pkgsrc-2007Q4-base:1.7 pkgsrc-2007Q3:1.7.0.14 pkgsrc-2007Q3-base:1.7 pkgsrc-2007Q2:1.7.0.12 pkgsrc-2007Q2-base:1.7 pkgsrc-2007Q1:1.7.0.10 pkgsrc-2007Q1-base:1.7 pkgsrc-2006Q4:1.7.0.8 pkgsrc-2006Q4-base:1.7 pkgsrc-2006Q3:1.7.0.6 pkgsrc-2006Q3-base:1.7 pkgsrc-2006Q2:1.7.0.4 pkgsrc-2006Q2-base:1.7 pkgsrc-2006Q1:1.7.0.2 pkgsrc-2006Q1-base:1.7 pkgsrc-2005Q4:1.6.0.4 pkgsrc-2005Q4-base:1.6 pkgsrc-2005Q3:1.6.0.2 pkgsrc-2005Q3-base:1.6 pkgsrc-2005Q2:1.5.0.12 pkgsrc-2005Q2-base:1.5 pkgsrc-2005Q1:1.5.0.10 pkgsrc-2005Q1-base:1.5 pkgsrc-2004Q4:1.5.0.8 pkgsrc-2004Q4-base:1.5 pkgsrc-2004Q3:1.5.0.6 pkgsrc-2004Q3-base:1.5 pkgsrc-2004Q2:1.5.0.4 pkgsrc-2004Q2-base:1.5 pkgsrc-2004Q1:1.5.0.2 pkgsrc-2004Q1-base:1.5 pkgsrc-2003Q4:1.4.0.2 pkgsrc-2003Q4-base:1.4 netbsd-1-6-1:1.3.0.2 netbsd-1-6-1-base:1.3 buildlink2-base:1.2; locks; strict; comment @# @; 1.9 date 2009.07.27.12.59.44; author obache; state Exp; branches; next 1.8; 1.8 date 2008.12.04.12.53.55; author tonnerre; state Exp; branches; next 1.7; 1.7 date 2006.01.17.21.45.52; author veego; state dead; branches; next 1.6; 1.6 date 2005.06.26.20.25.48; author snj; state Exp; branches; next 1.5; 1.5 date 2003.12.04.10.43.10; author veego; state dead; branches; next 1.4; 1.4 date 2003.07.05.14.25.51; author wiz; state Exp; branches 1.4.2.1; next 1.3; 1.3 date 2003.01.12.17.53.19; author veego; state Exp; branches; next 1.2; 1.2 date 2002.02.17.22.41.45; author hubertf; state dead; branches; next 1.1; 1.1 date 2001.11.27.16.10.10; author wiz; state Exp; branches; next ; 1.4.2.1 date 2003.12.12.11.53.48; author agc; state dead; branches; next ; desc @@ 1.9 log @Update irssi to 0.8.13 (and bump pkgrevision irssi-icb). Also contains security fix for CVE-2009-1959 (patch-ab). Based on patch provided by Leonardo Taccari in PR 41785. ChangeLog for 0.8.13 Features: * Reject some obviously invalid values in /set. * Add perl bindings for Window::get_history_lines * Use an io channel to write the config file. * Use memory slices instead of memory chunks for text buffer. * Remove methods to create/destroy TextBuffer and TextBufferView and low level api to add/remove lines, scripts should be fine using Window::print_after and TextBufferView::remove_line. * Add print_after method to Window perl object analogous to gui_printtext_after but which also expands formats and forces a full line. * Better mapping of signal parameters to Perl. All signals used in scripts now need to be registered with Irssi::signal_register. * Add public header with interfaces to manage statusbar items (bug #535) * Recode: assume utf-8 encoding for an ascii string in which no escape character occurs (bug #392). * Allow /BAN, /UNBAN, /KICBAN, /KNOCKOUT if channel is not synced. Requesting ban lists from an unsynced channel will ask them from the server, banning a user whose u@@h irssi does not know will ban nick!*@@* and only bans irssi knows about can be removed. * Allow storing multiple "other" prefixes such as +q and +a (original patch by JasonX) * Add /set autolog_ignore_targets for cherry-picking targets that shouldn't get logged. * Add support for 16 colors. Formats KBGCRMYW and mirc colors are now mapped to colors 8-15. fe-text translates colors 8-15 to bold/blink+0-7 if the terminal supports only 8 colors. If your theme uses one of the high color formats and you really want bold you can change %FMT to %fmt%_%_, it will work fine in all irssi versions. * Better 005 PREFIX support (bug #580). * Display 407 numerics other than "duplicate channel". * Fix display of ratbox-style operspy whois. * Recode outgoing irc away messages (bug #412). * Recode outgoing irc quit messages. * Remove scrollback_levelclear_levels setting and add a 'level' option to 'sb levelclear' to specify a comma separated list of levels. * Add perl __WARN__ handler for scripts (bug #427). * Add Irssi::command_parse_options function to parse options for a command. * Revert recode changes introduced in 0.8.12. * Add completion for /WINDOW SERVER. * Support for reading kicks/msgs from TARGMAX/MAXTARGETS 005 tokens. * Enhancements to the redirections code. * Support for RPL_WHOISACTUALLY (338 numeric) for both ratbox and ircu (bug #428). * -idle option of /notify is gone. * /layout save now makes window-channel bindings instantly effective (bug #35). * /ping without arguments does not send anymore a ctcp ping to a channel (bug #542). * Track IRC operator status of nicks a bit better. * new 'actlist_names' option to add active items names in 'act' statusbar item. * new 'word_completion_backward' command to scroll backwards in the completion list. * add 'list' option to /bind to print all the available commands. * show setter/time in +I lists * apply -usermode before -autosendcmd (bug #548). * reduce memory usage of the scrollback buffer and make the display in /sb status more accurate (higher). * fix data getting dropped when a lot is sent at a time (e.g. when attaching to irssi-proxy, bug #528). * introduce the type Irssi::Irc::Client and signals to communicate with proxy clients to allow for scripting parts of the irssi-proxy. * Add sb_search.pl, a script for /SCROLLBACK SEARCH Bugfixes: * Fix /NOTIFY list when nick is seen joining (bug #642). * Include hostmask in 001 event sent by proxy (bug #650). * Be more power-friendly: don't run any always-on <1s timers (bug #641). * Don't get confused by a failed /JOIN -window (bug #644). * Properly initialize embedded Perl (PERL_SYS_INIT3). * Replace invalid utf-8 bytes with U+FFFD when drawing a line. * Properly unload the original script when using /script load to reload it. (bug #525, patch by Lukas Mai) * Clean up script loading in general: * Don't leak local variables to eval'd code. * Set filename/line number to get better error messages from perl. * Use three-arg open and lexical filehandles to avoid surprises. * Include error reason in message for unopenable scripts. * Don't wrap script code in sub handler { } - this avoids spurious warnings and should at least allow __END__ to work properly. (Patch by Lukas Mai) * Fix NETSPLIT_SERVER_REC in signals for Perl. * Remove buggy /SCROLLBACK redraw and /SET scrollback_save_formats. * Always preserve the active mainwindow when resizing. * Ignore DNS not found errors when considering reconnect. * Do not strip the comma in a mirc color if it is not followed by a digit (bug #250). * Fix building perl module with perl-5.10 (bug #630). * fix leak with $L expando. * fix possible crash with /script reset. * ignore exceptions take precedence over ignores in all cases. * honour -channels preference for ignore -replies (bug #227). * Fix mode display in whois with unreal (379 numeric) (bug #479). * Fix regressions that prevented external modules from building/working (bugs #537 #539). * Fix /set hilight_level not taking effect immediately (bug #598). * Fix bold, blinking and indentation in /LASTLOG and buf.pl. @ text @$NetBSD: patch-ad,v 1.8 2008/12/04 12:53:55 tonnerre Exp $ PerlIO mutex must be initialized before trying to fiddle with the interpreter. --- src/perl/perl-core.c.orig 2008-12-04 13:45:24.000000000 +0100 +++ src/perl/perl-core.c @@@@ -452,6 +452,8 @@@@ void perl_core_init(void) perl_signals_init(); signal_add_last("script error", (SIGNAL_FUNC) sig_script_error); + PERLIO_INIT; + perl_scripts_init(); if (irssi_init_finished) @ 1.8 log @Make irssi actually work with a threaded Perl 5.10. (Now, the PerlIO mutex must be initialized before trying to fiddle with the interpreter.) @ text @d1 4 a4 1 $NetBSD$ @ 1.7 log @Update to version 0.8.10, based on PR #32432 from Juha-Matti Tilli: - Recode support - Isupport (005 numeric) - Passive DCC support. - Many memleak fixes. - Network specific ignoring. - Updated internal error handling. - Complete 64bit support. - Revised default aliases. - Updated paste detection and settings. - Tons of bugfixes. - Other changes The 'pre-install' hack from the pr is no longer needed after a fix from jlam. Don't delete the patch-ae, which was removed in the pr. Recode support won't work at the moment on NetBSD. Bump the version for irssi-icb, due too the upgrade of irssi. @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.6 2005/06/26 20:25:48 snj Exp $ d3 5 a7 9 --- src/fe-common/core/fe-exec.c.orig 2005-06-26 12:55:47.000000000 -0700 +++ src/fe-common/core/fe-exec.c 2005-06-26 12:56:03.000000000 -0700 @@@@ -347,7 +347,7 @@@@ static void process_exec(PROCESS_REC *re static void sig_exec_input_reader(PROCESS_REC *rec) { char tmpbuf[512], *str; - unsigned int recvlen; + gsize recvlen; int err, ret; d9 5 a13 1 g_return_if_fail(rec != NULL); @ 1.6 log @Fix /exec on sparc64. Applied upstream quite a while ago. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ @ 1.5 log @Update to 0.8.8. Fix based on pkg/23560, but not all parts were be used and others were added where needed. Main NetBSD changes: - switched from glib1 to glib2. - added IRSSI_USE_SSL, defaulting to YES, for ssl server support - make it possible to disable IPv6 v0.8.8 2003-11-23 Timo Sirainen - Just a few fixes to converting old settings automatically v0.8.7 2003-11-23 Timo Sirainen * Settings changes - we have now "time", "size" and "level" setting types. - Level settings should work the same as before. - Time settings can have units: days, hours, mins, secs, milliseconds (or msecs). The units can be combined and written in shorter form as well, for example "5d 30m 10ms" - Size settings can have units: gbytes, mbytes, kbytes, bytes. They can be written in shorter form as well, eg. "gb" or "g". Your existing settings should be converted automatically. + Pasting detection. All keys except CR and LF are pasted as-is into prompt in pasting mode. /SET paste_detect_time controls how closely each others characters must occur for it to be considered pasting. Paste mode goes on when first pasted CR/LF is found. The first line may also contain some command characters. They are executed, but their action in entry line is reverted once pasting is detected. What this means in practise is that even if you have TABs (assuming TAB is completion key) in the first pasted line, they get pasted as TABs. This detection isn't perfect, so if it annoys you it can be disabled with /SET paste_detect_time 0 + If pasting more lines than /SET paste_verify_line_count, irssi asks if you actually want to do that. This should be useful to prevent accidental copy&paste mistakes. Setting it to 0 disables this entirely. + Support for sending SSL certificate to server and optionally verify server's certificate. See the -ssl_* options for /SERVER and /SERVER ADD. Patch by Joel Eriksson. + DCC SERVER support by Mark Trumbull + Support for DCC sending larger files than 2GB if supported by operating system (ie. 64bit file support). Receiving has always been possible, but the statistics were wrong with >4GB files if 64bit support isn't enabled. + Better displaying of DCC file transfer statistics. - Several other minor fixes and enhancements, see ChangeLog @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.4 2003/07/05 14:25:51 wiz Exp $ d3 4 a6 21 --- src/core/network.c.orig Mon Aug 26 21:10:02 2002 +++ src/core/network.c @@@@ -201,10 +201,13 @@@@ GIOChannel *net_connect_ip(IPADDR *ip, i /* set our own address */ if (my_ip != NULL) { sin_set_ip(&so, my_ip); - if (bind(handle, &so.sa, SIZEOF_SOCKADDR(so)) == -1) { + if (bind(handle, &so.sa, SIZEOF_SOCKADDR(so)) < 0) { /* failed, set it back to INADDR_ANY */ - sin_set_ip(&so, NULL); - bind(handle, &so.sa, SIZEOF_SOCKADDR(so)); + int old_errno = errno; + + close(handle); + errno = old_errno; + return NULL; } } @@@@ -466,33 +469,31 @@@@ int net_gethostbyname(const char *addr, int net_gethostbyaddr(IPADDR *ip, char **name) d8 4 a11 40 #ifdef HAVE_IPV6 - struct addrinfo req, *ai; + union sockaddr_union so; int host_error; + char hostname[NI_MAXHOST]; #else struct hostent *hp; #endif - char ipname[MAX_IP_LEN]; g_return_val_if_fail(ip != NULL, -1); g_return_val_if_fail(name != NULL, -1); - net_ip2host(ip, ipname); - *name = NULL; #ifdef HAVE_IPV6 - memset(&req, 0, sizeof(struct addrinfo)); - req.ai_socktype = SOCK_STREAM; - req.ai_flags = AI_CANONNAME; + memset(&so, 0, sizeof(so)); + sin_set_ip(&so, ip); /* save error to host_error for later use */ - host_error = getaddrinfo(ipname, NULL, &req, &ai); - if (host_error != 0) - return host_error; - *name = g_strdup(ai->ai_canonname); + host_error = getnameinfo((struct sockaddr *) &so, sizeof(so), + hostname, sizeof(hostname), NULL, 0, 0); + if (host_error != 0) + return host_error; - freeaddrinfo(ai); + *name = g_strdup(hostname); #else - hp = gethostbyaddr(ipname, strlen(ipname), AF_INET); + if (ip->family != AF_INET) return -1; + hp = gethostbyaddr(&ip->ip, 4, AF_INET); if (hp == NULL) return -1; d13 1 a13 1 *name = g_strdup(hp->h_name); @ 1.4 log @Convert to unified format; fixes problem on Linux report on tech-pkg by Sebastian P. @ text @d1 1 a1 1 $NetBSD$ @ 1.4.2.1 log @Pullup a security fix to the pkgsrc-2003Q4 branch, requested by Bernd Ernesti. Module Name: pkgsrc Committed By: veego Date: Thu Dec 4 10:43:10 UTC 2003 Modified Files: pkgsrc/chat/irssi: Makefile Makefile.common PLIST distinfo Removed Files: pkgsrc/chat/irssi/patches: patch-ac patch-ad patch-ae Log Message: Update to 0.8.8. Fix based on pkg/23560, but not all parts were be used and others were added where needed. Main NetBSD changes: - switched from glib1 to glib2. - added IRSSI_USE_SSL, defaulting to YES, for ssl server support - make it possible to disable IPv6 v0.8.8 2003-11-23 Timo Sirainen - Just a few fixes to converting old settings automatically v0.8.7 2003-11-23 Timo Sirainen * Settings changes - we have now "time", "size" and "level" setting types. - Level settings should work the same as before. - Time settings can have units: days, hours, mins, secs, milliseconds (or msecs). The units can be combined and written in shorter form as well, for example "5d 30m 10ms" - Size settings can have units: gbytes, mbytes, kbytes, bytes. They can be written in shorter form as well, eg. "gb" or "g". Your existing settings should be converted automatically. + Pasting detection. All keys except CR and LF are pasted as-is into prompt in pasting mode. /SET paste_detect_time controls how closely each others characters must occur for it to be considered pasting. Paste mode goes on when first pasted CR/LF is found. The first line may also contain some command characters. They are executed, but their action in entry line is reverted once pasting is detected. What this means in practise is that even if you have TABs (assuming TAB is completion key) in the first pasted line, they get pasted as TABs. This detection isn't perfect, so if it annoys you it can be disabled with /SET paste_detect_time 0 + If pasting more lines than /SET paste_verify_line_count, irssi asks if you actually want to do that. This should be useful to prevent accidental copy&paste mistakes. Setting it to 0 disables this entirely. + Support for sending SSL certificate to server and optionally verify server's certificate. See the -ssl_* options for /SERVER and /SERVER ADD. Patch by Joel Eriksson. + DCC SERVER support by Mark Trumbull + Support for DCC sending larger files than 2GB if supported by operating system (ie. 64bit file support). Receiving has always been possible, but the statistics were wrong with >4GB files if 64bit support isn't enabled. @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.4 2003/07/05 14:25:51 wiz Exp $ @ 1.3 log @Add patches from the irssi CVS repository: 2002-11-29 13:38 Timo Sirainen * src/core/network.c: If bind() fails when connecting, don't fallback to default address. Should make it easier to notice invalid settings or figure out why it's not working.. 2002-11-28 23:43 Timo Sirainen * src/core/network.c: net_gethostbyaddr() was pretty much broken. @ text @d3 64 a66 101 Index: src/core/network.c =================================================================== RCS file: /home/cvs/irssi/src/core/network.c,v retrieving revision 1.42 retrieving revision 1.44 diff -c -r1.42 -r1.44 *** network.c 26 Aug 2002 19:05:14 -0000 1.42 --- network.c 29 Nov 2002 13:38:21 -0000 1.44 *************** *** 201,210 **** /* set our own address */ if (my_ip != NULL) { sin_set_ip(&so, my_ip); ! if (bind(handle, &so.sa, SIZEOF_SOCKADDR(so)) == -1) { /* failed, set it back to INADDR_ANY */ ! sin_set_ip(&so, NULL); ! bind(handle, &so.sa, SIZEOF_SOCKADDR(so)); } } --- 201,213 ---- /* set our own address */ if (my_ip != NULL) { sin_set_ip(&so, my_ip); ! if (bind(handle, &so.sa, SIZEOF_SOCKADDR(so)) < 0) { /* failed, set it back to INADDR_ANY */ ! int old_errno = errno; ! ! close(handle); ! errno = old_errno; ! return NULL; } } *************** *** 466,498 **** int net_gethostbyaddr(IPADDR *ip, char **name) { #ifdef HAVE_IPV6 ! struct addrinfo req, *ai; int host_error; #else struct hostent *hp; #endif - char ipname[MAX_IP_LEN]; g_return_val_if_fail(ip != NULL, -1); g_return_val_if_fail(name != NULL, -1); - net_ip2host(ip, ipname); - *name = NULL; #ifdef HAVE_IPV6 ! memset(&req, 0, sizeof(struct addrinfo)); ! req.ai_socktype = SOCK_STREAM; ! req.ai_flags = AI_CANONNAME; /* save error to host_error for later use */ ! host_error = getaddrinfo(ipname, NULL, &req, &ai); ! if (host_error != 0) ! return host_error; ! *name = g_strdup(ai->ai_canonname); ! freeaddrinfo(ai); #else ! hp = gethostbyaddr(ipname, strlen(ipname), AF_INET); if (hp == NULL) return -1; *name = g_strdup(hp->h_name); --- 469,499 ---- int net_gethostbyaddr(IPADDR *ip, char **name) { #ifdef HAVE_IPV6 ! union sockaddr_union so; int host_error; + char hostname[NI_MAXHOST]; #else struct hostent *hp; #endif g_return_val_if_fail(ip != NULL, -1); g_return_val_if_fail(name != NULL, -1); *name = NULL; #ifdef HAVE_IPV6 ! memset(&so, 0, sizeof(so)); ! sin_set_ip(&so, ip); /* save error to host_error for later use */ ! host_error = getnameinfo((struct sockaddr *) &so, sizeof(so), ! hostname, sizeof(hostname), NULL, 0, 0); ! if (host_error != 0) ! return host_error; ! *name = g_strdup(hostname); #else ! if (ip->family != AF_INET) return -1; ! hp = gethostbyaddr(&ip->ip, 4, AF_INET); if (hp == NULL) return -1; *name = g_strdup(hp->h_name); @ 1.2 log @Update irssi to 0.8.1. Patch submitted by Otto Hilska in private mail. Changes: v0.8.1 2002-02-17 Timo Sirainen * Expected bugfix release :) Worst thing was that I forgot always to debug why /cat /dev/urandom crashed irssi. Well, found two ways that could make it happen. - Irssi was linked with -lcurses AND -lncurses - Logging could have produced GLib errors with certain conditions - A few compiler warnings fixes v0.8.0 2002-02-17 Timo Sirainen * I really should make releases more often. Once in every two weeks used to be nice. Maybe once in a month would be good now. There was many reasons why this release took this long .. first being addicted to books, then life stuff, then it took forever to figure out that irssi was crashing under solaris (and not because of one of the big changes I made while moving to IRC from solaris box). And now.. well, after this release I'll start working more with the yet another irssi rewrite :) The code is getting too ugly again, and some things need rewriting to support some new features more easily. It will take a while to get it all done, so I'll try to keep updating this "stable" irssi as well. There's too many changes since 0.7.98.3 (and .4 which was just minor bugfix), about 6600 lines in ChangeLog. I'm not going to read all that, so I'll just list the biggest changes that I can remember now. This version was supposed to be called 0.7.99, but since there were so many changes, and I originally though of putting 0.8.0 out long time ago, and 0.7.100 would look stupid, I guess it's time for 0.8.0 :) + /UPGRADE - upgrade irssi to new version on-the-fly without disconnecting from server, so other people won't even notice you quit from IRC. This ONLY executes the new binary, it does NOT download/compile/whatever irssi. + UTF-8 support with /SET term_type UTF-8, default is "8bit". It's also automatically detected from system locale (if supported). + Fully configurable statusbar. Yes. FULLY. Don't bother asking if something could be done with it, it can, just ask how. Well, there's a few things I didn't have time/energy to finish: window-specific statusbar groups and support for multiple input lines in screen. + Rewritten keyboard handling. No more the CTRL-X and ALT-x handling, now you can create whatever keyboard combinations your terminal can send to irssi. + Rewritten text buffer (scrollback) handling. + Irssi doesn't depend on curses anymore, so it can be installed anywhere a working terminfo/termcap exists. This also allows us to use all the possible colors terminal has (curses limits to 64), so eg. %0 is now always black background, not the default terminal background (%n). Several systems have also terminfo/termcap database that doesn't support colors, so I've added /SET term_force_colors option to force ANSI-style colors. Note that eg. BitchX does this by default. Getting rid of curses allows also one great thing for you people copy&pasting long urls :) If a long word gets split to two lines, doubleclicking the word selects it from both lines. + Rewritten server event redirections. Before it was pretty easy to mess up irssi's expectations of what server sends, and some things might have stayd in the buffer forever. Especially notify lists messed up /WHOIS requests for the notified people. Now all this should be history and it's a lot easier for scripts to use the redirections as well. + New ICB chat protocol plugin - very basic and doesn't support nicklist, but works. :) + --home and --config parameters to specify alternate ~/.irssi directory or config file. + Scripts can be unloaded separately with /SCRIPT UNLOAD. You can get a list of runnning scripts with /SCRIPT. + /SERVER PURGE [] - purge the output buffer (for given target). Useful for example if you accidentally paste 100 lines :) The buffer is automatically purged if you get kicked from channel, or if you /PART the channel and there's more than 10 lines in output buffer. @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.1 2001/11/27 16:10:10 wiz Exp $ d3 101 a103 10 --- src/fe-text/Makefile.in.orig Sun Mar 18 14:34:53 2001 +++ src/fe-text/Makefile.in @@@@ -121,7 +121,6 @@@@ INCLUDES = $(GLIB_CFLAGS) -I$(top_srcdir)/src -I$(top_srcdir)/src/core/ -I$(top_srcdir)/src/irc/core/ -I$(top_srcdir)/src/fe-common/core/ -I$(top_srcdir)/src/fe-common/irc/ $(CURSES_INCLUDEDIR) -DLOCALEDIR=\""$(datadir)/locale"\" -irssi_DEPENDENCIES = @@COMMON_LIBS@@ irssi_LDADD = @@COMMON_LIBS@@ @@PERL_LINK_LIBS@@ @@PERL_FE_LINK_LIBS@@ $(PROG_LIBS) $(CURSES_LIBS) @ 1.1 log @We don't want -L/some/path as Makefile dependency. Fixes pkg/14564, though differently than suggested. Don't let package look in LOCALBASE for curses (especially if USE_BUILDLINK_ONLY is set, and ncurses buildlink.mk is already included...). @ text @d1 1 a1 1 $NetBSD$ @