rtla: Don't overwrite existing directory mode
authorJohn Kacur <jkacur@redhat.com>
Fri, 29 Apr 2022 16:28:11 +0000 (18:28 +0200)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 26 May 2022 19:18:28 +0000 (15:18 -0400)
commit39c3d84cb5b52792a7323a338334d8d65b2dbe3f
tree0c1532ed357b9deaff88f6fdf1201f17a31b6c59
parent2a6b52ed72c822b5ee146a6a00ea66614fe02653
rtla: Don't overwrite existing directory mode

The mode on /usr/bin is often 555 these days,
but make install on rtla overwrites this with 755

Fix this by preserving the current directory if it exists.

Link: https://lkml.kernel.org/r/8c294a6961080a1970fd8b73f7bcf1e3984579e2.1651247710.git.bristot@kernel.org
Link: https://lore.kernel.org/r/20220402043939.6962-1-jkacur@redhat.com
Cc: Daniel Bristot de Oliveria <bristot@redhat.com>
Fixes: 79ce8f43ac5a ("rtla: Real-Time Linux Analysis tool")
Acked-by: Daniel Bristot de Oliveira <bristot@kernel.org>
Signed-off-by: John Kacur <jkacur@redhat.com>
Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/tracing/rtla/Makefile