1diff --git a/libutempter/iface.c b/libutempter/iface.c
2index 37c74a8..6f44c9a 100644
3--- a/libutempter/iface.c
4+++ b/libutempter/iface.c
5@@ -43,7 +43,7 @@
6 __result; }))
7 #endif
8
9-#define UTEMPTER_DEFAULT_PATHNAME LIBEXECDIR "/utempter/utempter"
10+#define UTEMPTER_DEFAULT_PATHNAME "utempter"
11
12 static const char *utempter_pathname;
13 static int saved_fd = -1;
14@@ -57,8 +57,8 @@ do_child(int master_fd, const char *path, char *const *argv)
15 _exit(EXIT_FAILURE);
16 }
17
18- execv(path, argv);
19- print_dbg("execv: %s", strerror(errno));
20+ execvp(path, argv);
21+ print_dbg("execvp: %s", strerror(errno));
22
23 while (EACCES == errno) {
24 /* try saved group ID */
25@@ -73,7 +73,7 @@ do_child(int master_fd, const char *path, char *const *argv)
26 if (setgid(sgid))
27 break;
28
29- (void) execv(path, argv);
30+ (void) execvp(path, argv);
31 break;
32 }