]> git.cameronkatri.com Git - pw-darwin.git/blobdiff - libutil/pw_util.c
Remove useless calls to basename().
[pw-darwin.git] / libutil / pw_util.c
index af749d5240de5e1dc26109294b8fbf6a761bd41a..2838871d93f6679307814271a79077e2a715c345 100644 (file)
@@ -58,7 +58,6 @@ static const char rcsid[] =
 #include <err.h>
 #include <fcntl.h>
 #include <inttypes.h>
-#include <libgen.h>
 #include <paths.h>
 #include <pwd.h>
 #include <signal.h>
@@ -315,7 +314,7 @@ pw_edit(int notsetuid)
                        (void)setuid(getuid());
                }
                errno = 0;
-               execlp(editor, basename(editor), tempname, (char *)NULL);
+               execlp(editor, editor, tempname, (char *)NULL);
                _exit(errno);
        default:
                /* parent */