systems don't support it. Bug fix for solaris.
* amd/opts.c (expand_op): Don't call xstrlcpy() to truncate a
string. It causes spurious xstrlcpy() syslog() errors. Use
memcpy() and explicitly terminate the string.
+2007-04-13 Erez Zadok <ezk@cs.sunysb.edu>
+
+ * config.guess.long: don't use -q option to grep because some
+ systems don't support it. Bug fix for solaris.
+
+2007-03-11 Christos Zoulas <christos@zoulas.com>
+
+ * amd/opts.c (expand_op): Don't call xstrlcpy() to truncate a
+ string. It causes spurious xstrlcpy() syslog() errors. Use
+ memcpy() and explicitly terminate the string.
+
2007-01-20 Erez Zadok <ezk@cs.sunysb.edu>
* updated copyright year to 2007 on all files.
ia64-hp-hpux11.23 (gcc and cc)
powerpc-apple-darwin8.7.0
+- Bugs fixed:
+ * reduce annoying warnings from xstrlcpy when expanding options.
+
*** Notes specific to am-utils version 6.1.5
New amd.conf global parameter: nfs_allow_any_interface. By default it is
}
if (BUFSPACE(ep, vlen+1)) {
- xstrlcpy(ep, vptr, vlen+1);
+ /*
+ * Don't call xstrlcpy() to truncate a string here. It causes
+ * spurious xstrlcpy() syslog() errors. Use memcpy() and
+ * explicitly terminate the string.
+ */
+ memcpy(ep, vptr, vlen+1);
ep += vlen;
+ *ep = '\0';
} else {
plog(XLOG_ERROR, EXPAND_ERROR, opt);
goto out;
GCONFIG=`echo ${GCONFIG} | sed -e 's/i.86/i386/' -e 's/linux-gnu/linux/'`
if test -f /etc/redhat-release ; then
long=`getver /etc/redhat-release`
- if grep -q 'Red Hat Enterprise Linux' /etc/redhat-release; then
+ if grep 'Red Hat Enterprise Linux' /etc/redhat-release > /dev/null 2>&1 ; then
echo ${GCONFIG}-rhel${long}
- elif grep -q 'Fedora Core' /etc/redhat-release; then
+ elif grep 'Fedora Core' /etc/redhat-release > /dev/null 2>&1 ; then
echo ${GCONFIG}-fc${long}
- elif grep -q 'CentOS' /etc/redhat-release; then
+ elif grep 'CentOS' /etc/redhat-release > /dev/null 2>&1 ; then
echo ${GCONFIG}-centos${long}
else
echo ${GCONFIG}-rh${long}
exit 0
elif test -f /etc/SuSE-release ; then
long=`getver /etc/SuSE-release`
- if grep -q 'Enterprise Server' /etc/SuSE-release; then
+ if grep 'Enterprise Server' /etc/SuSE-release > /dev/null 2>&1 ; then
echo ${GCONFIG}-sles${long}
else
echo ${GCONFIG}-suse${long}
;;
*solaris* )
- if grep -qi nexentaos /etc/release ; then
+ if grep -i nexentaos /etc/release > /dev/null 2>&1 ; then
echo ${GCONFIG}-nexentaos
+ else
+ echo ${GCONFIG}
fi
;;
* )