Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/bin/ksh Pull up revision 1.8 (requested by jschauma in ...



details:   https://anonhg.NetBSD.org/src/rev/fafb4f90f937
branches:  netbsd-1-6
changeset: 529165:fafb4f90f937
user:      lukem <lukem%NetBSD.org@localhost>
date:      Mon Oct 14 00:04:36 2002 +0000

description:
Pull up revision 1.8 (requested by jschauma in ticket #910):
We don't have 'newgrp' -> ifdef the builtin alias.  This prevents
the shell from unexpectedly dying if a user enters the (nonexistent)
'newgrp' command.  OK'd by perry.
As seen in OpenBSD.

diffstat:

 bin/ksh/main.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 0cd2fe71c36e -r fafb4f90f937 bin/ksh/main.c
--- a/bin/ksh/main.c    Sun Oct 13 23:59:51 2002 +0000
+++ b/bin/ksh/main.c    Mon Oct 14 00:04:36 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.6 1999/10/20 15:09:59 hubertf Exp $ */
+/*     $NetBSD: main.c,v 1.6.8.1 2002/10/14 00:04:36 lukem Exp $       */
 
 /*
  * startup, main loop, enviroments and error handling
@@ -66,7 +66,9 @@
 #ifdef KSH
         /* Aliases that are builtin commands in at&t */
          "login=exec login",
+#ifndef __NetBSD__
          "newgrp=exec newgrp",
+#endif /* __NetBSD__ */
 #endif /* KSH */
          NULL,
        /* this is what at&t ksh seems to track, with the addition of emacs */



Home | Main Index | Thread Index | Old Index