Changeset 293
- Timestamp:
- Sep 23, 2010, 6:05:38 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r292 r293 12 12 dnl start 13 13 dnl 14 AM_INIT_AUTOMAKE(samhain, 2.7.2 b)14 AM_INIT_AUTOMAKE(samhain, 2.7.2c) 15 15 AC_DEFINE([SAMHAIN], 1, [Application is samhain]) 16 16 AC_CANONICAL_HOST -
trunk/docs/Changelog
r292 r293 1 2.7.2c: 2 * Fix uppercase hostname problem in client/server communication 3 1 4 2.7.2b: 2 5 * Fix compile errors on Solaris 10 (reported by A. Saheba) -
trunk/src/sh_unix.c
r290 r293 1559 1559 /* Get the local hostname (FQDN) 1560 1560 */ 1561 static char * sh_tolower (char * s) 1562 { 1563 char * ret = s; 1564 if (s) 1565 { 1566 for (; *s; ++s) 1567 { 1568 *s = tolower((unsigned char) *s); 1569 } 1570 } 1571 return ret; 1572 } 1573 1574 1561 1575 #include <sys/socket.h> 1562 1576 … … 1648 1662 { 1649 1663 sl_strlcpy (sh.host.name, sh_unix_h_name(he1), SH_PATHBUF); 1664 sh_tolower (sh.host.name); 1650 1665 } 1651 1666 SH_MUTEX_UNLOCK(mutex_resolv); … … 1657 1672 hostname); 1658 1673 sl_strlcpy (sh.host.name, hostname, SH_PATHBUF); 1674 sh_tolower (sh.host.name); 1659 1675 } 1660 1676 … … 1727 1743 { 1728 1744 sl_strlcpy (sh.host.name, sh_unix_h_name(he1), SH_PATHBUF); 1745 sh_tolower (sh.host.name); 1729 1746 } 1730 1747 SH_MUTEX_UNLOCK(mutex_resolv); -
trunk/src/sh_utils.c
r290 r293 796 796 SL_RETURN( 0, _("sh_util_sigtype")); 797 797 } 798 798 799 799 800 char * sh_util_siggen (char * hexkey,
Note:
See TracChangeset
for help on using the changeset viewer.