Changeset 1dd3554 in code
- Timestamp:
- Mar 5, 2014, 5:39:17 PM (11 years ago)
- Branches:
- master
- Children:
- b28dd0e
- Parents:
- 4e66b3a
- git-author:
- Mike Belopuhov <mike@…> (03/05/14 17:38:50)
- git-committer:
- Mike Belopuhov <mike@…> (03/05/14 17:39:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
logger.c
r4e66b3a r1dd3554 98 98 exit(EX_NOPERM); 99 99 100 if (chroot(pw->pw_dir) < 0) { 101 syslog(LOG_ERR, "%s: %m", pw->pw_dir); 102 exit(EX_UNAVAILABLE); 103 } 104 100 105 if (setuid(pw->pw_uid) < 0) { 101 106 syslog(LOG_ERR, "%d: %m", pw->pw_uid); … … 103 108 } 104 109 105 if (chdir( pw->pw_dir) < 0) {110 if (chdir("/") < 0) { 106 111 syslog(LOG_ERR, "chdir: %m"); 107 112 exit(EX_UNAVAILABLE);
Note:
See TracChangeset
for help on using the changeset viewer.