diff options
author | J. Bruce Fields <bfields@redhat.com> | 2012-08-14 17:48:39 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-08-21 17:07:50 -0400 |
commit | a10fded18eb275e7e97e57e7542b16c665fe61ec (patch) | |
tree | 4171899172269fbc100107a17912429d0fcdad5b /fs/nfsd/nfsctl.c | |
parent | 38af2cabb6285e1c44d2cc3165f150d2aa5f38a8 (diff) | |
download | op-kernel-dev-a10fded18eb275e7e97e57e7542b16c665fe61ec.zip op-kernel-dev-a10fded18eb275e7e97e57e7542b16c665fe61ec.tar.gz |
nfsd: allow configuring nfsd to listen on 5-digit ports
Note a 16-bit value can require up to 5 digits.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfsctl.c')
-rw-r--r-- | fs/nfsd/nfsctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index 89be13c9..e41a08ff 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c @@ -712,7 +712,7 @@ static ssize_t __write_ports_addxprt(char *buf) int port, err; struct net *net = &init_net; - if (sscanf(buf, "%15s %4u", transport, &port) != 2) + if (sscanf(buf, "%15s %5u", transport, &port) != 2) return -EINVAL; if (port < 1 || port > USHRT_MAX) |