From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3 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): RH7.1 How reproducible: Always Steps to Reproduce: As root and make sure /usr/sbin is NOT in path 1. /bin/mount -t smbfs -o username=SOMEVALIDNAME,password=SOMEVALIDPASS //NTSERVER/SOMESHARE MOUNTPOINT 2. Actual Results: root> /bin/mount -t smbfs -o username=SOMEVALIDNAME,password=SOMEVALIDPASS //NTSERVER/SOMESHARE MOUNTPOINT > /dev/null &2>1 root> $echo $? root> 0 Expected Results: some value greater 0 indicating that "smbmnt" was NOT found and the mount did NOT succeed! Additional info: 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.