Bug 208592 - Should give non-0 exit code on failure
Summary: Should give non-0 exit code on failure
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: paps
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Akira TAGOH
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: FC6Target
TreeView+ depends on / blocked
 
Reported: 2006-09-29 15:16 UTC by Tim Waugh
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-02-20 12:24:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.