git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
afsd: check if mountdir is an absolute path
[openafs.git]
/
src
/
afsd
/
afsd_kernel.c
diff --git
a/src/afsd/afsd_kernel.c
b/src/afsd/afsd_kernel.c
index
7800fcb
..
a58be2c
100644
(file)
--- a/
src/afsd/afsd_kernel.c
+++ b/
src/afsd/afsd_kernel.c
@@
-555,6
+555,9
@@
afsd_check_mount(const char *rn, const char *mountdir)
} else if (!S_ISDIR(statbuf.st_mode)) {
printf("%s: Mountpoint %s is not a directory.\n", rn, mountdir);
return -1;
+ } else if (mountdir[0] != '/') {
+ printf("%s: Mountpoint %s is not an absolute path.\n", rn, mountdir);
+ return -1;
}
return 0;
}