diff options
author | Max Kalika <max@gentoo.org> | 2004-01-20 18:09:28 +0000 |
---|---|---|
committer | Max Kalika <max@gentoo.org> | 2004-01-20 18:09:28 +0000 |
commit | 73af0d5ec9712bf9ccda82db5e3e0f6bb8b313bf (patch) | |
tree | ecb55b99c833e156595f16c019981876ac7b0c92 /net-mail/cyrus-imapd | |
parent | stable on sparc (diff) | |
download | gentoo-2-73af0d5ec9712bf9ccda82db5e3e0f6bb8b313bf.tar.gz gentoo-2-73af0d5ec9712bf9ccda82db5e3e0f6bb8b313bf.tar.bz2 gentoo-2-73af0d5ec9712bf9ccda82db5e3e0f6bb8b313bf.zip |
Remove some stale files.
Diffstat (limited to 'net-mail/cyrus-imapd')
-rw-r--r-- | net-mail/cyrus-imapd/cyrus-imapd-2.1.11-r1.ebuild | 202 | ||||
-rw-r--r-- | net-mail/cyrus-imapd/files/configure.diff | 180 | ||||
-rw-r--r-- | net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.1.11-r1 | 1 | ||||
-rw-r--r-- | net-mail/cyrus-imapd/files/imap-overflow.diff | 29 | ||||
-rw-r--r-- | net-mail/cyrus-imapd/files/libsieve-overflow.diff | 53 |
5 files changed, 0 insertions, 465 deletions
diff --git a/net-mail/cyrus-imapd/cyrus-imapd-2.1.11-r1.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-2.1.11-r1.ebuild deleted file mode 100644 index 301e1f04a70e..000000000000 --- a/net-mail/cyrus-imapd/cyrus-imapd-2.1.11-r1.ebuild +++ /dev/null @@ -1,202 +0,0 @@ -# Copyright 1999-2004 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/cyrus-imapd-2.1.11-r1.ebuild,v 1.6 2004/01/20 18:00:43 max Exp $ - -DESCRIPTION="The Cyrus IMAP Server" -HOMEPAGE="http://asg.web.cmu.edu/cyrus/imapd/" -SRC_URI="ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/OLD-VERSIONS/imap/${P}.tar.gz" -LICENSE="as-is" -SLOT="0" -KEYWORDS="x86 -ppc -sparc " -PROVIDE="virtual/imapd" -DEPEND="virtual/glibc - afs? ( >=net-fs/openafs-1.2.2 ) - snmp? ( >=net-analyzer/ucd-snmp-4.2.3 ) - ssl? ( >=dev-libs/openssl-0.9.6 ) - kerberos? ( >=app-crypt/kth-krb-1.2 ) - >=sys-libs/db-3.2 - >=sys-libs/pam-0.75 - >=dev-libs/cyrus-sasl-2.1.2 - >=sys-apps/tcp-wrappers-7.6 - net-mail/mailbase" - -pkg_setup() { - if ! grep -q ^cyrus: /etc/passwd ; then - useradd -c cyrus -d /usr/cyrus -g mail -s /bin/false -u 96 cyrus \ - || die "problem adding user cyrus" - fi -} - -src_unpack() { - - unpack ${A} - cd ${S} - patch -p1 < ${FILESDIR}/configure.diff || die "patch failed" - -} - -src_compile() { - local myconf - - use afs && myconf="--with-afs" \ - || myconf="--without-afs" - - use snmp && myconf="${myconf} --with-ucdsnmp=/usr" \ - || myconf="${myconf} --without-ucdsnmp" - - use ssl && myconf="${myconf} --with-openssl=/usr" \ - || myconf="${myconf} --without-openssl" - - use kerberos && myconf="${myconf} --with-krb=/usr/athena --with-auth=krb --enable-gssapi" \ - || myconf="${myconf} --without-krb --with-auth=unix --disable-gssapi" - - econf \ - --enable-listext \ - --with-cyrus-group=mail \ - --enable-netscapehack \ - --with-com_err=yes \ - --without-perl \ - --disable-cyradm \ - --with-libwrap=/usr \ - ${myconf} - - # make depends break with -f... in CFLAGS - make depend CFLAGS="" || die "make depend problem" - - make || die "compile problem" -} - -src_install() { - make DESTDIR=${D} install || die - - # Remove the developer stuff (-> dev-libs/cyrus-imap-devel) - rm -rf ${D}usr/include ${D}usr/lib - - # Rename the master from cyrus to cyrusmaster (postfix has a master too) - mv ${D}usr/cyrus/bin/master ${D}usr/cyrus/bin/cyrusmaster - - # Fix manpage stuff - rm -rf ${D}usr/man - - # master is renamed to cyrusmaster because postfix has a master too - mv man/master.8 man/cyrusmaster.8 - patch man/cyrusmaster.8 ${FILESDIR}/master.8.diff || die "error patching master.8" - - doman man/*.? - - # remove man-pages from packet net-mail/cyrus-imapd-admin - rm ${D}usr/share/man/man1/installsieve.1.gz ${D}usr/share/man/man1/sieveshell.1.gz - - dodir /etc - cp ${FILESDIR}/imapd_2.conf ${D}etc/imapd.conf - cp ${FILESDIR}/cyrus_2.conf ${D}etc/cyrus.conf - dodir /etc/pam.d - cp ${FILESDIR}/pam.d-imap ${D}etc/pam.d/imap - - dodir /var - mkdir -m 0750 ${D}var/imap - chown -R cyrus:mail ${D}var/imap - keepdir /var/imap - mkdir -m 0755 ${D}var/imap/db - chown -R cyrus:mail ${D}var/imap/db - keepdir /var/imap/db - mkdir -m 0755 ${D}var/imap/log - chown -R cyrus:mail ${D}var/imap/log - keepdir /var/imap/log - mkdir -m 0755 ${D}var/imap/msg - chown -R cyrus:mail ${D}var/imap/msg - keepdir /var/imap/msg - mkdir -m 0755 ${D}var/imap/user - chown -R cyrus:mail ${D}var/imap/user - keepdir /var/imap/user - for i in a b c d e f g h i j k l m n o p q r s t u v w x y z ; do mkdir -m 0755 ${D}var/imap/user/$i ; \ - chown -R cyrus:mail ${D}var/imap/user/$i - keepdir /var/imap/user/$i - done - mkdir -m 0755 ${D}var/imap/proc - chown -R cyrus:mail ${D}var/imap/proc - keepdir /var/imap/proc - mkdir -m 0755 ${D}var/imap/quota - for i in a b c d e f g h i j k l m n o p q r s t u v w x y z ; do mkdir -m 0755 ${D}var/imap/quota/$i ; \ - chown -R cyrus:mail ${D}var/imap/quota/$i - keepdir /var/imap/quota/$i - done - mkdir -m 0755 ${D}var/imap/sieve - chown -R cyrus:mail ${D}var/imap/sieve - for i in a b c d e f g h i j k l m n o p q r s t u v w x y z ; do mkdir -m 0755 ${D}var/imap/sieve/$i ; \ - chown -R cyrus:mail ${D}var/imap/sieve/$i - keepdir /var/imap/sieve/$i - done - mkdir -m 0755 ${D}var/imap/socket - chown -R cyrus:mail ${D}var/imap/socket - keepdir /var/imap/socket - mkdir ${D}var/spool - mkdir -m 0750 ${D}var/spool/imap - chown -R cyrus:mail ${D}var/spool/imap - keepdir /var/spool/imap - mkdir -m 0755 ${D}var/spool/imap/stage. - chown -R cyrus:mail ${D}var/spool/imap/stage. - keepdir /var/spool/imap/stage. - # For hashimapspool - for i in a b c d e f g h i j k l m n o p q r s t u v w x y z ; do mkdir -m 0755 ${D}var/spool/imap/$i ; \ - chown -R cyrus:mail ${D}var/spool/imap/$i - keepdir /var/spool/imap/$i - done - - dodoc COPYRIGHT README* - dohtml doc/*.html doc/murder.png - cp doc/cyrusv2.mc ${D}usr/share/doc/${PF}/html - cp -r contrib tools ${D}usr/share/doc/${PF} - - # Remove the CVS directories - find 2>/dev/null ${D}usr/share/doc/ -type d -name CVS -exec rm -rf '{}' \; - - exeinto /etc/init.d ; newexe ${FILESDIR}/cyrus.rc6_2 cyrus - - if [ "'use ssl'" ]; then - # from mod_ssl - echo "Generating self-signed test certificate" - echo "(Ignore any message from the yes command below)" - mkdir certs - cd certs - yes "" | ${FILESDIR}/gentestcrt.sh >/dev/null 2>&1 - mkdir ${D}etc/cyrusimapd - cp server.crt server.key ${D}etc/cyrusimapd - chown cyrus:root ${D}etc/cyrusimapd/server.crt ${D}etc/cyrusimapd/server.key - chmod 0400 ${D}etc/cyrusimapd/server.crt ${D}etc/cyrusimapd/server.key - fi -} - -pkg_postinst() { - ewarn "If you change the fs-type of /var/imap or" - ewarn "/var/spool/imap you should read step 9 of" - ewarn "/usr/share/doc/${P}/html/install-configure.html." - echo "" - - if df -T /var/imap | grep -q ' ext[23] ' ; then - ewarn "Setting /var/imap/user/* and /var/imap/quota/* to synchronous" - ewarn "updates." - chattr +S /var/imap/user /var/imap/user/* /var/imap/quota /var/imap/quota/* - echo "" - fi - - if df -T /var/spool/imap | grep -q ' ext[23] ' ; then - ewarn "Setting /var/spool/imap/* to synchronous updates." - chattr +S /var/spool/imap /var/spool/imap/* - echo "" - fi - - ewarn "If the queue directory of the mail daemon resides on an ext2" - ewarn "or ext3 partition you need to set it manually to update" - ewarn "synchronously. E.g. 'chattr +S /var/spool/mqueue'." - echo "" - - einfo "For correct logging with syslog add" - einfo "\tlocal6.* /var/log/imapd.log" - einfo "\tauth.debug /var/log/auth.log" - einfo "to /etc/syslog.conf." - echo "" - - ewarn "You have to add user cyrus to the sasldb2. Do this with:" - ewarn "\tsaslpasswd2 cyrus" -} diff --git a/net-mail/cyrus-imapd/files/configure.diff b/net-mail/cyrus-imapd/files/configure.diff deleted file mode 100644 index e7cb5757c64a..000000000000 --- a/net-mail/cyrus-imapd/files/configure.diff +++ /dev/null @@ -1,180 +0,0 @@ -diff -urN cyrus-imapd-2.1.11/configure cyrus-imapd-2.1.11-modified/configure ---- cyrus-imapd-2.1.11/configure 2002-12-04 10:18:28.000000000 -0600 -+++ cyrus-imapd-2.1.11-modified/configure 2002-12-04 16:49:23.000000000 -0600 -@@ -1493,10 +1493,10 @@ - CFLAGS="-Wall ${CFLAGS}" - GCC_VERSION=`$CC -v 2>&1 | sed -n -e '/version/s/.*version \([0-9]\)\..*/\1/p'` - if test "$GCC_VERSION" != "3"; then -- CPPFLAGS="${CPPFLAGS} -I/usr/local/include" -+ CPPFLAGS="${CPPFLAGS}" - fi - else -- CPPFLAGS="${CPPFLAGS} -I/usr/local/include" -+ CPPFLAGS="${CPPFLAGS}" - fi - - # this is CMU ADD LIBPATH -@@ -1962,7 +1962,7 @@ - if test -d $withval/include/db3; then - CPPFLAGS="-I$withval/include/db3 $CPPFLAGS" - else -- CPPFLAGS="-I$withval/include $CPPFLAGS" -+ CPPFLAGS="$CPPFLAGS" - fi - else - # otherwise, check for ../include/db3 -@@ -3571,7 +3571,7 @@ - if test "${with_afs+set}" = set; then - withval="$with_afs" - with_afs="${withval}" -- CFLAGS="${CFLAGS} -I${withval}/include" -+ CFLAGS="${CFLAGS}" - else - with_afs="/usr/local" - fi -@@ -3783,14 +3783,14 @@ - { echo "configure: error: --enable-statickrb specified but --with-krb did not specify a valid directory" 1>&2; exit 1; } - fi - -- echo $ac_n "checking for des_ecb_encrypt in -ldes""... $ac_c" 1>&6 --echo "configure:3788: checking for des_ecb_encrypt in -ldes" >&5 -+ echo $ac_n "checking for des_ecb_encrypt in -ldes425""... $ac_c" 1>&6 -+echo "configure:3788: checking for des_ecb_encrypt in -ldes425" >&5 - ac_lib_var=`echo des'_'des_ecb_encrypt | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" --LIBS="-ldes $LIBS" -+LIBS="-ldes425 $LIBS" - cat > conftest.$ac_ext <<EOF - #line 3796 "configure" - #include "confdefs.h" -@@ -3821,7 +3821,7 @@ - if test "$with_statickrb" = "yes"; then - KRB_LIBS="$with_krb/lib/libdes.a" - else -- KRB_LIBS="-ldes" -+ KRB_LIBS="-ldes425" - fi - else - echo "$ac_t""no" 1>&6 -@@ -4091,8 +4091,8 @@ - - - ;; -- *) OPENSSL_INC="-I${with_openssl}/include" -- OPENSSL_LIB="-L${with_openssl}/lib" -+ *) OPENSSL_INC="" -+ OPENSSL_LIB="" - CPPFLAGS="${CPPFLAGS} ${OPENSSL_INC}" - LDFLAGS="${LDFLAGS} ${OPENSSL_LIB}" - LIBS="${LIBS} -lssl -lcrypto";; -@@ -4187,7 +4187,7 @@ - *) if test -d ${with_zephyr}/include/zephyr; then - ZEPHYR_CPPFLAGS="-I${with_zephyr}/include/zephyr" - else -- ZEPHYR_CPPFLAGS="-I${with_zephyr}/include" -+ ZEPHYR_CPPFLAGS="" - fi - ZEPHYR_LIBS="-lzephyr";; - esac -@@ -4428,10 +4428,10 @@ - *) # use whatever they told us, or whatever we found - COMPILE_ET="${with_com_err}/bin/compile_et" - COM_ERR_LIBS="${with_com_err}/lib/libcom_err.a" -- COM_ERR_CPPFLAGS="-I${with_com_err}/include" -+ COM_ERR_CPPFLAGS="" - # Ever get the feeling people hide this stuff on purpose? - if test -d "${with_com_err}/include/et" ; then -- COM_ERR_CPPFLAGS="-I${with_com_err}/include" -+ COM_ERR_CPPFLAGS="" - fi - COMPILE_ET="${with_com_err}/bin/compile_et" - esac -@@ -5035,7 +5035,7 @@ - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" --LIBS="-lgssapi $GSSAPIBASE_LIBS -lgssapi -lkrb5 -ldes -lasn1 -lroken ${LIB_CRYPT} -lcom_err $LIBS" -+LIBS="-lgssapi $GSSAPIBASE_LIBS -lgssapi -lkrb5 -ldes425 -lasn1 -lroken ${LIB_CRYPT} -lcom_err $LIBS" - cat > conftest.$ac_ext <<EOF - #line 5041 "configure" - #include "confdefs.h" -@@ -5073,7 +5073,7 @@ - GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" - GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a" - elif test "$gss_impl" = "heimdal"; then -- GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -ldes -lasn1 -lroken ${LIB_CRYPT} -lcom_err" -+ GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -ldes425 -lasn1 -lroken ${LIB_CRYPT} -lcom_err" - GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_STATIC_LIBS $gssapi_dir/libgssapi.a $gssapi_dir/libkrb5.a $gssapi_dir/libdes.a $gssapi_dir/libasn1.a $gssapi_dir/libroken.a $gssapi_dir/libcom_err.a ${LIB_CRYPT}" - else - gssapi="no" -@@ -5235,7 +5235,7 @@ - ac_cv_sasl_where_lib=${with_sasl}/lib - ac_cv_sasl_where_inc=${with_sasl}/include - -- DYNSASLFLAGS="-I$ac_cv_sasl_where_inc" -+ DYNSASLFLAGS="" - if test "$ac_cv_sasl_where_lib" != ""; then - - # this is CMU ADD LIBPATH TO -@@ -5247,7 +5247,7 @@ - - fi - LIB_DYN_SASL="$LIB_DYN_SASL -lsasl2" -- CPPFLAGS="${cmu_saved_CPPFLAGS} -I${ac_cv_sasl_where_inc}" -+ CPPFLAGS="${cmu_saved_CPPFLAGS}" - LDFLAGS="${cmu_saved_LDFLAGS} -L${ac_cv_sasl_where_lib}" - fi - -@@ -5909,7 +5909,7 @@ - - if test "$with_libwrap" != no; then - if test -d "$with_libwrap"; then -- CPPFLAGS="$CPPFLAGS -I${with_libwrap}/include" -+ CPPFLAGS="$CPPFLAGS" - LDFLAGS="$LDFLAGS -L${with_libwrap}/lib" - fi - cmu_save_LIBS="$LIBS" -@@ -6055,7 +6055,7 @@ - - if test "$with_ucdsnmp" != no; then - if test -d "$with_ucdsnmp"; then -- CPPFLAGS="$CPPFLAGS -I${with_ucdsnmp}/include" -+ CPPFLAGS="$CPPFLAGS" - LDFLAGS="$LDFLAGS -L${with_ucdsnmp}/lib" - fi - cmu_save_LIBS="$LIBS" -@@ -6153,7 +6153,7 @@ - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" --LIBS="-lrpm -lpopt $LIBS" -+LIBS="-lrpm -lpopt -lrpmdb -lrpmio $LIBS" - cat > conftest.$ac_ext <<EOF - #line 6159 "configure" - #include "confdefs.h" -@@ -6181,7 +6181,7 @@ - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 -- LIB_UCDSNMP="${LIB_UCDSNMP} -lrpm -lpopt" -+ LIB_UCDSNMP="${LIB_UCDSNMP} -lrpm -lrpmdb -lrpmio -lpopt" - else - echo "$ac_t""no" 1>&6 - fi -diff -urN cyrus-imapd-2.1.11/master/master.c cyrus-imapd-2.1.11-modified/master/master.c ---- cyrus-imapd-2.1.11/master/master.c 2002-11-01 10:44:33.000000000 -0600 -+++ cyrus-imapd-2.1.11-modified/master/master.c 2002-12-07 18:21:41.000000000 -0600 -@@ -103,6 +103,10 @@ - static int verbose = 0; - static int listen_queue_backlog = 32; - -+int allow_severity = LOG_DEBUG; -+int deny_severity = LOG_ERR; -+int hosts_ctl; -+ - struct service *Services = NULL; - int allocservices = 0; - int nservices = 0; diff --git a/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.1.11-r1 b/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.1.11-r1 deleted file mode 100644 index b65aec333d9e..000000000000 --- a/net-mail/cyrus-imapd/files/digest-cyrus-imapd-2.1.11-r1 +++ /dev/null @@ -1 +0,0 @@ -MD5 5742500ce1f6c655d1a49273d8b46261 cyrus-imapd-2.1.11.tar.gz 1646196 diff --git a/net-mail/cyrus-imapd/files/imap-overflow.diff b/net-mail/cyrus-imapd/files/imap-overflow.diff deleted file mode 100644 index c6ee0cac3864..000000000000 --- a/net-mail/cyrus-imapd/files/imap-overflow.diff +++ /dev/null @@ -1,29 +0,0 @@ -diff -urN cyrus-imapd-2.1.10/imap/imapparse.c cyrus-imapd-2.1.10-modified/imap/imapparse.c ---- cyrus-imapd-2.1.10/imap/imapparse.c 2002-12-03 17:08:02.000000000 -0600 -+++ cyrus-imapd-2.1.10-modified/imap/imapparse.c 2002-12-03 17:45:52.000000000 -0600 -@@ -97,7 +97,7 @@ - struct buf *buf, int type) - { - int c; -- int i; -+ unsigned int i; - unsigned int len = 0; - int sawdigit = 0; - int isnowait; -@@ -228,6 +228,16 @@ - if (c != EOF) prot_ungetc(c, pin); - return EOF; - } -+ if (len > 65536) { -+ if (isnowait) { -+ for (i = 0; i < len; i++) -+ c = prot_getc(pin); -+ } -+ prot_printf(pout, "* BAD Literal too large\r\n"); -+ prot_flush(pout); -+ if (c != EOF) prot_ungetc(c, pin); -+ return EOF; -+ } - if (len >= buf->alloc) { - buf->alloc = len+1; - buf->s = xrealloc(buf->s, buf->alloc+1); diff --git a/net-mail/cyrus-imapd/files/libsieve-overflow.diff b/net-mail/cyrus-imapd/files/libsieve-overflow.diff deleted file mode 100644 index 6878a3074192..000000000000 --- a/net-mail/cyrus-imapd/files/libsieve-overflow.diff +++ /dev/null @@ -1,53 +0,0 @@ -diff -urN cyrus-imapd-2.1.10/sieve/addr.y cyrus-imapd-2.1.10-modified/sieve/addr.y ---- cyrus-imapd-2.1.10/sieve/addr.y 2002-12-03 17:08:02.000000000 -0600 -+++ cyrus-imapd-2.1.10-modified/sieve/addr.y 2002-12-03 17:06:38.000000000 -0600 -@@ -82,8 +82,9 @@ - /* copy address error message into buffer provided by sieve parser */ - int yyerror(char *s) - { --extern char addrerr[]; -+extern char addrerr[512]; - -- strcpy(addrerr, s); -+ strncpy(addrerr, s, sizeof(addrerr)-1); -+ addrerr[sizeof(addrerr)-1] = '\0'; - return 0; - } -diff -urN cyrus-imapd-2.1.10/sieve/sieve.y cyrus-imapd-2.1.10-modified/sieve/sieve.y ---- cyrus-imapd-2.1.10/sieve/sieve.y 2002-12-03 17:08:02.000000000 -0600 -+++ cyrus-imapd-2.1.10-modified/sieve/sieve.y 2002-12-03 17:06:38.000000000 -0600 -@@ -810,7 +810,7 @@ - addrptr = s; - addrerr[0] = '\0'; /* paranoia */ - if (addrparse()) { -- sprintf(errbuf, "address '%s': %s", s, addrerr); -+ snprintf(errbuf, sizeof(errbuf), "address '%s': %s", s, addrerr); - yyerror(errbuf); - return 0; - } -@@ -835,7 +835,7 @@ - ; controls, SP, and - ; ":". */ - if (!((*h >= 33 && *h <= 57) || (*h >= 59 && *h <= 126))) { -- sprintf(errbuf, "header '%s': not a valid header", hdr); -+ snprintf(errbuf, sizeof(errbuf), "header '%s': not a valid header", hdr); - yyerror(errbuf); - return 0; - } -@@ -853,14 +853,14 @@ - if (strcmp(f, "\\seen") && strcmp(f, "\\answered") && - strcmp(f, "\\flagged") && strcmp(f, "\\draft") && - strcmp(f, "\\deleted")) { -- sprintf(errbuf, "flag '%s': not a system flag", f); -+ snprintf(errbuf, sizeof(errbuf), "flag '%s': not a system flag", f); - yyerror(errbuf); - return 0; - } - return 1; - } - if (!imparse_isatom(f)) { -- sprintf(errbuf, "flag '%s': not a valid keyword", f); -+ snprintf(errbuf, sizeof(errbuf), "flag '%s': not a valid keyword", f); - yyerror(errbuf); - return 0; - } |