Changeset cdd2ff5 in code for icbd.c


Ignore:
Timestamp:
Mar 14, 2014, 9:37:05 PM (11 years ago)
Author:
Florian Obser <florian@…>
Branches:
master
Children:
ee0e95f
Parents:
ad8b08d
Message:

Opportunisticly chdir to "core" (should be writeable by _icbd) after
chroot to get working core dumps.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icbd.c

    rad8b08d rcdd2ff5  
    470470        }
    471471
    472         if (chdir("/" ICBD_HOME) < 0) {
     472        if (chdir("/") < 0) {
    473473                syslog(LOG_ERR, "/" ICBD_HOME ": %m");
    474474                exit(EX_UNAVAILABLE);
    475475        }
     476
     477        chdir(ICBD_HOME);
    476478
    477479        if (setuid(pw->pw_uid) < 0) {
Note: See TracChangeset for help on using the changeset viewer.