<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>124260</bug_id>
          
          <creation_ts>2006-02-27 06:32 0000</creation_ts>
          <short_desc>dev-util/cvs: gnulib&apos;s openat.c file has bad code when accessing mode_t vararg</short_desc>
          <delta_ts>2006-04-12 10:50:28 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo/Alt</product>
          <component>Other</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>FreeBSD</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>flameeyes@gentoo.org</reporter>
          <assigned_to>cvs-utils@gentoo.org</assigned_to>
          <cc>bsd@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2006-02-27 06:32:51 0000</bug_when>
            <thetext>cvs is using an old version of gnulib&apos;s openat.c unit which contains an openat() replacement. Unfortunately that version of openat.c contains bad code when trying to access mode_t through vararg; it does only produce a warning, but if the execution reach that code, the program aborts (as told by the warning itself).
The attached patch replaces the bad code with the updated one in recent openat.c unit files (the unit is way different but this patch should be enough). Current CVS version of cvs already has openat.c updated from gnulib.

Thanks,
Diego</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2006-02-27 06:33:21 0000</bug_when>
            <thetext>Created an attachment (id=80835)
cvs-1.12.12-mode_t.patch

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pylon@gentoo.org</who>
            <bug_when>2006-03-01 08:03:20 0000</bug_when>
            <thetext>Fixed in cvs-1.12.12-r3.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>80835</attachid>
            <date>2006-02-27 06:33 0000</date>
            <desc>cvs-1.12.12-mode_t.patch</desc>
            <filename>cvs-1.12.12-mode_t.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">SW5kZXg6IGN2cy0xLjEyLjEyL2xpYi9vcGVuYXQuYwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBjdnMtMS4xMi4x
Mi5vcmlnL2xpYi9vcGVuYXQuYworKysgY3ZzLTEuMTIuMTIvbGliL29wZW5hdC5jCkBAIC01NSw5
ICs1NSwxMyBAQCBycGxfb3BlbmF0IChpbnQgZmQsIGNoYXIgY29uc3QgKmZpbGVuYW1lCiAgICAg
ICB2YV9saXN0IGFyZzsKICAgICAgIHZhX3N0YXJ0IChhcmcsIGZsYWdzKTsKIAotICAgICAgLyog
QXNzdW1lIHRoYXQgbW9kZV90IGlzIHBhc3NlZCBjb21wYXRpYmx5IHdpdGggbW9kZV90J3MgdHlw
ZQotCSBhZnRlciBhcmd1bWVudCBwcm9tb3Rpb24uICAqLwotICAgICAgbW9kZSA9IHZhX2FyZyAo
YXJnLCBtb2RlX3QpOworICAgICAgLyogSWYgbW9kZV90IGlzIG5hcnJvd2VyIHRoYW4gaW50LCB1
c2UgdGhlIHByb21vdGVkIHR5cGUgKGludCksCisgICAgICAgICBub3QgbW9kZV90LiAgVXNlIHNp
emVvZiB0byBndWVzcyB3aGV0aGVyIG1vZGVfdCBpcyBuZXJyb3dlcjsKKyAgICAgICAgIHdlIGRv
bid0IGtub3cgb2YgYW55IHByYWN0aWNhbCBjb3VudGVyZXhhbXBsZXMuICAqLworICAgICAgaWYg
KHNpemVvZiAobW9kZV90KSA8IHNpemVvZiAoaW50KSkKKwltb2RlID0gdmFfYXJnIChhcmcsIGlu
dCk7CisgICAgICBlbHNlCisJbW9kZSA9IHZhX2FyZyAoYXJnLCBtb2RlX3QpOwogCiAgICAgICB2
YV9lbmQgKGFyZyk7CiAgICAgfQo=
</data>        

          </attachment>
    </bug>

</bugzilla>