Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > main-updates-src > by-pkgid > dec4e1edeef36e7485e13bf42f1af5da > files > 9

rpm-4.6.0-14.3mnb2.src.rpm

From d272c51af18544097c49f086db70abd895072bf0 Mon Sep 17 00:00:00 2001
From: unknown author <cooker@mandrivalinux.org>
Date: Mon, 5 Jan 2009 13:29:57 +0000
Subject: [PATCH 19/35] fix debugedit

(from Turbolinux)

the length check is wrong:
- dest_dir is /usr/src/debug by default
- base_dir is $RPM_BUILD_DIR, which can be /RPM/BUILD
---
 tools/debugedit.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/tools/debugedit.c b/tools/debugedit.c
index f42b34a..d07a074 100644
--- a/tools/debugedit.c
+++ b/tools/debugedit.c
@@ -1490,11 +1490,6 @@ main (int argc, char *argv[])
 	  fprintf (stderr, "You must specify a base dir if you specify a dest dir\n");
 	  exit (1);
 	}
-      if (strlen (dest_dir) > strlen (base_dir))
-	{
-	  fprintf (stderr, "Only dest dir longer than base dir not supported\n");
-	  exit (1);
-	}
     }
 
   /* Make sure there are trailing slashes in dirs */
-- 
1.6.1.3