Skip to content
Snippets Groups Projects
Commit fa57b241 authored by Moe Jette's avatar Moe Jette
Browse files

srun --output or --error file names of "none" mapped to /dev/null for

    batch jobs rather than a file actually named "none".
parent 10f139b1
No related branches found
No related tags found
No related merge requests found
......@@ -846,7 +846,10 @@ static void _opt_args(int argc, char **argv)
break;
case (int)'e':
xfree(opt.efname);
opt.efname = xstrdup(optarg);
if (strncasecmp(optarg, "none", (size_t) 4) == 0)
opt.efname = xstrdup("/dev/null");
else
opt.efname = xstrdup(optarg);
break;
case (int)'g':
if (_verify_geometry(optarg, opt.geometry))
......@@ -904,7 +907,10 @@ static void _opt_args(int argc, char **argv)
break;
case (int)'o':
xfree(opt.ofname);
opt.ofname = xstrdup(optarg);
if (strncasecmp(optarg, "none", (size_t) 4) == 0)
opt.ofname = xstrdup("/dev/null");
else
opt.ofname = xstrdup(optarg);
break;
case (int)'O':
opt.overcommit = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment