git.schokokeks.org
Repositories
Help
Report an Issue
keks-overlay.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
5262a88
Branches
Tags
master
keks-overlay.git
net-ftp
proftpd
files
proftpd-1.3.6_rc4-vroot-refresh-api.patch
add patch for HUP crash, see also https://bugs.gentoo.org/678490
Hanno
commited
5262a88
at 2019-02-21 11:53:27
proftpd-1.3.6_rc4-vroot-refresh-api.patch
Blame
History
Raw
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;