~ubuntu-branches/ubuntu/jaunty/cups/jaunty-proposed

« back to all changes in this revision

Viewing changes to debian/cups-bsd.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2008-12-01 17:33:18 UTC
  • mfrom: (7.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20081201173318-9tpgqzvxaosjnvsv
Tags: 1.3.8-1lenny4
* High urgency due to security bug fix.
* Add png-image-int-overflow.dpatch: Fix integer overflow in the PNG image
  reader (Closes: #507183, STR #2974, CVE-2008-5286)

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
            fi
52
52
 
53
53
            printcap_file=`egrep '^Printcap ' /etc/cups/cupsd.conf | awk '{print $2}'`
54
 
            if [ "$printcap_file" != "" ]; then
55
 
                touch $printcap_file 2>/dev/null || true
56
 
                if [ ! -e /etc/printcap -a -e $printcap_file ]; then
57
 
                    ln -s $printcap_file /etc/printcap
58
 
                fi
 
54
            if [ -z "$printcap_file" ]; then
 
55
                printcap_file=/var/run/cups/printcap
 
56
            fi
 
57
            if [ ! -e /etc/printcap -a -e $printcap_file ]; then
 
58
                ln -s $printcap_file /etc/printcap
59
59
            fi
60
60
        fi
61
61
    ;;