Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 82454

Summary: [patch] smbspool error reporting
Product: [Retired] Red Hat Raw Hide Reporter: Tim Waugh <twaugh>
Component: sambaAssignee: Jay Fenlason <fenlason>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: jfeeney
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: 2003-02-13 19:57:51 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:
Attachments:
Description Flags
samba-2.2.7a-error.patch none

Description Tim Waugh 2003-01-22 12:54:04 UTC
Description of problem:
When smbspool reports errors it sometimes uses perror() even in contexts where
errno has nothing to do with the error being reported.  For example, try:

smbspool smb://blah/blah 1 user title 1 ''</dev/null

Version-Release number of selected component (if applicable):
2.2.7a-1

How reproducible:
100%

Steps to Reproduce:
1. smbspool smb://blah/blah 1 user title 1 ''</dev/null
    
Actual results:
ERROR: Unable to connect to SAMBA host, will retry in 60 seconds...: Success

Expected results:
ERROR: Unable to connect to SAMBA host, will retry in 60 seconds...

Additional info:
Patch attached.

Comment 1 Tim Waugh 2003-01-22 12:55:11 UTC
Created attachment 89515 [details]
samba-2.2.7a-error.patch

Comment 2 Jay Fenlason 2003-02-13 19:57:51 UTC
I've included this in the 2.2.7a-3 and later, and passed it upstream.  With luck
it'll make it into 2.2.8