summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2015-06-05 17:10:21 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-07-15 21:57:30 +0200
commitf6a71ab5f06642727d5004b9a745a1b8e0393d78 (patch)
tree3fcb8a6dbb53bfd9f84b74a6e9c8bb66395f63d7
parentda17e4c19e97a76ed13eaa55a488b3c1b2827749 (diff)
downloadsssd-f6a71ab5f06642727d5004b9a745a1b8e0393d78.tar.gz
sssd-f6a71ab5f06642727d5004b9a745a1b8e0393d78.tar.xz
sssd-f6a71ab5f06642727d5004b9a745a1b8e0393d78.zip
Use NSCD path in execl()
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 <lslebodn@redhat.com>
-rw-r--r--src/util/nscd.c2
1 files changed, 1 insertions, 1 deletions
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));