+2007-04-13 Erez Zadok <ezk@cs.sunysb.edu>
+
+ * amd/sun_map.c (sun_append_str): When translating '&' from Sun
+ automounter maps, replace it with "${key}" in the Amd map, not
+ with the value of the key at the time. This way '*' maps work
+ too.
+
+ * 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.
+ * translate '*' Sun maps correctly with "${key}"
*** Notes specific to am-utils version 6.2a2
}
if (BUFSPACE(ep, 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';
* with a new string, one or more key subs. where replaced with the
* entry key.
*/
- if ((sub = sun_strsub(str, SUN_KEY_SUB, key)) != NULL) {
+ if ((sub = sun_strsub(str, SUN_KEY_SUB, "${key}")) != NULL) {
out = sub;
/*
* Try to convert any variable substitutions. If this function
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
;;
* )