cvs commit: patches/shadow shadow-4.0.3-DISPLAY-1.patch shadow-4.0.3-newgrp_fix-1.patch shadow-4.0.4.1-fix_symlinks-1.patch shadow-4.0.3-DISPLAY.patch shadow-4.0.3-newgrp-fix.patch shadow-4.0.4.1-fix-symlinks.patch

jim at linuxfromscratch.org jim at linuxfromscratch.org
Mon Jun 7 22:00:10 PDT 2004


jim         04/06/07 23:00:10

  Added:       shadow   shadow-4.0.3-DISPLAY-1.patch
                        shadow-4.0.3-newgrp_fix-1.patch
                        shadow-4.0.4.1-fix_symlinks-1.patch
  Removed:     shadow   shadow-4.0.3-DISPLAY.patch
                        shadow-4.0.3-newgrp-fix.patch
                        shadow-4.0.4.1-fix-symlinks.patch
  Log:
  Naming Scheme Update
  
  Revision  Changes    Path
  1.1                  patches/shadow/shadow-4.0.3-DISPLAY-1.patch
  
  Index: shadow-4.0.3-DISPLAY-1.patch
  ===================================================================
  Submitted By: Tushar Teredesai <tushar at linuxfromscratch.org>
  Date: 2003-10-02
  Initial Package Version: 4.0.3
  Origin: blfs-dev mailing list long time back.
  Description: When "su"ing from one user to another, preserve the
  value of the DISPLAY env var.
  diff -ur shadow-4.0.3/src/su.c shadow-4.0.3.patched/src/su.c
  --- shadow-4.0.3/src/su.c	2002-03-07 22:30:28.000000000 -0600
  +++ shadow-4.0.3.patched/src/su.c	2002-09-16 11:31:28.000000000 -0500
  @@ -252,6 +252,12 @@
   		 */
   		if ((cp = getenv ("TERM")))
   			addenv ("TERM", cp);
  +		/*
  +		 * The display type will be left alone if it is present in
  +		 * the environment already.
  +		 */
  +		if ((cp = getenv ("DISPLAY")))
  +			addenv ("DISPLAY", cp);
   	} else {
   		while (*envp)
   			addenv (*envp++, NULL);
  
  
  
  1.1                  patches/shadow/shadow-4.0.3-newgrp_fix-1.patch
  
  Index: shadow-4.0.3-newgrp_fix-1.patch
  ===================================================================
  Submitted By: Greg Schafer <gschafer at zip dot com dot au>
  Date: 2003-09-01
  Initial Package Version: 4.0.3
  Origin: LFS Mailing Lists
  Description: Fixes the newgrp command in the shadow suite - now also appearing in Shadow CVS
  
  diff -uNr shadow-4.0.3.orig/src/newgrp.c shadow-4.0.3/src/newgrp.c
  --- shadow-4.0.3.orig/src/newgrp.c	2002-01-07 02:00:07.000000000 +1100
  +++ shadow-4.0.3/src/newgrp.c	2003-03-11 12:02:12.000000000 +1100
  @@ -398,6 +398,7 @@
   		SYSLOG ((LOG_INFO,
   			 "user `%s' (login `%s' on %s) switched to group `%s'",
   			 name, loginname, tty, group));
  +#ifdef USE_PAM
   		if (getdef_bool ("CLOSE_SESSIONS")) {
   			/*
   			 * We want to fork and exec the new shell in the child, leaving the
  @@ -450,6 +451,7 @@
   			signal (SIGTTIN, SIG_DFL);
   			signal (SIGTTOU, SIG_DFL);
   		}
  +#endif // USE_PAM
   	}
   #endif				/* USE_SYSLOG */
   
  
  
  
  1.1                  patches/shadow/shadow-4.0.4.1-fix_symlinks-1.patch
  
  Index: shadow-4.0.4.1-fix_symlinks-1.patch
  ===================================================================
  Submitted By: Tushar Teredesai <tushar at linuxfromscratch.org>
  Date: 2004-01-17
  Initial Package Version: 4.0.4.1
  Origin: None
  Description: Fixes incorrectly created symlinks during install.
  Upstream Status: Submitted (though the submitted patch patches Makefile.am)
  
  diff -ur shadow-4.0.4.1.orig/src/Makefile.in shadow-4.0.4.1/src/Makefile.in
  --- shadow-4.0.4.1.orig/src/Makefile.in	2004-01-14 08:15:28.000000000 -0600
  +++ shadow-4.0.4.1/src/Makefile.in	2004-01-17 22:36:38.000000000 -0600
  @@ -915,8 +915,10 @@
   
   
   install-exec-hook:
  -	ln -sf newgrp	$(DESTDIR)$(bindir)/sg
  -	ln -sf vipw	$(DESTDIR)$(bindir)/vigr
  +	$(mkinstalldirs) $(DESTDIR)$(ubindir)
  +	ln -sf newgrp	$(DESTDIR)$(ubindir)/sg
  +	$(mkinstalldirs) $(DESTDIR)$(usbindir)
  +	ln -sf vipw	$(DESTDIR)$(usbindir)/vigr
   	for i in $(suidbins); do \
   		chmod 4755 $(DESTDIR)$(bindir)/$$i; \
   	done
  
  
  



More information about the patches mailing list