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.
Created attachment 89515 [details] samba-2.2.7a-error.patch
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