Commit 25d75be
committed
sosreport: Query sos policy for default tmp dir
sos 4.6.2 changed the tmp dir policy [1] from a static /var/tmp to a
dynamic per-distro policy, which happens to be /tmp on Debian/Ubuntu
right now. This is wrong, and there is no official way to query it [2].
To cope, query the sos policy for the tmp-dir, and only fall back to
static /var/tmp if that fails.
[1] sosreport/sos#4062
[2] sosreport/sos#40741 parent b217dbe commit 25d75be
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
0 commit comments