]> git.decadent.org.uk Git - nfs-utils.git/commit
mount: Recognize zero as a valid value for the port= option
authorChuck Lever <chuck.lever@oracle.com>
Thu, 3 Mar 2011 22:26:33 +0000 (17:26 -0500)
committerSteve Dickson <steved@redhat.com>
Thu, 3 Mar 2011 22:26:33 +0000 (17:26 -0500)
commit3ef3dc8f1e87ba7a6eaa3c2a6965aff6c80ba414
treefe2f2923c57d079e2b8318d91c65bf8843ee07bc
parentb3a4dbfb61dad59829f5191d727267b2ea45937a
mount: Recognize zero as a valid value for the port= option

While zero is not a valid IP port number, zero does represent a valid
value for "port=".  It means "query rpcbind to discover the actual
non-zero port number to use".  So the parsing functions that handle
"port=" should not flag zero as an invalid value.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/network.c