diff options
author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-11-15 00:17:43 -0600 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-11-15 00:26:51 -0600 |
commit | 1d08ade13225343890e3476f7c4003ab87dc266c (patch) | |
tree | 965da5451fb6203c6a87b586e975be68b950ba6d | |
parent | 84245764e28e6c841946ef706c704139e97d1bd4 (diff) | |
download | dwl-1d08ade13225343890e3476f7c4003ab87dc266c.tar.gz |
remove binary before copying to destination
Since Linux 6.11 is possible overwrite a running executable, possibly making it
crash.
Thanks to: movq42rax
Fixes: https://codeberg.org/dwl/dwl/issues/709
References: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2a010c412853
References: https://lore.kernel.org/stable/CACKH++YAtEMYu2nTLUyfmxZoGO37fqogKMDkBpddmNaz5HE6ng@mail.gmail.com/T/#u
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -61,6 +61,7 @@ dist: clean install: dwl mkdir -p $(DESTDIR)$(PREFIX)/bin + rm -f $(DESTDIR)$(PREFIX)/bin/dwl cp -f dwl $(DESTDIR)$(PREFIX)/bin chmod 755 $(DESTDIR)$(PREFIX)/bin/dwl mkdir -p $(DESTDIR)$(MANDIR)/man1 |