mirror of
https://github.com/opnsense/src.git
synced 2026-04-02 16:05:17 -04:00
Unbreak the -c option by not using connect(2) for mount_nfs's
communication with the remote NFS server if this flag is specified. PR: bin/42003 Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
This commit is contained in:
parent
755a869863
commit
fd0b613a7b
1 changed files with 2 additions and 1 deletions
|
|
@ -660,7 +660,8 @@ tryagain:
|
|||
return (returncode(rpc_createerr.cf_stat,
|
||||
&rpc_createerr.cf_error));
|
||||
}
|
||||
if (nfsargsp->sotype == SOCK_DGRAM) {
|
||||
if (nfsargsp->sotype == SOCK_DGRAM &&
|
||||
!(nfsargsp->flags & NFSMNT_NOCONN)) {
|
||||
/*
|
||||
* Use connect(), to match what the kernel does. This
|
||||
* catches cases where the server responds from the
|
||||
|
|
|
|||
Loading…
Reference in a new issue