Bug 7667 - smbmount in 2.0.5a-1 does not return error code on failed mount attempt
smbmount in 2.0.5a-1 does not return error code on failed mount attempt
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: samba (Show other bugs)
6.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Trond Eivind Glomsrxd
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-12-07 16:03 EST by John Hardin
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-12-08 12:05:39 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description John Hardin 1999-12-07 16:03:21 EST
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 11:32:59 EST
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 12:05:59 EST
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.

Note You need to log in before you can comment on or make changes to this bug.