Bug#599827: sbnc: savecert command doesn't work

2010-10-12 Thread Andrey Rahmatullin
On Mon, Oct 11, 2010 at 07:46:54PM +0200, Patrick Matthäi wrote:
 Whops, does it work if you apply the attached patch?
Yes.

-- 
WBR, wRAR


signature.asc
Description: Digital signature


Bug#599827: sbnc: savecert command doesn't work

2010-10-12 Thread Patrick Matthäi
Am 12.10.2010 08:19, schrieb Andrey Rahmatullin:
 On Mon, Oct 11, 2010 at 07:46:54PM +0200, Patrick Matthäi wrote:
 Whops, does it work if you apply the attached patch?
 Yes.
 

fine, if everything works I will push it to squeeze .)

-- 
/*
Mit freundlichem Gruß / With kind regards,
 Patrick Matthäi
 GNU/Linux Debian Developer

E-Mail: pmatth...@debian.org
patr...@linux-dev.org

Comment:
Always if we think we are right,
we were maybe wrong.
*/



signature.asc
Description: OpenPGP digital signature


Bug#599827: sbnc: savecert command doesn't work

2010-10-11 Thread wrar
Package: sbnc
Version: 1.2-19
Severity: normal

When I use savecert command, current certificate is saved into memory (and is
valid until sbnc restart), but it is not saved to the disk.
The log contains Error (in User.cpp:1703): fopen failed. and strace shows:

open(, O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 ENOENT (No such file or
directory)
chmod(, 0600) = -1 ENOENT (No such file or
directory)


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.34-linode26 (SMP w/4 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages sbnc depends on:
ii  adduser   3.112  add and remove users and groups
ii  debconf [debconf-2.0] 1.5.35 Debian configuration management sy
ii  libc-ares21.7.3-1library for asyncronous name resol
ii  libc6 2.11.2-6   Embedded GNU C Library: Shared lib
ii  libgcc1   1:4.5.1-7  GCC support library
ii  libltdl7  2.2.6b-2   A system independent dlopen wrappe
ii  libssl0.9.8   0.9.8o-2   SSL shared libraries
ii  libstdc++64.5.1-7The GNU Standard C++ Library v3
ii  pwgen 2.06-1+b1  Automatic Password generation

Versions of packages sbnc recommends:
pn  oidentd   none (no description available)
ii  sbnc-tcl  1.2-19 an IRC proxy for multiple users (T

Versions of packages sbnc suggests:
pn  sbnc-mysqlnone (no description available)

-- Configuration Files:
/etc/default/sbnc changed:
AUTOSTART_SBNC=1


-- debconf information:
* sbnc/username: wRAR
* sbnc/start_daemon: true
* sbnc/host: 109.74.195.39 [::]
* sbnc/port: 9000

-- debsums errors found:
prelink: /usr/sbin/sbnc: at least one of file's dependencies has changed since 
prelinking
debsums: changed file /usr/sbin/sbnc (from sbnc package)



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#599827: sbnc: savecert command doesn't work

2010-10-11 Thread Patrick Matthäi
Am 11.10.2010 19:27, schrieb w...@altlinux.org:
 Package: sbnc
 Version: 1.2-19
 Severity: normal
 
 When I use savecert command, current certificate is saved into memory (and is
 valid until sbnc restart), but it is not saved to the disk.
 The log contains Error (in User.cpp:1703): fopen failed. and strace shows:
 
 open(, O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 ENOENT (No such file or
 directory)
 chmod(, 0600) = -1 ENOENT (No such file or
 directory)

Whops, does it work if you apply the attached patch?

 
 
 -- System Information:
 Debian Release: squeeze/sid
   APT prefers testing
   APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
 Architecture: i386 (i686)
 
 Kernel: Linux 2.6.34-linode26 (SMP w/4 CPU cores)
 Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
 Shell: /bin/sh linked to /bin/dash
 
 Versions of packages sbnc depends on:
 ii  adduser   3.112  add and remove users and groups
 ii  debconf [debconf-2.0] 1.5.35 Debian configuration management 
 sy
 ii  libc-ares21.7.3-1library for asyncronous name 
 resol
 ii  libc6 2.11.2-6   Embedded GNU C Library: Shared 
 lib
 ii  libgcc1   1:4.5.1-7  GCC support library
 ii  libltdl7  2.2.6b-2   A system independent dlopen 
 wrappe
 ii  libssl0.9.8   0.9.8o-2   SSL shared libraries
 ii  libstdc++64.5.1-7The GNU Standard C++ Library v3
 ii  pwgen 2.06-1+b1  Automatic Password generation
 
 Versions of packages sbnc recommends:
 pn  oidentd   none (no description available)
 ii  sbnc-tcl  1.2-19 an IRC proxy for multiple users 
 (T
 
 Versions of packages sbnc suggests:
 pn  sbnc-mysqlnone (no description available)
 
 -- Configuration Files:
 /etc/default/sbnc changed:
 AUTOSTART_SBNC=1
 
 
 -- debconf information:
 * sbnc/username: wRAR
 * sbnc/start_daemon: true
 * sbnc/host: 109.74.195.39 [::]
 * sbnc/port: 9000
 
 -- debsums errors found:
 prelink: /usr/sbin/sbnc: at least one of file's dependencies has changed 
 since prelinking
 debsums: changed file /usr/sbin/sbnc (from sbnc package)
 
 


-- 
/*
Mit freundlichem Gruß / With kind regards,
 Patrick Matthäi
 GNU/Linux Debian Developer

E-Mail: pmatth...@debian.org
patr...@linux-dev.org

Comment:
Always if we think we are right,
we were maybe wrong.
*/
diff -Naur sbnc-1.2.orig//src/User.cpp sbnc-1.2/src/User.cpp
--- sbnc-1.2.orig//src/User.cpp	2010-10-11 19:35:39.0 +0200
+++ sbnc-1.2/src/User.cpp	2010-10-11 19:45:29.0 +0200
@@ -1685,8 +1685,8 @@
 	const char *Filename;
 	FILE *CertFile;
 
-	asprintf(TempFilename, /var/lib/sbnc/users/%s.pem, m_Name);
-	Filename = g_Bouncer-BuildPath(TempFilename);
+	asprintf(TempFilename, %s.pem, m_Name);
+	Filename = g_Bouncer-BuildPath(TempFilename, /var/lib/sbnc/users);
 	free(TempFilename);
 
 	CHECK_ALLOC_RESULT(Filename, asprintf) {


signature.asc
Description: OpenPGP digital signature