Package: cups-pdf
Version: 2.0.5-1
Severity: normal
Tags: patch

CUPS-PDF reads it's configuration options AnonUMask and UserUMask
incorrectly, using decimal base, instead of octal.

Patch follows:
diff -ru a/src/cups-pdf.h b/src/cups-pdf.h
--- a/src/cups-pdf.h    2006-02-26 15:48:50.000000000 +0300
+++ b/src/cups-pdf.h    2006-04-06 13:16:37.000000000 +0400
@@ -133,11 +133,11 @@
     conf.lowercase=(tmp>0)?1:0;
   }
   else if (!strcmp("AnonUMask",key)) {
-    tmp=atoi(value);
+    tmp=(int)(strtol(value,NULL,8));
     conf.anonumask=tmp;
   }
   else if (!strcmp("UserUMask",key)) {
-    tmp=atoi(value);
+    tmp=(int)(strtol(value,NULL,8));
     conf.userumask=tmp;
   }
   else 

-- System Information:
Debian Release: 3.1
  APT prefers stable
  APT policy: (990, 'stable'), (50, 'testing'), (25, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.12-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages cups-pdf depends on:
ii  adduser                  3.63            Add and remove users and groups
ii  cupsys                   1.1.23-10sarge1 Common UNIX Printing System(tm) - 
ii  gs-esp                   7.07.1-9        The Ghostscript PostScript interpr
ii  libc6                    2.3.2.ds1-22    GNU C Library: Shared libraries an

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to