Changeset 293 in Main


Ignore:
Timestamp:
Oct 9, 2024, 7:50:45 PM (5 weeks ago)
Author:
Nishi
Message:

c89

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/server.c

    r276 r293  
    527527                char* host;
    528528                int port;
     529                char* chrootpath;
    529530                struct tw_config_entry* vhost_entry;
    530531                strftime(date, 512, "%a, %d %b %Y %H:%M:%S %Z", tm);
     
    590591                vhost_entry = tw_vhost_match(host, port);
    591592#ifdef HAS_CHROOT
    592                 char* chrootpath = vhost_entry->chroot_path != NULL ? vhost_entry->chroot_path : config.root.chroot_path;
     593                chrootpath = vhost_entry->chroot_path != NULL ? vhost_entry->chroot_path : config.root.chroot_path;
    593594                if(chrootpath != NULL) {
    594595                        if(chdir(chrootpath) == 0) {
Note: See TracChangeset for help on using the changeset viewer.