[3/2] mount: Allow 'port=0' to be a valid port value.
diff mbox

Message ID 4D6FF466.2070004@RedHat.com
State RFC, archived
Headers show

Commit Message

Steve Dickson March 3, 2011, 8:04 p.m. UTC
None

Patch
diff mbox

diff --git a/utils/mount/network.c b/utils/mount/network.c
index 8049c1a..88ab222 100644
--- a/utils/mount/network.c
+++ b/utils/mount/network.c
@@ -1346,7 +1346,7 @@  nfs_nfs_port(struct mount_options *options, unsigned long *port)
 	case PO_NOT_FOUND:
 		break;
 	case PO_FOUND:
-		if (tmp >= 1 && tmp <= 65535) {
+		if (tmp >= 0 && tmp <= 65535) {
 			*port = tmp;
 			return 1;
 		}