<?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>187219</bug_id>
          
          <creation_ts>2007-07-31 09:29 0000</creation_ts>
          <short_desc>net-analyzer/nessus-bin version 3.2.0 has been released</short_desc>
          <delta_ts>2008-05-15 01:50:57 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>189879</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>paternotte@fox-it.com</reporter>
          <assigned_to>netmon@gentoo.org</assigned_to>
          <cc>anton.bugs@gmail.com</cc>
    
    <cc>mail.pandor@gmail.com</cc>
    
    <cc>mkrainer@gmail.com</cc>
    
    <cc>trickie@gmail.com</cc>
    
    <cc>vladimir@greenmice.info</cc>

      

      
          <long_desc isprivate="0">
            <who>paternotte@fox-it.com</who>
            <bug_when>2007-07-31 09:29:55 0000</bug_when>
            <thetext>Version 3.0.6 of nessus has been released.

Reproducible: Always

Steps to Reproduce:
1.check version of nessus available in gentoo

Actual Results:  
3.0.5

Expected Results:  
3.0.6</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>trickie@gmail.com</who>
            <bug_when>2007-11-07 09:32:25 0000</bug_when>
            <thetext>Hello, I have been using nessus-bin 3.0.6 without problems.

 - copied nessus-bin-3.0.5.ebuild to nessus-bin-3.0.6.ebuild in my overlay
 - copied nessusd-initd and 90nessus-bin from net-analyzer/nessus-bin/files/
 - built digest and it installs and runs fine</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>thomas@zango.com</who>
            <bug_when>2007-11-20 16:43:59 0000</bug_when>
            <thetext>I assume you also edited the ebuild to use the newer nessus rpm, and downloaded it...


Which version of OpenSSL are you using? The official 3.0.5 needs 0.9.7, but the 0.9.7 series doesn&apos;t have the newer security fixes (it&apos;s actually not available anymore because of that...). Did you find a release linked against 0.9.8?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>trickie@gmail.com</who>
            <bug_when>2007-11-23 14:27:49 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; I assume you also edited the ebuild to use the newer nessus rpm, and downloaded
&gt; it...

Yes of course. 

&gt; 
&gt; 
&gt; Which version of OpenSSL are you using? The official 3.0.5 needs 0.9.7, but the
&gt; 0.9.7 series doesn&apos;t have the newer security fixes (it&apos;s actually not available
&gt; anymore because of that...). Did you find a release linked against 0.9.8?
&gt; 

dev-libs/openssl-0.9.8g - works for me with nessus 3.0.6

That package provides both /usr/lib/libssl.so.0.9.7 and /usr/lib/libcrypto.so.0.9.7 in addition to the 0.9.8 libs
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cyberjun@gmail.com</who>
            <bug_when>2007-11-29 07:55:17 0000</bug_when>
            <thetext>
Nope! I don&apos;t think so. openssl-0.9.8g doesn&apos;t provide /usr/lib/libcrypto.so.0.9.7 and /usr/lib/libssl.so.0.9.7. It just keeps the old files intact. To confirm this. Move the two files to an alternate location and try emerging openssl-0.9.8g. It will not install these two files. 

However, you can make soft links for both these files with their newer versions and nessus would still work (However I don&apos;t think this is really safe).

