blob: 9c7da514b2970224eceb12b225a2a2d3b1540b1f [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001diff --git a/sestatus/Makefile b/sestatus/Makefile
2index 3dbb792..d5d80cb 100644
3--- a/sestatus/Makefile
4+++ b/sestatus/Makefile
5@@ -22,6 +22,7 @@ install: all
6 # Some tools hard code /usr/sbin/sestatus ; add a compatibility symlink
7 # install will overwrite a symlink, so create the symlink before calling
8 # install to allow distributions with BINDIR == SBINDIR
9+ rm -f $(DESTDIR)$(SBINDIR)/sestatus
10 ln -sf --relative $(DESTDIR)$(BINDIR)/sestatus $(DESTDIR)$(SBINDIR)
11 install -m 755 sestatus $(DESTDIR)$(BINDIR)
12 install -m 644 sestatus.8 $(DESTDIR)$(MANDIR)/man8