From 0826fe9828647258b85211ce3984e776225515eb Mon Sep 17 00:00:00 2001 From: Morris Jette <jette@schedmd.com> Date: Wed, 20 Aug 2014 14:12:09 -0700 Subject: [PATCH] Fix for previous commit srun --export variable check wrong --- src/srun/libsrun/opt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/srun/libsrun/opt.c b/src/srun/libsrun/opt.c index aad1787c6d9..5193dbedf65 100644 --- a/src/srun/libsrun/opt.c +++ b/src/srun/libsrun/opt.c @@ -1214,7 +1214,7 @@ static void _set_options(const int argc, char **argv) break; case LONG_OPT_EXPORT: xfree(opt.export_env); - if (!strcasecmp(opt.export_env, "ALL")) + if (!strcasecmp(optarg, "ALL")) ; /* Ignore "ALL", it is the default */ else opt.export_env = xstrdup(optarg); -- GitLab