Commit 1cb04f3
committed
restorecond: check selinux_restorecon(3) for failure
watch.c: In function ‘watch_list_add’:
watch.c:74:25: error: ignoring return value of ‘selinux_restorecon’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result]
74 | selinux_restorecon(globbuf.gl_pathv[i],
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
75 | r_opts.restorecon_flags);
| ~~~~~~~~~~~~~~~~~~~~~~~~
watch.c: In function ‘watch_list_find’:
watch.c:141:33: error: ignoring return value of ‘selinux_restorecon’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result]
141 | selinux_restorecon(path,
| ^~~~~~~~~~~~~~~~~~~~~~~~
142 | r_opts.restorecon_flags);
| ~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Christian Göttsche <[email protected]>1 parent bbcc03b commit 1cb04f3
1 file changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
| |||
138 | 142 | | |
139 | 143 | | |
140 | 144 | | |
141 | | - | |
142 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
143 | 151 | | |
144 | 152 | | |
145 | 153 | | |
| |||
0 commit comments