summaryrefslogtreecommitdiff
path: root/usr/src/cmd/sh/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/sh/main.c')
-rw-r--r--usr/src/cmd/sh/main.c34
1 files changed, 1 insertions, 33 deletions
diff --git a/usr/src/cmd/sh/main.c b/usr/src/cmd/sh/main.c
index 9533e793cc..df42009b5b 100644
--- a/usr/src/cmd/sh/main.c
+++ b/usr/src/cmd/sh/main.c
@@ -20,14 +20,12 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 1988, 2010, Oracle and/or its affiliates. All rights reserved.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
-#pragma ident "%Z%%M% %I% %E% SMI"
/*
* UNIX shell
*/
@@ -40,7 +38,6 @@
#include <sys/stat.h>
#include <sys/wait.h>
#include "dup.h"
-#include "sh_policy.h"
#ifdef RES
#include <sgtty.h>
@@ -141,15 +138,6 @@ main(int c, char *v[], char *e[])
(void) textdomain(TEXT_DOMAIN);
/*
- * This is a profile shell if the simple name of argv[0] is
- * pfsh or -pfsh
- */
- if (c > 0 && (eq("pfsh", simple(*v)) || eq("-pfsh", simple(*v)))) {
- flags |= pfshflg;
- secpolicy_init();
- }
-
- /*
* 'rsflag' is zero if SHELL variable is
* set in environment and
* the simple file part of the value.
@@ -600,23 +588,3 @@ setmode(int prof)
flags &= ~prompt;
}
}
-
-/*
- * A generic call back routine to output error messages from the
- * policy backing functions called by pfsh.
- *
- * msg must contain '\n' if a new line is to be printed.
- */
-void
-secpolicy_print(int level, const char *msg)
-{
- switch (level) {
- case SECPOLICY_WARN:
- default:
- prs(_gettext(msg));
- return;
- case SECPOLICY_ERROR:
- error(msg);
- break;
- }
-}