From c7020954caea27d1e42ff297ec61c791b98af426 Mon Sep 17 00:00:00 2001 From: William Roberts Date: Wed, 15 Apr 2020 16:14:26 -0500 Subject: [PATCH] utils: matchpathcon add deprecated warning Add a deprecated warning to matchpathcon encouraging users to switch to selabel_lookup. Signed-off-by: William Roberts --- libselinux/utils/matchpathcon.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libselinux/utils/matchpathcon.c b/libselinux/utils/matchpathcon.c index eb39a188..cc018d21 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]);