]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/beep/0006-Preserve-file-modification-time-on-install.patch
beep 1.3: Fixes for CVE-2018-0492
[ipfire-2.x.git] / src / patches / beep / 0006-Preserve-file-modification-time-on-install.patch
1 From 4622dd15dc12dab47a0381a8a7188f0f0421e01d Mon Sep 17 00:00:00 2001
2 From: Hans Ulrich Niedermann <hun@n-dimensional.de>
3 Date: Wed, 20 Nov 2013 00:00:54 +0100
4 Subject: [PATCH] Preserve file modification time on install
5
6 Add -p option to install(1) invocation in order to preserve
7 the timestamps of the files being installed.
8 ---
9 Makefile | 8 ++++----
10 1 file changed, 4 insertions(+), 4 deletions(-)
11
12 diff --git a/Makefile b/Makefile
13 index 942a7a5..290b8a4 100644
14 --- a/Makefile
15 +++ b/Makefile
16 @@ -27,10 +27,10 @@ $(EXEC_NAME): beep.c
17 $(CC) $(FLAGS) $(CFLAGS) -o $(EXEC_NAME) beep.c
18
19 install: all
20 - $(INSTALL) -m 0755 -d $(DESTDIR)$(bindir)
21 - $(INSTALL) -m 0755 $(EXEC_NAME) $(DESTDIR)$(bindir)/
22 - $(INSTALL) -m 0755 -d $(DESTDIR)$(man1dir)
23 - $(INSTALL) -m 0644 $(MAN_FILE) $(DESTDIR)$(man1dir)/
24 + $(INSTALL) -m 0755 -d $(DESTDIR)$(bindir)
25 + $(INSTALL) -m 0755 -p $(EXEC_NAME) $(DESTDIR)$(bindir)/
26 + $(INSTALL) -m 0755 -d $(DESTDIR)$(man1dir)
27 + $(INSTALL) -m 0644 -p $(MAN_FILE) $(DESTDIR)$(man1dir)/
28
29 uninstall:
30 rm -f $(DESTDIR)$(bindir)/$(EXEC_NAME)
31 --
32 2.7.5