Bug 7667

Summary: smbmount in 2.0.5a-1 does not return error code on failed mount attempt
Product: [Retired] Red Hat Linux Reporter: John Hardin <johnh>
Component: sambaAssignee: Trond Eivind Glomsrxd <teg>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0   
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: 1999-12-08 17:05:39 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:

Description John Hardin 1999-12-07 21:03:21 UTC
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.

Comment 1 Bill Nottingham 1999-12-08 16:32:59 UTC
This *may* be fixed in the samba-client package in
Raw Hide, as smbmount has been slightly reworked.

Comment 2 John Hardin 1999-12-08 17:05:59 UTC
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.