summaryrefslogtreecommitdiff
blob: 59b96ce90027c908b9b0e4ce7af33626f9cfabbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff --git a/mod_vroot.c b/mod_vroot.c
index b0ce59a..db0df35 100644
--- a/mod_vroot.c
+++ b/mod_vroot.c
@@ -1515,7 +1515,7 @@ MODRET set_vrootserverroot(cmd_rec *cmd) {
    */
  
   pathlen = strlen(cmd->argv[1]);
-  if (cmd->argv[1][pathlen - 1] != '/') {
+  if (((char*)cmd->argv[1])[pathlen - 1] != '/') {
     c->argv[0] = pstrcat(c->pool, cmd->argv[1], "/", NULL);
 
   } else {
@@ -1648,7 +1648,9 @@ MODRET vroot_pre_pass(cmd_rec *cmd) {
   fs->rename = vroot_rename;
   fs->unlink = vroot_unlink;
   fs->open = vroot_open;
+#if ! PROFTPD_VERSION_NUMBER >= 0x0001030604
   fs->creat = vroot_creat;
+#endif /* before ProFTPD 1.3.6_rc4 */
   fs->link = vroot_link;
   fs->readlink = vroot_readlink;
   fs->symlink = vroot_symlink;