mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 03:50:57 +01:00
now using setrlimit() if present and if not in debug mode; applied changes for removed files
This commit is contained in:
@@ -309,6 +309,13 @@ int main (int argc, char **argv) {
|
||||
|
||||
|
||||
sodium_init(); /* FIXME: better called from the lib? */
|
||||
|
||||
#ifndef DEBUG
|
||||
# ifdef HAVE_SETRLIMIT
|
||||
setrlimit(RLIMIT_CORE, &(struct rlimit) {0, 0});
|
||||
# endif
|
||||
#endif
|
||||
|
||||
errno = 0; /* FIXME: workaround for https://github.com/jedisct1/libsodium/issues/114 */
|
||||
|
||||
if(mode == PCP_MODE_ENCRYPT && useid == 0 && userec == 0) {
|
||||
|
||||
Reference in New Issue
Block a user