[10615] in Athena Bugs

home help back first fref pref prev next nref lref last post

util/pinstall/install.c

daemon@ATHENA.MIT.EDU (brlewis@Athena.MIT.EDU)
Fri Jun 25 13:43:27 1993

From: brlewis@Athena.MIT.EDU
Date: Fri, 25 Jun 93 13:43:21 -0400
To: rel-eng@Athena.MIT.EDU, bugs@Athena.MIT.EDU

*** /tmp/,RCSt1a18876	Fri Jun 25 13:42:47 1993
--- util/pinstall/install.c	Thu Jun  3 13:05:56 1993
***************
*** 25,30 ****
--- 25,34 ----
  static char sccsid[] = "@(#)install.c	5.12 (Berkeley) 7/6/88";
  #endif /* not lint */
  
+ #if defined(SOLARIS) || defined(hpux)
+ #define NO_STRIP
+ #endif
+ 
  #include <sys/types.h>
  #include <sys/param.h>
  #include <sys/stat.h>
***************
*** 33,39 ****
  #include <fcntl.h> 
  #endif
  #include <sys/time.h>
! #ifndef SOLARIS
  #include <a.out.h>
  #endif 
  #include <grp.h>
--- 37,43 ----
  #include <fcntl.h> 
  #endif
  #include <sys/time.h>
! #ifndef NO_STRIP
  #include <a.out.h>
  #endif 
  #include <grp.h>
***************
*** 273,279 ****
  			PERROR("install: open: ", from_name);
  			exit(1);
  		}
! #ifndef SOLARIS
  		if (dostrip)
  			strip(from_fd, from_name, to_fd, to_name);
  		else
--- 277,283 ----
  			PERROR("install: open: ", from_name);
  			exit(1);
  		}
! #ifndef NO_STRIP
  		if (dostrip)
  			strip(from_fd, from_name, to_fd, to_name);
  		else
***************
*** 312,318 ****
   *	copy file, strip(1)'ing it at the same time
   *      This routine must know about the a.out architecture
   */
! #ifndef SOLARIS        /* Not yet done for Solaris */
  static
  strip(from_fd, from_name, to_fd, to_name)
  	register int from_fd, to_fd;
--- 316,322 ----
   *	copy file, strip(1)'ing it at the same time
   *      This routine must know about the a.out architecture
   */
! #ifndef NO_STRIP        /* Not yet done for Solaris or HP-UX */
  static
  strip(from_fd, from_name, to_fd, to_name)
  	register int from_fd, to_fd;

home help back first fref pref prev next nref lref last post