* fsinfo/fsi_util.c (set_ether_if): use INADDR_NONE instead of
authorErez Zadok <ezk@cs.sunysb.edu>
Sat, 1 Oct 2005 05:43:38 +0000 (05:43 +0000)
committerErez Zadok <ezk@cs.sunysb.edu>
Sat, 1 Oct 2005 05:43:38 +0000 (05:43 +0000)
hard-coded value of -1.

* include/amq_defs.h (AMQ_STRLEN): increase default size from 2KB
to 16KB.  We can afford it these days.

* libamu/strcasecmp.c (strcasecmp): use unsigned chars in
tolower() to avoid sign/size promotion bugs.

* libamu/xutil.c (switch_to_logfile): don't output to LOG_CONS by
default (it's unfriendly).  If user really wants to, they can set
it in /etc/syslog.conf.

ChangeLog
NEWS
fsinfo/fsi_util.c
include/amq_defs.h
libamu/strcasecmp.c
libamu/xutil.c

index f4bcea5906082391618ae3cc56c921cb8393ba0d..5e728ca9209bd675e5d9f0e56f628305217a70d4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 
        * config.{guess,sub}: update to latest versions.
 
+2005-09-30  Christos Zoulas  <christos@zoulas.com>
+
+       * fsinfo/fsi_util.c (set_ether_if): use INADDR_NONE instead of
+       hard-coded value of -1.
+
+       * include/amq_defs.h (AMQ_STRLEN): increase default size from 2KB
+       to 16KB.  We can afford it these days.
+
+       * libamu/strcasecmp.c (strcasecmp): use unsigned chars in
+       tolower() to avoid sign/size promotion bugs.
+
+       * libamu/xutil.c (switch_to_logfile): don't output to LOG_CONS by
+       default (it's unfriendly).  If user really wants to, they can set
+       it in /etc/syslog.conf.
+
 2005-09-29  Erez Zadok  <ezk@cs.sunysb.edu>
 
        * amq/pawd.c (find_mt): if the auto mount type is used, pawd could
diff --git a/NEWS b/NEWS
index 3cd959226474ff9860809246f610ddfe54d646f7..85176fd22874ae96357d361bd0b4349164ae8206 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -31,6 +31,9 @@ detail in the README.attrcache file included with this distribution.
 Include test-attrcache script to test the NFS attribute cache behavior using
 Amd.
 
+Tell syslog not to log automatically to /dev/console; it's unfriendly.  If
+user really wants to, they can set it in /etc/syslog.conf.
+
 - minor new ports:
        i386-pc-linux-deb3.1
        i386-unknown-netbsdelf3.0 (BETA)
index 7d2d2b60d6cc1c43c253d4eacd65cfddd68edfdf..b701e38a4a52b4690e7fac29a668e2a8c5787e92 100644 (file)
@@ -451,7 +451,7 @@ set_ether_if(ether_if *ep, int k, char *v)
 
   case EF_INADDR:{
       ep->e_inaddr.s_addr = inet_addr(v);
-      if ((int) ep->e_inaddr.s_addr == -1)
+      if ((int) ep->e_inaddr.s_addr == INADDR_NONE)
        yyerror("malformed IP dotted quad: %s", v);
       XFREE(v);
     }
index c8c85aa2319a77c2431115b0dc91381fc8f98b7a..90c4d9b2d077a660ae4fd26962e8a0adbdb6476f 100644 (file)
@@ -50,7 +50,7 @@
 #ifndef AMQ_SIZE
 # define AMQ_SIZE 16384
 #endif /* not AMQ_SIZE */
-#define AMQ_STRLEN 2048
+#define AMQ_STRLEN 16384
 #define AMQ_PROGRAM ((u_long)300019)
 #define AMQ_VERSION ((u_long)1)
 #define AMQPROC_NULL ((u_long)0)
index 61d17d6ab4cffb0568655d38971f6cbfeb7b47dd..6371b71b97d8a16722d2f83e8429b5629272d294 100644 (file)
@@ -53,8 +53,8 @@
 int
 strcasecmp(const char *s1, const char *s2)
 {
-  const char *cp1 = s1;
-  const char *cp2 = s2;
+  const unsigned char *cp1 = (const unsigned char *)s1;
+  const unsigned char *cp2 = (const unsigned char *)s2;
 
   while (tolower(*cp1) == tolower(*cp2++))
     if (*cp1++ == '\0')
index 17cdf5f3505f31fa4b25dbced71978113d69ccdc..46fba74b19e654e5540e8dff6e12ceeb0dc2b983 100644 (file)
@@ -802,9 +802,6 @@ switch_to_logfile(char *logfile, int old_umask, int truncate_log)
       new_logfp = stderr;
       openlog(am_get_progname(),
              LOG_PID
-# ifdef LOG_CONS
-             | LOG_CONS
-# endif /* LOG_CONS */
 # ifdef LOG_NOWAIT
              | LOG_NOWAIT
 # endif /* LOG_NOWAIT */