<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>2558</bug_id>
          
          <creation_ts>2003-05-04 00:51:28 +0400</creation_ts>
          <short_desc>gendiff gets confused by SUFFIX in the upmost directory name</short_desc>
          <delta_ts>2005-07-13 15:45:21 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>rpm-build</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="imz">vanyaz</reporter>
          <assigned_to name="Gleb F-Malinovskiy">glebfm</assigned_to>
          <cc>arseny</cc>
    
    <cc>glebfm</cc>
    
    <cc>imz</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2333</commentid>
    <comment_count>0</comment_count>
    <who name="imz">vanyaz</who>
    <bug_when>2003-05-04 00:51:28 +0400</bug_when>
    <thetext>gendiff d.SUFFIX .SUFFIX

called in a directory where both

d.SUFFIX
d

exist, doesn\&apos;t not produce the expected. I expect the output not to depend on the contents of d, but the output includes the difference between d and d.SUFFIX.

---

---
rpm-build-4.0.4-alt16

To fight this, I suggest the enhancement:

--- /usr/bin/gendiff    2003-05-04 00:48:31 +0400
+++ /usr/bin/gendiff.depth0     2003-05-04 00:41:38 +0400
@@ -11,7 +11,7 @@
 
 [ -z \&amp;quot;$3\&amp;quot; ] || echo &amp;gt;\&amp;quot;$RPM/SOURCES/$1-$3.patch\&amp;quot;
 
-find \&amp;quot;$1\&amp;quot; -mindepth 1 \\( -name \&amp;quot;*$2\&amp;quot; -o -name \&amp;quot;.*$2\&amp;quot; \\) -print |
+find \&amp;quot;$1\&amp;quot; \\( -name \&amp;quot;*$2\&amp;quot; -o -name \&amp;quot;.*$2\&amp;quot; \\) -print |
 while read fin; do
        fou=`echo \&amp;quot;$fin\&amp;quot; |sed -e \&amp;quot;s/$2\\$//\&amp;quot;`;
        [ -r \&amp;quot;$fin\&amp;quot; ] || fin=\&amp;quot;/dev/null\&amp;quot;

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9830</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2003-09-27 21:52:58 +0400</bug_when>
    <thetext>Fixed in rpm-build-4.0.4-alt26 </thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>