nixpkgs/pkgs/servers/computing/slurm/common-env-echo.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
553 B
Diff
Raw Normal View History

diff --git a/src/common/env.c b/src/common/env.c
2023-12-03 14:20:24 +01:00
index 4dad18fef1..730f28af96 100644
--- a/src/common/env.c
+++ b/src/common/env.c
2023-12-03 14:20:24 +01:00
@@ -2073,7 +2073,7 @@ char **env_array_user_default(const char *username, int timeout, int mode,
char **env = NULL;
char *starttoken = "XXXXSLURMSTARTPARSINGHEREXXXX";
char *stoptoken = "XXXXSLURMSTOPPARSINGHEREXXXXX";
- char cmdstr[256], *env_loc = NULL;
2023-12-03 14:20:24 +01:00
+ char cmdstr[PATH_MAX], *env_loc = NULL;
char *stepd_path = NULL;
2023-12-03 14:20:24 +01:00
int fildes[2], found, fval, len, rc, timeleft;
int buf_read, buf_rem, config_timeout;