Commit 9b8a449
committed
Allow fapolicyd to have other paths
In fapolicyd-cli, when doing the check-status command, it checks to
see if the application pointed to be fapolicyd.pid really is fapolicyd
by checking the complete path against the hardcoded path. This prevents
getting a status report if it is started from somewhere else.
Adjust the check to only check the basename of the application. That will
allow execution from other places.1 parent 2f9d2dc commit 9b8a449
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
1377 | 1378 | | |
1378 | 1379 | | |
1379 | 1380 | | |
1380 | | - | |
| 1381 | + | |
1381 | 1382 | | |
1382 | 1383 | | |
1383 | 1384 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
0 commit comments