Commit cb16d39
committed
unit: return a better error state for unit_get_unit_file_preset() if we have no fragment path
We'd previously return what was already set. Let's instead return a
clear ENOEXEC in this case, to make clear what is going on: preset logic
doesn't apply to units which lag a fragment path.1 parent 7cb7f8b commit cb16d39
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4173 | 4173 | | |
4174 | 4174 | | |
4175 | 4175 | | |
4176 | | - | |
| 4176 | + | |
4177 | 4177 | | |
4178 | 4178 | | |
4179 | 4179 | | |
4180 | 4180 | | |
4181 | | - | |
| 4181 | + | |
4182 | 4182 | | |
4183 | 4183 | | |
4184 | 4184 | | |
| |||
0 commit comments