1From ab671b02e3aaf65dd1fd279789ea933b8140fe52 Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Tue, 27 Aug 2019 16:08:00 +0800
4Subject: [PATCH] avoid race condition
5
6The rootsbin directory is self defined. The install-rootsbinPROGRAMS
7is actually treated as part of install-data.
8
9This would avoid race condition which causes install failure.
10
11Upstream-Status: Pending
12
13Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
14---
15 src/utils/Makefile.am | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/src/utils/Makefile.am b/src/utils/Makefile.am
19index 83cf851..344883a 100644
20--- a/src/utils/Makefile.am
21+++ b/src/utils/Makefile.am
22@@ -67,6 +67,6 @@ ecryptfs_stat_LDADD = $(top_builddir)/src/libecryptfs/libecryptfs.la
23 test_SOURCES = test.c io.c
24 test_LDADD = $(top_builddir)/src/libecryptfs/libecryptfs.la
25
26-install-exec-hook:	install-rootsbinPROGRAMS
27+install-data-hook:	install-rootsbinPROGRAMS
28 	-rm -f "$(DESTDIR)/$(rootsbindir)/umount.ecryptfs_private"
29 	$(LN_S) "mount.ecryptfs_private" "$(DESTDIR)/$(rootsbindir)/umount.ecryptfs_private"
30--
312.17.1
32
33