SCCS-vsn: libexec/bugfiler/reply.c 5.4
-static char sccsid[] = "@(#)reply.c 5.3 (Berkeley) 87/07/20";
-#endif not lint
+static char sccsid[] = "@(#)reply.c 5.4 (Berkeley) 87/11/23";
+#endif /* !lint */
#include <bug.h>
#include <sys/file.h>
#include <bug.h>
#include <sys/file.h>
fputs("Precedence: bulk\n\n", pf); /* vacation(1) uses this... */
fflush(pf);
fputs("Precedence: bulk\n\n", pf); /* vacation(1) uses this... */
fflush(pf);
- if ((afd = open(ACK_FILE, O_RDONLY, 0)) >= 0) {
+ (void)sprintf(bfr, "%s/%s", dir, ACK_FILE);
+ if ((afd = open(bfr, O_RDONLY, 0)) >= 0) {
while ((rval = read(afd, bfr, sizeof(bfr))) != ERR && rval)
(void)write(fileno(pf), bfr, rval);
(void)close(afd);
while ((rval = read(afd, bfr, sizeof(bfr))) != ERR && rval)
(void)write(fileno(pf), bfr, rval);
(void)close(afd);