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-ares2 1.7.3-1 library 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++6 4.5.1-7 The 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-mysql <none> (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.000000000 +0200 +++ sbnc-1.2/src/User.cpp 2010-10-11 19:45:29.000000000 +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