Commit fd98713
committed
shell: fall back to /tmp if TMPDIR cannot be created
Problem: If a user inadvertently exports a TMPDIR that can't
be created on the node on which the job eventually runs, then the
tmpdir job shell plugin raises a fatal error. This can occur when
the parent directory of TMPDIR doesn't exist on the system on which
the job eventually runs.
Instead of raising a fatal error, issue a warning in this case and
fall back to /tmp for TMPDIR.
Fixes #43281 parent 35080d5 commit fd98713
1 file changed
+9
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | 74 | | |
84 | 75 | | |
85 | 76 | | |
86 | 77 | | |
87 | 78 | | |
88 | 79 | | |
| 80 | + | |
89 | 81 | | |
90 | 82 | | |
91 | | - | |
| 83 | + | |
92 | 84 | | |
93 | | - | |
94 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
95 | 92 | | |
96 | 93 | | |
97 | 94 | | |
| |||
0 commit comments