]>
Commit | Line | Data |
---|---|---|
e23f4509 JB |
1 | --- rc-scripts-0.3.1/rc.d/init.d/functions.orig Sun Jan 13 04:40:42 2002 |
2 | +++ rc-scripts-0.3.1/rc.d/init.d/functions Wed Jun 26 12:07:57 2002 | |
3 | @@ -275,7 +275,13 @@ | |
4 | ||
5 | # make sure it doesn't core dump anywhere; while this could mask | |
6 | # problems with the daemon, it also closes some security problems | |
7 | - ulimit -c 0 | |
8 | + | |
9 | + # use ULIMIT_C variable - allow to use other limit for some daemons | |
10 | + # (e.g. for sshd with privsep or for debugging purposes) | |
11 | + if [ "$ULIMIT_C" = "" ]; then | |
12 | + ULIMIT_C="-c 0" | |
13 | + fi | |
14 | + ulimit $ULIMIT_C | |
15 | ||
16 | # Make sure daemons will be able to fork. | |
17 | # Limits are set via pam_limits. |