Red Hat Bugzilla – Bug 71564
mount -t smbfs does not return a non zero value when mounting if smbmnt not found
Last modified: 2007-04-18 12:45:32 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4.1) Gecko/20020508
Description of problem:
mount does not return an error when smbmnt (used by mount when doing an smbfs
mount) is not found in PATH but actually retuns that there was NO error.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
As root and make sure /usr/sbin is NOT in path
1. /bin/mount -t smbfs -o username=SOMEVALIDNAME,password=SOMEVALIDPASS
Actual Results: root> /bin/mount -t smbfs -o
username=SOMEVALIDNAME,password=SOMEVALIDPASS //NTSERVER/SOMESHARE MOUNTPOINT >
root> $echo $?
Expected Results: some value greater 0 indicating that "smbmnt" was NOT found
and the mount did NOT succeed!
And yes, if you not redirect the output (which cannot be done in a script) and
READ the output on the terminal you know something is wrong .... but not when
run as a script ....
with 2.11y-2 I get an error code back, so I'm assuming this has since been fixed.