Brad Bishop | 49e29a1 | 2019-09-01 15:21:06 -0400 | [diff] [blame] | 1 | From ab671b02e3aaf65dd1fd279789ea933b8140fe52 Mon Sep 17 00:00:00 2001 |
| 2 | From: Chen Qi <Qi.Chen@windriver.com> |
| 3 | Date: Tue, 27 Aug 2019 16:08:00 +0800 |
| 4 | Subject: [PATCH] avoid race condition |
| 5 | |
| 6 | The rootsbin directory is self defined. The install-rootsbinPROGRAMS |
| 7 | is actually treated as part of install-data. |
| 8 | |
| 9 | This would avoid race condition which causes install failure. |
| 10 | |
| 11 | Upstream-Status: Pending |
| 12 | |
| 13 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> |
| 14 | --- |
| 15 | src/utils/Makefile.am | 2 +- |
| 16 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 17 | |
| 18 | diff --git a/src/utils/Makefile.am b/src/utils/Makefile.am |
| 19 | index 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 | -- |
| 31 | 2.17.1 |
| 32 | |