projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add pathnames.h
[unix-history]
/
usr
/
src
/
usr.bin
/
su
/
su.c
diff --git
a/usr/src/usr.bin/su/su.c
b/usr/src/usr.bin/su/su.c
index
6f9b102
..
073d24d
100644
(file)
--- a/
usr/src/usr.bin/su/su.c
+++ b/
usr/src/usr.bin/su/su.c
@@
-22,7
+22,7
@@
char copyright[] =
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)su.c 5.1
1
(Berkeley) %G%";
+static char sccsid[] = "@(#)su.c 5.1
2
(Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
@@
-32,6
+32,7
@@
static char sccsid[] = "@(#)su.c 5.11 (Berkeley) %G%";
#include <stdio.h>
#include <pwd.h>
#include <grp.h>
#include <stdio.h>
#include <pwd.h>
#include <grp.h>
+#include "pathnames.h"
main(argc, argv)
int argc;
main(argc, argv)
int argc;
@@
-87,7
+88,7
@@
main(argc, argv)
if (pwd->pw_shell && *pwd->pw_shell)
shell = strcpy(shellbuf, pwd->pw_shell);
else {
if (pwd->pw_shell && *pwd->pw_shell)
shell = strcpy(shellbuf, pwd->pw_shell);
else {
- shell =
"/bin/sh"
;
+ shell =
_PATH_BSHELL
;
iscsh = NO;
}
iscsh = NO;
}
@@
-131,7
+132,7
@@
main(argc, argv)
shell = pwd->pw_shell;
iscsh = UNSET;
} else {
shell = pwd->pw_shell;
iscsh = UNSET;
} else {
- shell =
"/bin/sh"
;
+ shell =
_PATH_BSHELL
;
iscsh = NO;
}
iscsh = NO;
}
@@
-161,7
+162,7
@@
main(argc, argv)
if (!asme) {
if (fulllogin) {
p = getenv("TERM");
if (!asme) {
if (fulllogin) {
p = getenv("TERM");
- cleanenv[0] =
"PATH=:/usr/ucb:/bin:/usr/bin"
;
+ cleanenv[0] =
_PATH_SEARCHPATH
;
cleanenv[1] = NULL;
environ = cleanenv;
(void)setenv("TERM", p, 1);
cleanenv[1] = NULL;
environ = cleanenv;
(void)setenv("TERM", p, 1);