Package: mserv
Version: 0.35-6mod
Severity: normal

Hi,
   
  There is a small bug in mserv/opt.c: paths are generated by prefixing 
by root but without the ending '/'. As a result, mserv files are
generated as e.g. '~/.mservtrackinfo' rather that '~/.mserv/trackinfo'.
  A tiny patch to correct that bug is attached.

  Lionel.
         

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing'), (300, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-k7
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=UTF-8)

Versions of packages mserv depends on:
ii  adduser                     3.59         Add and remove users and groups
ii  debconf                     1.4.30.11    Debian configuration management sy
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  perl                        5.8.4-5      Larry Wall's Practical Extraction 

-- debconf information excluded
diff -Naur mserv-0.35/mserv/opt.c mserv-0.35.new/mserv/opt.c
--- mserv-0.35/mserv/opt.c	2005-01-11 00:37:35.000000000 +0000
+++ mserv-0.35.new/mserv/opt.c	2005-01-10 22:54:57.000000000 +0000
@@ -112,8 +112,9 @@
 	  fprintf(stderr, "%s: out of memory building path\n", progname);
 	  return -1;
 	}
-	strncpy(m, root, rl);
-	m[rl] = '\0';
+	strncpy(m, root, rl+1);
+	m[rl] = '/';
+	m[rl+1] = '\0';
 	strcat(m, val);
       } else {
 	/* value is absolute path */

Reply via email to