httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Tao <>
Subject Setting UserDir to "disabled" doesn't work?
Date Sat, 07 Oct 1995 16:46:02 GMT
    In mod_userdir.c, in the function set_user_dir(), is the negated
string comparison correct?

char *set_user_dir (cmd_parms *cmd, void *dummy, char *arg)
    void *server_conf = cmd->server->module_config;

    if (!strcasecmp (arg, "disabled")) arg = NULL;

    set_module_config (server_conf, &userdir_module, pstrdup (cmd->pool, arg));
    return NULL;

    It would seem that if the UserDir argument was set to "disabled",
a NULL pointer would be passed to set_module_config (to disable tilde
expansion of home directories in URL's).
Brian Tao <>
System Administrator, Internex Online Inc.
"Though this be madness, yet there is method in't"

View raw message