Windows: cm_Rename break in 9cf7a628c2ff178b2fa236d2c0a41ca9be315036
[openafs.git] / src / WINNT / afsd / cm_vnodeops.c
index 605ff31..0545350 100644 (file)
@@ -3607,6 +3607,9 @@ long cm_Rename(cm_scache_t *oldDscp, fschar_t *oldNamep, clientchar_t *cOldNamep
             newScp = NULL;
         } else if (code == CM_ERROR_AMBIGUOUS_FILENAME) {
             code = CM_ERROR_EXISTS;
+        } else {
+            /* The target does not exist.  Clear the error and perform the rename. */
+            code = 0;
         }
     }