On Fri, Jan 07, 2000 at 08:32:19AM +0000, Brian Somers wrote:
> Anyone know what's changed with `calendar' ?  I suspect it's the 
> recent cpp changes.

Please test this patch.


Index: io.c
===================================================================
RCS file: /home/ncvs/src/usr.bin/calendar/io.c,v
retrieving revision 1.12
diff -u -r1.12 io.c
--- io.c        1999/08/28 00:59:17     1.12
+++ io.c        2000/01/08 18:22:00
@@ -274,7 +274,8 @@
                        warnx("setuid failed");
                        _exit(1);
                }
-               execl(_PATH_CPP, "cpp", "-P", "-I.", _PATH_INCLUDE, NULL);
+               execl(_PATH_CPP, "cpp", "-traditional", "-P","-nostdinc",
+                   "-I.", _PATH_INCLUDE, NULL);
                warn(_PATH_CPP);
                _exit(1);
        }
Index: pathnames.h
===================================================================
RCS file: /home/ncvs/src/usr.bin/calendar/pathnames.h,v
retrieving revision 1.2
diff -u -r1.2 pathnames.h
--- pathnames.h 1996/02/02 06:02:41     1.2
+++ pathnames.h 2000/01/08 18:21:01
@@ -35,7 +35,7 @@
 
 #include <paths.h>
 
-#define        _PATH_CPP       "/usr/bin/cpp"
+#define        _PATH_CPP       "/usr/libexec/cpp"
 
                        /* XXX -- fix when cpp parses arguments rationally */
 #define        _PATH_INCLUDE   "-I/usr/share/calendar"


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to