From aa8f8795896923f57565a3eb00d880b0634d65a7 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Tue, 26 Oct 2004 23:25:00 +0000
Subject: [PATCH] Fix srun bug when --input, --output and --error are all
 "none"

---
 NEWS             | 1 +
 src/srun/fname.c | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/NEWS b/NEWS
index dc84c5ee5ef..7f8c2398768 100644
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,7 @@ documents those changes that are of interest to users and admins.
  -- Add support for NodeHostname in node configuration
  -- Make "scontrol show daemons" function properly on front-end system 
     (e.g. Blue Gene)
+ -- Fix srun bug when --input, --output and --error are all "none"
 
 * Changes in SLURM 0.4.0-pre3
 =============================
diff --git a/src/srun/fname.c b/src/srun/fname.c
index c047d79c832..e0a967f8d02 100644
--- a/src/srun/fname.c
+++ b/src/srun/fname.c
@@ -41,13 +41,13 @@ fname_create(job_t *job, char *format)
 	if ((format == NULL)
 	    || (strncasecmp(format, "all", (size_t) 3) == 0)
 	    || (strncmp(format, "-", (size_t) 1) == 0)       ) {
-		fname->type = IO_ALL;
-		fname->name = NULL;
+		/* fname->type = IO_ALL; */
+		/* fname->name = NULL; */
 		return fname;
 	}
 
 	if (strncasecmp(format, "none", (size_t) 4) == 0) {
-		fname->type = IO_NONE;
+		/* fname->type = IO_ALL; */
 		fname->name = "/dev/null";
 		return fname;
 	}
-- 
GitLab