add pathnames.h
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 3 Apr 1989 03:33:23 +0000 (19:33 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 3 Apr 1989 03:33:23 +0000 (19:33 -0800)
SCCS-vsn: libexec/fingerd/fingerd.c 5.5

usr/src/libexec/fingerd/fingerd.c

index 4cd7008..28ec0f9 100644 (file)
@@ -22,10 +22,11 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)fingerd.c  5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)fingerd.c  5.5 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <stdio.h>
 #endif /* not lint */
 
 #include <stdio.h>
+#include "pathnames.h"
 
 main()
 {
 
 main()
 {
@@ -72,7 +73,7 @@ main()
                        (void)dup2(p[1], 1);
                        (void)close(p[1]);
                }
                        (void)dup2(p[1], 1);
                        (void)close(p[1]);
                }
-               execv("/usr/ucb/finger", av);
+               execv(_PATH_FINGER, av);
                _exit(1);
        case -1:
                fatal("fork");
                _exit(1);
        case -1:
                fatal("fork");