mount: nfs_mount -d removes persistent connections
bug: connections created through 'net use' or 'map network drive' are not fully removed by 'nfs_mount -d'. the UNMOUNT upcall completes successfully, but the mount remains visible in net use and windows explorer; the next attempted use of the drive will send a new MOUNT and continue normally solution: added flag CONNECT_UPDATE_PROFILE to WNetCancelConnection2(): "The system updates the user profile with the information that the connection is no longer a persistent one." Signed-off-by: Casey Bodley <cbodley@umich.edu>
This commit is contained in:
parent
4731a97973
commit
62fa60a83a
1 changed files with 1 additions and 1 deletions
|
|
@ -315,7 +315,7 @@ static DWORD DoUnmount(
|
||||||
DWORD result;
|
DWORD result;
|
||||||
|
|
||||||
/* disconnect the specified local drive */
|
/* disconnect the specified local drive */
|
||||||
result = WNetCancelConnection2(pLocalName, 0, bForce);
|
result = WNetCancelConnection2(pLocalName, CONNECT_UPDATE_PROFILE, bForce);
|
||||||
/* TODO: verify that this connection uses the nfs41 provider -cbodley */
|
/* TODO: verify that this connection uses the nfs41 provider -cbodley */
|
||||||
switch (result)
|
switch (result)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue