+2005-05-27 Erez Zadok <ezk@cs.sunysb.edu>
+
+ * configure.in: check for <linux/socket.h>, which, if found,
+ appears to be preferable to <sys/socket.h>. Use it to find
+ <linux/nfs_mount.h>. On some Linux systems
+ (Gentoo), both exist but only one must be included, or else you
+ get redefined structure errors.
+
+ * libamu/wire.c (is_network_member): check if masknum is
+ INADDR_NONE, not "< 0" because it's an unsigned quantity.
+
+ * libamu/util.c (xstrlcpy): remove useless test for size_t < 0,
+ because it's an unsigned quantity.
+
2005-05-26 Erez Zadok <ezk@cs.sunysb.edu>
*******************************************************************
+*** Notes specific to am-utils version 6.1-rc7
+
+XXX:
+
*** Notes specific to am-utils version 6.1-rc6
- minor new ports:
dnl UPDATE LIBAMU VERSION BEFORE OFFICIAL RELEASE!!!
dnl UPDATE LIBAMU VERSION BEFORE OFFICIAL RELEASE!!!
dnl UPDATE LIBAMU VERSION BEFORE OFFICIAL RELEASE!!!
-AC_INIT([am-utils],[6.1-rc6],[am-utils@am-utils.org])
+AC_INIT([am-utils],[6.1-rc7],[am-utils@am-utils.org])
dnl UPDATE LIBAMU VERSION BEFORE OFFICIAL RELEASE!!!
dnl UPDATE LIBAMU VERSION BEFORE OFFICIAL RELEASE!!!
dnl UPDATE LIBAMU VERSION BEFORE OFFICIAL RELEASE!!!
dnl
dnl AC_CONFIG_AUX_DIR(m4)
AC_PREREQ(2.52)
-AC_REVISION($Revision: 1.91 $)
+AC_REVISION($Revision: 1.92 $)
AC_COPYRIGHT([Copyright (c) 1997-2005 Erez Zadok])
dnl find out system type
AC_MSG_NOTICE(*** SYSTEM TYPES ***)
linux/nfs.h \
linux/nfs2.h \
linux/posix_types.h \
+ linux/socket.h \
machine/endian.h \
msdosfs/msdosfsmount.h \
net/errno.h \
linux/nfs_mount.h \
], [], [],
[
-#ifdef HAVE_SYS_SOCKET_H
-# include <sys/socket.h>
-#endif /* HAVE_SYS_SOCKET_H */
+#ifdef HAVE_LINUX_SOCKET_H
+# include <linux/socket.h>
+#endif /* HAVE_LINUX_SOCKET_H */
#ifdef HAVE_LIMITS_H
# include <limits.h>
#endif /* HAVE_LIMITS_H */
* SUCH DAMAGE.
*
*
- * $Id: strutil.c,v 1.17 2005/04/29 18:48:19 ezk Exp $
+ * $Id: strutil.c,v 1.18 2005/05/27 21:26:34 ezk Exp $
*
*/
void
xstrlcpy(char *dst, const char *src, size_t len)
{
- if (len < 0) {
- plog(XLOG_ERROR, "xstrlcpy: illegal len %lu", (u_long) len);
- return;
- }
if (len == 0)
return;
if (strlcpy(dst, src, len) >= len)
* SUCH DAMAGE.
*
*
- * $Id: wire.c,v 1.22 2005/02/17 03:37:42 ezk Exp $
+ * $Id: wire.c,v 1.23 2005/05/27 21:26:34 ezk Exp $
*
*/
/* check if netmask uses a dotted-quad or bit-length, or not defined at all */
if (maskstr) {
if (strchr(maskstr, '.')) {
+ /* XXX: inet_addr is obsolste, convert to inet_aton() */
masknum = inet_addr(maskstr);
- if (masknum < 0) /* can be invalid (-1) or all-1s */
+ if (masknum == INADDR_NONE) /* can be invalid (-1) or all-1s */
masknum = 0xffffffff;
} else if (NSTRCEQ(maskstr, "0x", 2)) {
masknum = strtoul(maskstr, NULL, 16);