Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-updates-src > by-pkgid > 23513e4cf1ee2e250136846e76d100ed > files > 8

rpm-4.8.1-10.2.mga1.src.rpm

From 3a79fd6d2e9e4f84c3e52030b357712ec3d538c4 Mon Sep 17 00:00:00 2001
From: unknown author <cooker@mandrivalinux.org>
Date: Mon, 5 Jan 2009 13:29:57 +0000
Subject: [PATCH 13/36] 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 b9db7db..51965c5 100644
--- a/tools/debugedit.c
+++ b/tools/debugedit.c
@@ -1498,11 +1498,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.4.4