File crash-keep-file-orig-with-name-on-select.patch of Package crash.1433

---
 symbols.c |    7 +++++++
 1 file changed, 7 insertions(+)

--- a/symbols.c
+++ b/symbols.c
@@ -3346,6 +3346,7 @@ int
 select_namelist(char *new)
 {
 	struct stat stat1, stat2;
+	char *namecp;
 
 	if (pc->server_namelist) {
         	pc->namelist_debug = new;
@@ -3359,6 +3360,12 @@ select_namelist(char *new)
 
 	if (stat1.st_size > stat2.st_size) {
 		pc->namelist_debug = pc->namelist;
+		if (pc->namelist_orig)
+		{
+			namecp = pc->namelist_debug_orig;
+			pc->namelist_debug_orig = pc->namelist_orig;
+			pc->namelist_orig = namecp;
+		}
 		pc->namelist = new;		
 	} else if (stat2.st_size > stat1.st_size) 
 		pc->namelist_debug = new;
openSUSE Build Service is sponsored by