1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-17 09:19:15 -04:00
ports/sysutils/slurm-wlm/files/patch-src_common_read__config.h
Jason W. Bacon 916142df1a sysutils/slurm-wlm: Upgrade to 19.05.1-2
Resolves CVE-2019-12838
Add NOT_FOR_ARCHS since upstream has deprecated 32-bit architectures
2019-07-21 00:10:11 +00:00

24 lines
1 KiB
C

--- src/common/read_config.h.orig 2019-05-28 17:23:14 UTC
+++ src/common/read_config.h
@@ -113,7 +113,7 @@ extern uint16_t drop_priv_flag;
#define DEFAULT_KILL_TREE 0
#define DEFAULT_KILL_WAIT 30
#define DEFAULT_LAUNCH_TYPE "launch/slurm"
-#define DEFAULT_MAIL_PROG "/bin/mail"
+#define DEFAULT_MAIL_PROG "/usr/bin/mail"
#define DEFAULT_MAIL_PROG_ALT "/usr/bin/mail"
#define DEFAULT_MAX_ARRAY_SIZE 1001
#define DEFAULT_MAX_JOB_COUNT 10000
@@ -129,7 +129,11 @@ extern uint16_t drop_priv_flag;
#define DEFAULT_MSG_TIMEOUT 10
#define DEFAULT_POWER_PLUGIN ""
#define DEFAULT_CHECKPOINT_TYPE "checkpoint/none"
-#define DEFAULT_PROCTRACK_TYPE "proctrack/cgroup"
+#if defined __linux__
+# define DEFAULT_PROCTRACK_TYPE "proctrack/cgroup"
+#else
+# define DEFAULT_PROCTRACK_TYPE "proctrack/pgid"
+#endif
#define DEFAULT_PREEMPT_TYPE "preempt/none"
#define DEFAULT_PRIORITY_DECAY 604800 /* 7 days */
#define DEFAULT_PRIORITY_CALC_PERIOD 300 /* in seconds */