smbmount does not set its return code to a nonzero value if it fails to
successfully mount the network resource. This makes it difficult to script
a response to a failed mount attempt.
Also, even if the smbmount fails the mount shows up in the mounted
filesystems, and smbumount must be run before the mount attempt may be
retried. This means that the script cannot determine whether the mount
failed by checking the mounted filesystems list.
This *may* be fixed in the samba-client package in
Raw Hide, as smbmount has been slightly reworked.
Fix is confirmed. smbmount from samba-client-2.0.6-2 returns nonzero exit code
on mount failure, and does not leave a bogus mount table entry.