nfssvc_versbits() has to be called before nfssvc_setfds()
for the version processing to work correctly
struct nfsctl_arg arg;
int fd;
struct nfsctl_arg arg;
int fd;
- nfssvc_setfds(port, protobits, haddr);
-
+ /* Note: must set versions before fds so that
+ * the ports get registered with portmap against correct
+ * versions
+ */
nfssvc_versbits(versbits);
nfssvc_versbits(versbits);
+ nfssvc_setfds(port, protobits, haddr);
fd = open(NFSD_THREAD_FILE, O_WRONLY);
if (fd < 0)
fd = open(NFSD_THREAD_FILE, O_WRONLY);
if (fd < 0)