Red Hat Bugzilla – Bug 465966
mount.nfs returns incorrect exit code for failed mount
Last modified: 2009-01-20 16:01:09 EST
Description of problem:
If you try to mount an export that is not exported to the client, you get an error message of permission denied, but mount returns exit code 0, indicating success. This breaks the automounter, which needs to know that the mount failed.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
See problem description.
I will also check to see if the autofs rhts tests will catch this.
It seem the regression happen with the fix to
Created attachment 319642 [details]
Fixed in nfs-utils-1.0.9-38.el5
I tested the updated package and found that:
1) it returns exit code 32 for the permission denied case
2) it returns success when it successfully mounts
3) automount behaviour has returned to normal.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.