Changeset cdd2ff5 in code


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.

Files:
2 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) {
  • logger.c

    rad8b08d rcdd2ff5  
    111111        }
    112112
     113        chdir (ICBD_HOME);
     114
    113115        if (setuid(pw->pw_uid) < 0) {
    114116                syslog(LOG_ERR, "%s: %d: %m", __func__, pw->pw_uid);
Note: See TracChangeset for help on using the changeset viewer.