Subject: bin/77: strip touches files that are already stripped
To: None <gnats-admin>
From: None <thomas@mathematik.uni-Bremen.de>
List: netbsd-bugs
Date: 01/13/1994 13:05:14
>Number:         77
>Category:       bin
>Synopsis:       strip touches files that are already stripped
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (Utility Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 13 13:05:13 1994
>Originator:     Thomas Eberhardt
>Organization:
CeVis, University of Bremen, Germany
>Release:        
>Environment:
    	
System: NetBSD ed209 0.9a ED209#0 i386

Machine: i386
>Description:
	The recent change to strip to not remove trailing zeroes in the
	data segment isn't complete IMHO.  strip now touches (i.e. updates
	the modification date of) files that are already stripped.
>How-To-Repeat:
	
>Fix:
*** strip.c-	Thu Jan  6 12:48:28 1994
--- strip.c	Fri Jan  7 13:11:15 1994
***************
*** 144,152 ****
--- 144,154 ----
  	 * the file data segment size is already minimized, quit.
  	 */
  	if (!ep->a_syms && !ep->a_trsize && !ep->a_drsize) {
+ #if 0
  		if (!zmagic)
  			return 0;
  		if (sp->st_size < N_TRELOFF(*ep))
+ #endif
  			return 0;
  	}
  
>Audit-Trail:
>Unformatted:

------------------------------------------------------------------------------