From f6a71ab5f06642727d5004b9a745a1b8e0393d78 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Fri, 5 Jun 2015 17:10:21 +0200 Subject: Use NSCD path in execl() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit man execl says: The first argument, by convention, should point to the filename associated with the file being executed. We used just 'nscd' instead. Reviewed-by: Lukáš Slebodník --- src/util/nscd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/nscd.c b/src/util/nscd.c index 9f79a69cb..f58aebcad 100644 --- a/src/util/nscd.c +++ b/src/util/nscd.c @@ -59,7 +59,7 @@ int flush_nscd_cache(enum nscd_db flush_db) nscd_pid = fork(); switch (nscd_pid) { case 0: - execl(NSCD_PATH, "nscd", NSCD_RELOAD_ARG, service, NULL); + execl(NSCD_PATH, NSCD_PATH, NSCD_RELOAD_ARG, service, NULL); /* if this returns it is an error */ DEBUG(SSSDBG_CRIT_FAILURE, "execl(3) failed: %d(%s)\n", errno, strerror(errno)); -- cgit