Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 49476 Details for
Bug 72260
bitlbee is unable to register my password
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for fprintf()
bitlbee-0.91-fprintffix.patch (text/plain), 1015 bytes, created by
Andrej Kacian (RETIRED)
on 2005-01-25 06:38:00 UTC
(
hide
)
Description:
patch for fprintf()
Filename:
MIME Type:
Creator:
Andrej Kacian (RETIRED)
Created:
2005-01-25 06:38:00 UTC
Size:
1015 bytes
patch
obsolete
>diff -Naur bitlbee-0.91/bitlbee.c bitlbee-0.91-gentoohack/bitlbee.c >--- bitlbee-0.91/bitlbee.c 2004-11-21 15:52:28.000000000 +0100 >+++ bitlbee-0.91-gentoohack/bitlbee.c 2004-12-21 17:15:15.000000000 +0100 >@@ -285,6 +285,7 @@ > account_t *a; > FILE *fp; > char *hash; >+ int retval; > > /*\ > * [SH] Nothing should be saved if no password is set, because the >@@ -344,11 +345,16 @@ > g_snprintf( path, 511, "%s%s%s", global.conf->configdir, irc->nick, ".accounts~" ); > fp = fopen( path, "w" ); > if( !fp ) return( 0 ); >- if( fprintf( fp, "%s", hash ) != strlen( hash ) ) >+ retval = fprintf( fp, "%s", hash ); >+ if( retval != strlen( hash ) ) > { >- irc_usermsg( irc, "fprintf() wrote too little. Disk full?" ); >- fclose( fp ); >- return( 0 ); >+ if( retval == 1) { >+ irc_usermsg( irc, "Enabling writing hack for gentoo. This is dangerous and may corrupt your files."); >+ } else { >+ irc_usermsg( irc, "fprintf() wrote too little. Disk full?" ); >+ fclose( fp ); >+ return( 0 ); >+ } > } > g_free( hash ); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 72260
: 49476 |
51808
|
52234