Legend:
- Unmodified
- Added
- Removed
-
logger.c
r2be3612 r4a74b5b 1 1 /* 2 * Copyright (c) 2009 Michael Shalayeff 2 3 * Copyright (c) 2014 Mike Belopuhov 3 * Copyright (c) 2009 Michael Shalayeff 4 * Copyright (c) 2024 Nishi 5 * Copyright (c) 2025 Izuru Yakumo 4 6 * 5 7 * Permission to use, copy, modify, and distribute this software for any … … 96 98 exit(EX_NOUSER); 97 99 } 98 100 #ifdef __OpenBSD 99 101 if (chroot(pw->pw_dir) < 0) { 100 102 syslog(LOG_ERR, "%s: %s: %m", __func__, pw->pw_dir); … … 113 115 exit(EX_NOPERM); 114 116 } 115 117 #endif 118 #ifdef __OpenBSD__ 116 119 if (pledge("stdio cpath wpath", NULL) == -1) { 117 120 syslog(LOG_ERR, "%s: pledge", __func__); 118 121 exit(EX_NOPERM); 119 122 } 123 #endif 120 124 121 125 event_init();
Note:
See TracChangeset
for help on using the changeset viewer.