move acknowledgement file into folder directory
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 24 Nov 1987 02:44:43 +0000 (18:44 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 24 Nov 1987 02:44:43 +0000 (18:44 -0800)
SCCS-vsn: libexec/bugfiler/reply.c 5.4

usr/src/libexec/bugfiler/reply.c

index 52ad46d..74218b7 100644 (file)
@@ -5,8 +5,8 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-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>
@@ -67,7 +67,8 @@ gotone:       if (to = index(C, '<'))
        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);