Bug 208592

Summary: Should give non-0 exit code on failure
Product: [Fedora] Fedora Reporter: Tim Waugh <twaugh>
Component: papsAssignee: Akira TAGOH <tagoh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: eng-i18n-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-02-20 12:24:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 150223    

Description Tim Waugh 2006-09-29 15:16:48 UTC
Description of problem:
The texttopaps filter (paps running in CUPS filter mode) doesn't have a non-zero
exit code when it encounters an error.  As a result, print jobs can potentially
get lost.

Version-Release number of selected component (if applicable):
0.6.6-15.fc6

How reproducible:
100%

Steps to Reproduce:
CHARSET=utf-16 CUPS_SERVER=127.0.0.1 /usr/lib/cups/filter/texttopaps 1 root '' 1
'' input.txt >/dev/null
echo $?
  
Actual results:
(null): Error while converting strings.
0

Expected results:
texttopaps: Error while converting strings.
1

Additional info:
Not sure why it displays '(null)' as the program name, but that's a small issue
compared to the exit code.

Comment 1 Akira TAGOH 2006-09-29 19:10:01 UTC
Fixed in 0.6.6-16.fc6.