From: William Roberts <william.c.roberts@xxxxxxxxx> Add a deprecated warning to matchpathcon encouraging users to switch to selabel_lookup. Signed-off-by: William Roberts <william.c.roberts@xxxxxxxxx> --- libselinux/utils/matchpathcon.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libselinux/utils/matchpathcon.c b/libselinux/utils/matchpathcon.c index eb39a1881066..cc018d213f4c 100644 --- a/libselinux/utils/matchpathcon.c +++ b/libselinux/utils/matchpathcon.c @@ -73,6 +73,9 @@ int main(int argc, char **argv) int error = 0; int quiet = 0; + fprintf(stderr, + "Deprecated, use selabel_lookup\n"); + if (argc < 2) usage(argv[0]); -- 2.17.1