(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; I assume you also edited the ebuild to use the newer nessus rpm, and downloaded
&gt; &gt; it...
&gt; 
&gt; Yes of course. 
&gt; 
&gt; &gt; 
&gt; &gt; 
&gt; &gt; Which version of OpenSSL are you using? The official 3.0.5 needs 0.9.7, but the
&gt; &gt; 0.9.7 series doesn&apos;t have the newer security fixes (it&apos;s actually not available
&gt; &gt; anymore because of that...). Did you find a release linked against 0.9.8?
&gt; &gt; 
&gt; 
&gt; dev-libs/openssl-0.9.8g - works for me with nessus 3.0.6
&gt; 
&gt; That package provides both /usr/lib/libssl.so.0.9.7 and
&gt; /usr/lib/libcrypto.so.0.9.7 in addition to the 0.9.8 libs
&gt; 

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vladimir@greenmice.info</who>
            <bug_when>2008-03-21 07:30:21 0000</bug_when>
            <thetext>The latest version is 3.2.0. Please, change the summary.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>anton.bugs@gmail.com</who>
            <bug_when>2008-04-17 22:35:37 0000</bug_when>
            <thetext>Guys,

I have submitted to new ebuilds to sectools overlay:
http://gentoo.o0o.nu/portage/net-analyzer/nessus-bin/nessus-bin-3.2.0.ebuild
http://gentoo.o0o.nu/portage/net-analyzer/nessus-client/nessus-client-3.2.0.ebuild

Check it out.

*nessus-bin-3.2.0 (18 Apr 2008)

  18 Apr 2008; Erwin Paternotte &lt;erwinp@dds.nl&gt; +nessus-bin-3.2.0.ebuild:
  Switched to the Red Hat binaries, because they use OpenSSL 0.9.8 and
  offer a 64 bit version of nessus-bin.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cyberjun@gmail.com</who>
            <bug_when>2008-04-24 06:16:25 0000</bug_when>
            <thetext>Why do we need app-arch/rpm for nessus-bin-3.2.0 whereas nessus-bin-3.0.6 doesn&apos;t require it?

I tried to install by removing app-arch/rpm dependency but the installation failed.
As both 3.0.6 and 3.2 install from rpm files, I cannot understand why installation fails without app-arch/rpm. Can somebody please explain? Both the ebuilds inherit rpm



(In reply to comment #6)
&gt; Guys,
&gt; 
&gt; I have submitted to new ebuilds to sectools overlay:
&gt; http://gentoo.o0o.nu/portage/net-analyzer/nessus-bin/nessus-bin-3.2.0.ebuild
&gt; http://gentoo.o0o.nu/portage/net-analyzer/nessus-client/nessus-client-3.2.0.ebuild
&gt; 
&gt; Check it out.
&gt; 
&gt; *nessus-bin-3.2.0 (18 Apr 2008)
&gt; 
&gt;   18 Apr 2008; Erwin Paternotte &lt;erwinp@dds.nl&gt; +nessus-bin-3.2.0.ebuild:
&gt;   Switched to the Red Hat binaries, because they use OpenSSL 0.9.8 and
&gt;   offer a 64 bit version of nessus-bin.
&gt; 

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pva@gentoo.org</who>
            <bug_when>2008-04-24 16:01:24 0000</bug_when>
            <thetext>(In reply to comment #7)
&gt; Why do we need app-arch/rpm for nessus-bin-3.2.0 whereas nessus-bin-3.0.6
&gt; doesn&apos;t require it?

Because it&apos;s uses updated rpm format and thus we need rpm2cpio binary (part of rpm package) to unpack that.

May be it&apos;s better to use debian packages, but neither I&apos;m sure nor I tested that...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cyberjun@gmail.com</who>
            <bug_when>2008-04-28 06:42:34 0000</bug_when>
            <thetext>Hi,
Can I use rpm2cpio-file-roller (belonging to app-arch/file-roller) which already exists on my system? I don&apos;t want to download and install that monster (rpm) just to uncompress Nessus Binary. I can successfully uncompress Nessus-3.2.0-es5.i386.rpm by using rpm2cpio-file-roller. Can I somehow modify the ebuild to use rpm2cpio-file-roller (from app-arch/file-roller) rather than using rpm2cpio (from app-arch/rpm)??

Thanks!

(In reply to comment #8)
&gt; (In reply to comment #7)
&gt; &gt; Why do we need app-arch/rpm for nessus-bin-3.2.0 whereas nessus-bin-3.0.6
&gt; &gt; doesn&apos;t require it?
&gt; 
&gt; Because it&apos;s uses updated rpm format and thus we need rpm2cpio binary (part of
&gt; rpm package) to unpack that.
&gt; 
&gt; May be it&apos;s better to use debian packages, but neither I&apos;m sure nor I tested
&gt; that...
&gt; 

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>anton.bugs@gmail.com</who>
            <bug_when>2008-04-28 08:01:58 0000</bug_when>
            <thetext>(In reply to comment #9)
&gt; Can I use rpm2cpio-file-roller (belonging to app-arch/file-roller) which
&gt; already exists on my system? 

That&apos;s very interesting idea, but it&apos;s not an official way for now.
Wouldn&apos;t it be better if we file a separate bug report with that suggestion, fix rpm.class and update the following manual:
http://devmanual.gentoo.org/ebuild-writing/functions/src_unpack/rpm-sources/index.html
?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cyberjun@gmail.com</who>
            <bug_when>2008-04-28 08:22:22 0000</bug_when>
            <thetext>I think that will be much better than using app-arch/rpm. Meanwhile I tried emerging nessus-bin-3.2.0 by commenting rpm dependency and making a symbolic link rpm2cpio to rpm2cpio-file-roller. The CPIO conversion works (as I can see &quot;CPIO archive found!&quot;). However there is an error.

==================
&lt;..........snipped......to maintain sanity&gt;
ecompressdir: bzip2 -9 /opt/nessus/man
ecompressdir: bzip2 -9 /opt/nessus/share/man

 * QA Notice: Found an absolute symlink in a library directory:
 *            usr/lib/libcrypto.so.6 -&gt; /usr/lib/libcrypto.so.0.9.8
 *            It should be a relative symlink if in the same directory
 *            or a linker script if it crosses the /usr boundary.

 * QA Notice: Found an absolute symlink in a library directory:
 *            usr/lib/libssl.so.6 -&gt; /usr/lib/libssl.so.0.9.8
 *            It should be a relative symlink if in the same directory
 *            or a linker script if it crosses the /usr boundary.
* checking 20873 files for package collisions
1000 files checked ...
2000 files checked ...
3000 files checked ...
4000 files checked ...
5000 files checked ...
6000 files checked ...
7000 files checked ...
8000 files checked ...
9000 files checked ...
10000 files checked ...
11000 files checked ...
12000 files checked ...
13000 files checked ...
14000 files checked ...
15000 files checked ...
16000 files checked ...
17000 files checked ...
18000 files checked ...
19000 files checked ...
20000 files checked ...
[Errno 7] Argument list too long:
   bash -c source &apos;/usr/lib/portage/bin/isolated-functions.sh&apos; ; eerror &quot;This package will overwrite one or more files that may belong to other&quot; ; eerror &quot;packages (see list below). You can use a command such as \`portageq&quot; ; eerror &quot;owners / &lt;filename&gt;\` to identify the installed package that owns a&quot; ; eerror &quot;file. If portageq reports that only one package owns a file then do&quot; ; eerror &quot;NOT file a bug report. A bug report is only useful if it identifies at&quot; ; eerror &quot;least two or more packages that are known to install the same file(s).&quot; ; eerror &quot;If a collision occurs and you can not explain where the f &lt;snipped .........to maintain sanity.......&gt;
==================
And the install doesn&apos;t work. Can you tell me where am I going wrong?




(In reply to comment #10)
&gt; (In reply to comment #9)
&gt; &gt; Can I use rpm2cpio-file-roller (belonging to app-arch/file-roller) which
&gt; &gt; already exists on my system? 
&gt; 
&gt; That&apos;s very interesting idea, but it&apos;s not an official way for now.
&gt; Wouldn&apos;t it be better if we file a separate bug report with that suggestion,
&gt; fix rpm.class and update the following manual:
&gt; http://devmanual.gentoo.org/ebuild-writing/functions/src_unpack/rpm-sources/index.html
&gt; ?
&gt; 

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>anton.bugs@gmail.com</who>
            <bug_when>2008-04-28 08:32:46 0000</bug_when>
            <thetext>(In reply to comment #11)
&gt; I think that will be much better than using app-arch/rpm. 
No, forget about it. rpm2cpio-file-roller pools entire Gnome and I don&apos;t want to install it.

&gt; And the install doesn&apos;t work. Can you tell me where am I going wrong?

try this instead:
DEPEND=&quot;=sys-libs/db-4.3*
                dev-libs/openssl
                app-arch/file-roller&quot;
#               app-arch/rpm&quot;

src_unpack () {
#check syntactics here: 
    rpm2cpio-file-roller ${A}
}
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cyberjun@gmail.com</who>
            <bug_when>2008-04-29 06:23:38 0000</bug_when>
            <thetext>Hi,
     A little investigation shows that the main reason we cannot uncompress the new Nessus rpm is that the rpmoffset program (on which rpm2targz is based) fails to locate the magic bytes.
     Changing the RPMBUFSIZ to 3MB (currently it is 2MB) in rpmoffset.c will make it work with the new rpm also. Now only if we could submit a patch for rpmoffset.c and get it included, our troubles will be gone.


(In reply to comment #12)
&gt; (In reply to comment #11)
&gt; &gt; I think that will be much better than using app-arch/rpm. 
&gt; No, forget about it. rpm2cpio-file-roller pools entire Gnome and I don&apos;t want
&gt; to install it.
&gt; 
&gt; &gt; And the install doesn&apos;t work. Can you tell me where am I going wrong?
&gt; 
&gt; try this instead:
&gt; DEPEND=&quot;=sys-libs/db-4.3*
&gt;                 dev-libs/openssl
&gt;                 app-arch/file-roller&quot;
&gt; #               app-arch/rpm&quot;
&gt; 
&gt; src_unpack () {
&gt; #check syntactics here: 
&gt;     rpm2cpio-file-roller ${A}
&gt; }
&gt; 

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pva@gentoo.org</who>
            <bug_when>2008-04-29 07:53:45 0000</bug_when>
            <thetext>(In reply to comment #13)
&gt; Changing the RPMBUFSIZ to 3MB (currently it is 2MB) in rpmoffset.c will
&gt; make it work with the new rpm also.

Nice catch. rpm2targz-9.0-r7 is in portage.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cyberjun@gmail.com</who>
            <bug_when>2008-04-29 09:08:30 0000</bug_when>
            <thetext>Created an attachment (id=151307)
New rpmoffset (independent of rpm size)

Hi,
     This patch removes size restriction from rpmoffset, so that it can work with all rpm sizes (and keep us all away from app-arch/rpm for as long as possible ;)).
     Can we include this one? I have tested it with the following rpms:
1. RealPlayer-10.0.9.809-20070726.i586.rpm
2. NessusClient-3.2.0-es5.i386.rpm
3. flash-plugin-9.0.124.0-release.i386.rpm
4. Nessus-3.0.6-suse10.0.i586.rpm

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>anton.bugs@gmail.com</who>
            <bug_when>2008-04-29 09:46:09 0000</bug_when>
            <thetext>(In reply to comment #15)
&gt; Created an attachment (id=151307) [edit]
&gt; New rpmoffset (independent of rpm size)
&gt; 

Correct me if I&apos;m wrong, but the following code looks 2 and 3 byte out of border:
char p[3];
p[1] == &apos;\213&apos;;
p[2] == &apos;\010&apos;;

char p[3] should give you only 3 bytes: p[0]-p[2].
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cyberjun@gmail.com</who>
            <bug_when>2008-04-29 09:49:32 0000</bug_when>
            <thetext>yes I will get only 3 bytes and only 3 bytes are needed. Where is it going out of border? I am only referring to p[0] (i.e equivalent to *p), p[1] and p[2]

(In reply to comment #16)
&gt; (In reply to comment #15)
&gt; &gt; Created an attachment (id=151307) [edit]
&gt; &gt; New rpmoffset (independent of rpm size)
&gt; &gt; 
&gt; 
&gt; Correct me if I&apos;m wrong, but the following code looks 2 and 3 byte out of
&gt; border:
&gt; char p[3];
&gt; p[1] == &apos;\213&apos;;
&gt; p[2] == &apos;\010&apos;;
&gt; 
&gt; char p[3] should give you only 3 bytes: p[0]-p[2].
&gt; 

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>anton.bugs@gmail.com</who>
            <bug_when>2008-04-29 09:58:48 0000</bug_when>
            <thetext>(In reply to comment #17)
&gt; yes I will get only 3 bytes and only 3 bytes are needed. Where is it going out
&gt; of border? I am only referring to p[0] (i.e equivalent to *p), p[1] and p[2]
&gt; &gt; p[1] == &apos;\213&apos;;
&gt; &gt; p[2] == &apos;\010&apos;;

ah, &apos;&apos; is a 1 character only. You are right. Sorry!
Nice one!

btw, you can also remove:
&gt; /* chunk of RAM right away so that we have enough.  Yeah, horrible */
&gt; /* quick and dirty implementation, but hey -- it gets the job done. */

as it clean now ;)
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cyberjun@gmail.com</who>
            <bug_when>2008-04-29 10:04:52 0000</bug_when>
            <thetext>Created an attachment (id=151312)
Complete code.

Here is the complete code. Have cleaned up the comments which don&apos;t apply now ;)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pva@gentoo.org</who>
            <bug_when>2008-04-29 11:28:50 0000</bug_when>
            <thetext>Guys, this bug is about nessus-bin. For rpm2targz open a new feature request and attach patch there, not full sources code.

Also as I already told you rpm2targz-9.0-r7 fixes the problem with nessus but your solution I like more, so, please, open new bug.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cyberjun@gmail.com</who>
            <bug_when>2008-04-29 11:59:37 0000</bug_when>
            <thetext>Opened bug# 219711.
Thanks.


(In reply to comment #20)
&gt; Guys, this bug is about nessus-bin. For rpm2targz open a new feature request
&gt; and attach patch there, not full sources code.
&gt; 
&gt; Also as I already told you rpm2targz-9.0-r7 fixes the problem with nessus but
&gt; your solution I like more, so, please, open new bug.
&gt; 

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>anton.bugs@gmail.com</who>
            <bug_when>2008-04-30 01:43:06 0000</bug_when>
            <thetext>I have updated the nessus-bin ebuild and it does not require that heavy rpm package:
http://gentoo.o0o.nu/portage/net-analyzer/nessus-bin/nessus-bin-3.2.0-r1.ebuild
Thanks Cyberjun.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vladimir@greenmice.info</who>
            <bug_when>2008-05-02 17:18:01 0000</bug_when>
            <thetext>After (fresh) install:
# /opt/nessus/sbin/nessus-adduser
nessusd: error while loading shared libraries: libnessus.so.3: cannot open shared object file: No such file or directory

Adding &quot;/opt/nessus/lib/&quot; to /etc/ld.so.conf and doing `ldconfig` fixed this.
So, it should be added to ebuild (sorry, I don&apos;t know how to do it correctly)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vladimir@greenmice.info</who>
            <bug_when>2008-05-02 17:26:41 0000</bug_when>
            <thetext>...and init script is missing :(</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>anton.bugs@gmail.com</who>
            <bug_when>2008-05-03 01:06:19 0000</bug_when>
            <thetext>(In reply to comment #23)
&gt; Adding &quot;/opt/nessus/lib/&quot; to /etc/ld.so.conf and doing `ldconfig` fixed this.
&gt; ...and init script is missing :(

You forgot to download the &quot;files&quot; directory too.
The easiest way is to add this overlay to layman list and do layman -S.
See main page for details.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vladimir@greenmice.info</who>
            <bug_when>2008-05-03 06:57:00 0000</bug_when>
            <thetext>(In reply to comment #25)
&gt; (In reply to comment #23)
&gt; &gt; Adding &quot;/opt/nessus/lib/&quot; to /etc/ld.so.conf and doing `ldconfig` fixed this.
&gt; &gt; ...and init script is missing :(
&gt; 
&gt; You forgot to download the &quot;files&quot; directory too.
&gt; The easiest way is to add this overlay to layman list and do layman -S.
&gt; See main page for details.
&gt; 
Oh, so why there were no errors/warnings?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>anton.bugs@gmail.com</who>
            <bug_when>2008-05-03 15:48:15 0000</bug_when>
            <thetext>(In reply to comment #26)
&gt; Oh, so why there were no errors/warnings?

I&apos;m sure you&apos;ll find a warning message on a screen or it&apos;ll be in a log file then it compiled using &apos;ebuilld nessus.ebuild install&apos; command and it&apos;s good enough for developers.

btw, I just had the same problem in the bug #209900 so you&apos;re not alone :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vanquirius@gentoo.org</who>
            <bug_when>2008-05-15 01:50:57 0000</bug_when>
            <thetext>Hi guys, 3.2.0 is now in cvs, thanks to your contributions.
Cheers!</thetext>
          </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>151307</attachid>
            <date>2008-04-29 09:08 0000</date>
            <desc>New rpmoffset (independent of rpm size)</desc>
            <filename>rpmoffset_remove_size_restriction.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHJwbW9mZnNldC5jCTIwMDgtMDQtMjkgMTE6NDk6MzEuMDAwMDAwMDAwICswNTMwCisrKyBy
cG1vZmZzZXRfbmV3LmMJMjAwOC0wNC0yOSAxNDozMjowOC4wMDAwMDAwMDAgKzA1MzAKQEAgLTEx
LDIzICsxMSwyMiBAQAogLyogY2h1bmsgb2YgUkFNIHJpZ2h0IGF3YXkgc28gdGhhdCB3ZSBoYXZl
IGVub3VnaC4gIFllYWgsIGhvcnJpYmxlICovCiAvKiBxdWljayBhbmQgZGlydHkgaW1wbGVtZW50
YXRpb24sIGJ1dCBoZXkgLS0gaXQgZ2V0cyB0aGUgam9iIGRvbmUuICovCiAKLSNkZWZpbmUgUlBN
QlVGU0laIDMxNDU3MjgKIAogbWFpbigpCiB7Ci0gICAgICAgIGNoYXIgKmJ1ZmYgPSBtYWxsb2Mo
UlBNQlVGU0laKSwqZWIsKnA7Ci0gICAgICAgIGZvciAocCA9IGJ1ZmYsIGViID0gYnVmZiArIHJl
YWQoMCxidWZmLFJQTUJVRlNJWik7IHAgPCBlYjsgcCsrKQotICAgICAgICB7Ci0gICAgICAgICAg
ICAgICAgaWYgKCpwID09ICdcMDM3JyAmJiBwWzFdID09ICdcMjEzJyAmJiBwWzJdID09ICdcMDEw
JykgCisgICAgICAgIGxvbmcgaW50IGk7CisgICAgICAgIGNoYXIgcFszXTsKKyAgICAgICAgZm9y
IChpPTAsIHJlYWQoMCxwLDEpICYmIHJlYWQoMCxwKzEsMSkgJiYgcmVhZCgwLHArMiwxKTsgcCsy
ICE9IE5VTEw7IHBbMF09cFsxXSxwWzFdPXBbMl0scmVhZCgwLHArMiwxKSxpKyspIHsKKyAgICAg
ICAgICAgICAgICBpZiAoKnAgPT0gJ1wwMzcnICYmIHBbMV0gPT0gJ1wyMTMnICYmIHBbMl0gPT0g
J1wwMTAnKSAKICAgICAgICAgICAgICAgICB7Ci0gICAgICAgICAgICAgICAgICAgICAgICBwcmlu
dGYoIiVsZFxuIixwIC0gYnVmZik7CisgICAgICAgICAgICAgICAgICAgICAgICBwcmludGYoIiVs
ZFxuIixpKTsKICAgICAgICAgICAgICAgICAgICAgICAgIGV4aXQoMCk7CiAgICAgICAgICAgICAg
ICAgfQogICAgICAgICAgICAgICAgIGVsc2UgaWYgKCpwID09ICdCJyAmJiBwWzFdID09ICdaJyAm
JiBwWzJdID09ICdoJyApCiAgICAgICAgICAgICAgICAgewotICAgICAgICAgICAgICAgICAgICAg
ICAgcHJpbnRmKCIlbGRcbiIscCAtIGJ1ZmYpOworICAgICAgICAgICAgICAgICAgICAgICAgcHJp
bnRmKCIlbGRcbiIsaSk7CiAgICAgICAgICAgICAgICAgICAgICAgICBleGl0KDApOwogICAgICAg
ICAgICAgICAgIH0KLSAgICAgICAgfQotICAgICAgICBleGl0KDEpOworICAgICAgICB9CisgICAg
ICAgIGV4aXQoMSk7CiB9Cg==
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>151312</attachid>
            <date>2008-04-29 10:04 0000</date>
            <desc>Complete code.</desc>
            <filename>rpmoffset_new.c</filename>
            <type>text/plain</type>
            <data encoding="base64">Ci8qIEZpbmQgaG93IGRlZXBseSBpbnNpZGUgYW4gLlJQTSB0aGUgcmVhbCBkYXRhIGlzICovCi8q
IGtlcHQsIGFuZCByZXBvcnQgdGhlIG9mZnNldCBpbiBieXRlcyAqLwoKLyogV291bGRuJ3QgaXQg
YmUgYSBsb3QgbW9yZSBzYW5lIGlmIHdlIGNvdWxkIGp1c3QgdW50YXIgdGhlc2UgdGhpbmdzPyAq
LwoKI2luY2x1ZGUgPHN0ZGxpYi5oPgojaW5jbHVkZSA8c3RkaW8uaD4KCm1haW4oKQp7Cglsb25n
IGludCBpOwoJY2hhciBwWzNdOwoJZm9yIChpPTAsIHJlYWQoMCxwLDEpICYmIHJlYWQoMCxwKzEs
MSkgJiYgcmVhZCgwLHArMiwxKTsgcCsyICE9IE5VTEw7IHBbMF09cFsxXSxwWzFdPXBbMl0scmVh
ZCgwLHArMiwxKSxpKyspIHsKICAgICAgIAkgICAgICAgIGlmICgqcCA9PSAnXDAzNycgJiYgcFsx
XSA9PSAnXDIxMycgJiYgcFsyXSA9PSAnXDAxMCcpIAoJCXsKICAgICAgICAgICAgICAgICAgICAg
ICAJcHJpbnRmKCIlbGRcbiIsaSk7CiAgICAgICAgICAgICAgICAgICAgICAgIGV4aXQoMCk7CgkJ
fQoJCWVsc2UgaWYgKCpwID09ICdCJyAmJiBwWzFdID09ICdaJyAmJiBwWzJdID09ICdoJyApCgkJ
ewoJCSAJcHJpbnRmKCIlbGRcbiIsaSk7CgkJCWV4aXQoMCk7CgkJfQoJfQoJZXhpdCgxKTsKfQo=
</data>        

          </attachment>
    </bug>

</bugzilla>