File: do-not-chown-manually.patch

package info (click to toggle)
root-tail 1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 168 kB
  • sloc: ansic: 1,294; makefile: 77
file content (22 lines) | stat: -rw-r--r-- 703 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Do not call chown in install target
 This is allowing to run "make install" as non-root.
Author: Axel Beckert <abe@debian.org>
Forwarded: no

--- a/Makefile
+++ b/Makefile
@@ -22,10 +22,10 @@
 	rm -f root-tail root-tail.o root-tail.1.gz
 
 install: all
-	install -D -o root -g root root-tail $(BINDIR)
-	install -D -m 0644 -o root -g root root-tail.1.gz $(MANDIR)
-	install -D -m 0644 -o root -g root README $(DOCDIR)
-	install -m 0644 -o root -g root Changes $(DOCDIR)
+	install -D root-tail $(BINDIR)
+	install -D -m 0644 root-tail.1.gz $(MANDIR)
+	install -D -m 0644 README $(DOCDIR)
+	install -m 0644 Changes $(DOCDIR)
 
 uninstall:
 	rm -f $(BINDIR)/root-tail $(MANDIR)/root-tail.1.gz