fix for pipe commands so csh will run them; it's a security hole anyway
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 11 Oct 1988 05:05:06 +0000 (21:05 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 11 Oct 1988 05:05:06 +0000 (21:05 -0800)
SCCS-vsn: usr.bin/tip/cmds.c 5.9

usr/src/usr.bin/tip/cmds.c

index a02432c..58ea92e 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)cmds.c     5.8 (Berkeley) %G%";
+static char sccsid[] = "@(#)cmds.c     5.9 (Berkeley) %G%";
 #endif /* not lint */
 
 #include "tip.h"
 #endif /* not lint */
 
 #include "tip.h"
@@ -649,7 +649,7 @@ execute(s)
                cp = value(SHELL);
        else
                cp++;
                cp = value(SHELL);
        else
                cp++;
-       user_uid();
+       shell_uid();
        execl(value(SHELL), cp, "-c", s, 0);
 }
 
        execl(value(SHELL), cp, "-c", s, 0);
 }