[Bug 1766126] Re: exportfs always returns success status
Rodrigo Barbieri
rodrigo.barbieri at canonical.com
Mon Apr 6 14:09:39 UTC 2020
This is no longer true as of 1:1.3.4-2.1ubuntu5.2 (bionic). Do you need
this fix in xenial?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to nfs-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1766126
Title:
exportfs always returns success status
Status in nfs-utils package in Ubuntu:
New
Bug description:
It is impossible to determine whether exportfs command failed or
succeeded based on the exit status:
root at ver:~# exportfs asdf ; echo $?
exportfs: Invalid exporting option: asdf
0
user at ver:~$ exportfs ; echo $?
exportfs: could not open /var/lib/nfs/.etab.lock for locking: errno 13 (Permission denied)
0
Search did not reveal a duplicate bug but a similar issue was resolved upstream back in 2013:
https://bugzilla.redhat.com/show_bug.cgi?id=966237
root at ver:~# lsb_release -rd
Description: Ubuntu 16.04.4 LTS
Release: 16.04
root at ver:~# apt-cache policy nfs-utils
N: Unable to locate package nfs-utils
root at ver:~# apt-cache policy nfs-kernel-server
nfs-kernel-server:
Installed: 1:1.2.8-9ubuntu12.1
Candidate: 1:1.2.8-9ubuntu12.1
What is expected to happen: Command exits with status = 0 only in case
of successful execution
What happens instead: Command exit status is 0 regardless of outcome.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1766126/+subscriptions
More information about the foundations-bugs
mailing list