CRAY- Fix issue if jobinfo is NULL on xstrdup or sprint of the structure.
CRAY- Might as well return buf now.
Correct value of min_nodes returned by loading job info

This is a correction of a bug introduced in commit
https://github.com/SchedMD/slurm/commit/ac44db862c8d1f460e55ad09017d058942ff6499
That commit eliminated the need of reading the node state information
from squeue for performance reasons (mostly for large parallel systems
in which the Prolog ran squeue, which generates a lot of simultaneous
RPCs, slowing down the job launch process). It also assumed 1 CPU per
node. If a pending job specified a node count of 1 and a task count
larger than one, squeue was reporting the node count of the job as
the same as the task count. This patch moves that same calculation
of a pending job's minimum node count into slurmctld, so the squeue
still does not need to read the node information, but can report the
correct node count for pending jobs with minimal overhead.
Clarify equivalent sacct options in man page
Merge branch 'slurm-2.6'
scontrol show job, process stdin/out/err format options

Perform file name substitutions for scontrol show job stdin/out/err
%A - Job array's master job allocation number.
%a - Job array ID (index) number.
%j - Job ID
%u - User name
If running jobacct_gather/none fix issue on unpacking step completion.
CRAY - Fix issue with NHC if job doesn't have any nodes in it.
Merge remote-tracking branch 'origin/slurm-2.6'

Conflicts:
	src/slurmd/slurmd/slurmd.c
Add new job_state of JOB_BOOT_FAIL

Used job terminations due to failure to boot it's allocated nodes
or BlueGene block.
bug 213
Add --enable-multiple-slurmd to be an option in the slurm.spec file.
Minor changes to Slurm logging for licenses
Minor changes to logging of license information
Initialize a couple of variables in reservation logic
Memory leak: plug one-time memory leak at slurmctld shutdown
CRAY - Add SelectTypeParameters NHC_NO_STEPS and NHC_NO which will disable
the node health check script for steps and allocations respectfully.
CRAY - Fixed issue with new flags
Reservation with CoreCnt: Avoid possible invalid memory reference.

If reservation create request included a CoreCnt value and more
nodes are required than configured, the logic in select/cons_res
could go off the end of the core_cnt array. This patch adds a
check for a zero value in the core_cnt array, which terminates
the user-specified array.
Add new error code for attempt to create a reservation with duplicate name
Reservation with CoreCnt: Avoid possible invalid memory reference

If reservation create request included a CoreCnt value and more
nodes are required than configured, the logic in select/cons_res
could go off the end of the core_cnt array. This patch adds a
check for a zero value in the core_cnt array, which terminates
the user-specified array.
Back-port from master of commit 211c224bbaf01c7da7dd7fd8d0611226356fb91b