Search
j0ke.net Open Build Service
>
Projects
>
home:jg
>
psa-proftpd
> parser.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File parser.patch of Package psa-proftpd
--- contrib/mod_quotatab.c 2009-03-30 18:04:28.000000000 -0400 +++ contrib/mod_quotatab.c 2009-03-30 18:03:59.000000000 -0400 @@ -1079,6 +1079,7 @@ /* Configuration handlers */ + /* usage: QuotaDirectoryTally <on|off> */ MODRET set_quotadirtally(cmd_rec *cmd) { int bool = -1; @@ -1214,6 +1215,31 @@ return PR_HANDLED(cmd); } +/* ART test: QuotaType <string> */ +/* This does nothing */ +MODRET set_art_quotatype(cmd_rec *cmd) { + CHECK_ARGS(cmd, 1); + CHECK_CONF(cmd, CONF_ROOT|CONF_VIRTUAL|CONF_GLOBAL); + + add_config_param_str(cmd->argv[0], 1, cmd->argv[1]); + + return PR_HANDLED(cmd); +} + +/* ART test: QuotaCalc <string> */ +/* This does nothing */ +MODRET set_art_quotacalc(cmd_rec *cmd) { + CHECK_ARGS(cmd, 1); + CHECK_CONF(cmd, CONF_ROOT|CONF_VIRTUAL|CONF_GLOBAL); + + add_config_param_str(cmd->argv[0], 1, cmd->argv[1]); + + return PR_HANDLED(cmd); +} + + + + /* usage: QuotaOptions opt1 opt2 ... */ MODRET set_quotaoptions(cmd_rec *cmd) { config_rec *c; @@ -2931,6 +2957,9 @@ { "QuotaDirectoryTally", set_quotadirtally, NULL }, { "QuotaDisplayUnits", set_quotadisplayunits, NULL }, { "QuotaEngine", set_quotaengine, NULL }, + { "Quotas", set_quotaengine, NULL }, + { "QuotaType", set_art_quotatype, NULL }, + { "QuotaCalc", set_art_quotacalc, NULL }, { "QuotaExcludeFilter", set_quotaexcludefilter, NULL }, { "QuotaLimitTable", set_quotatable, NULL }, { "QuotaLock", set_quotalock, NULL },