commit:     f383fd87b121492a04362ca9041f686d981718f1
Author:     William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Sat Feb 24 23:02:02 2018 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sat Feb 24 23:02:02 2018 +0000
URL:        https://gitweb.gentoo.org/proj/openrc.git/commit/?id=f383fd87

kill_all: change execl call to execlp

 src/rc/kill_all.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/rc/kill_all.c b/src/rc/kill_all.c
index d6ce354b..3aeaa262 100644
--- a/src/rc/kill_all.c
+++ b/src/rc/kill_all.c
@@ -65,7 +65,7 @@ static int mount_proc(void)
                        break;
                case 0:
                        /* attempt to mount /proc */
-                       execl("mount", "mount", "-t", "proc", "proc", "/proc", 
NULL);
+                       execlp("mount", "mount", "-t", "proc", "proc", "/proc", 
NULL);
                        syslog(LOG_ERR, "Unable to execute mount");
                        exit(1);
                        break;

Reply via email to