git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
3a7d53e
)
winnt-make-mountingother-than-as-afs-work-20021104
author
Andrei Keis
<Andrei.Keis@morganstanley.com>
Mon, 4 Nov 2002 20:42:02 +0000 (20:42 +0000)
committer
Derrick Brashear
<shadow@dementia.org>
Mon, 4 Nov 2002 20:42:02 +0000 (20:42 +0000)
make mounting other than as /afs work correctly with respect to absolute symlinks
src/WINNT/afsd/afsd_init.c
patch
|
blob
|
history
diff --git
a/src/WINNT/afsd/afsd_init.c
b/src/WINNT/afsd/afsd_init.c
index
a09e4c1
..
b2e96f0
100644
(file)
--- a/
src/WINNT/afsd/afsd_init.c
+++ b/
src/WINNT/afsd/afsd_init.c
@@
-323,9
+323,10
@@
int afsd_InitCM(char **reasonP)
cm_mountRootLen = sizeof(cm_mountRoot);
code = RegQueryValueEx(parmKey, "Mountroot", NULL, NULL,
cm_mountRoot, &cm_mountRootLen);
- if (code == ERROR_SUCCESS)
+ if (code == ERROR_SUCCESS) {
afsi_log("Mount root %s", cm_mountRoot);
- else {
+ cm_mountRootLen = strlen(cm_mountRoot);
+ } else {
strcpy(cm_mountRoot, "/afs");
cm_mountRootLen = 4;
/* Don't log */