‣ merge from mksh R40-stable
move /etc/{,suid_}profile to /system/etc/ for Android (but do not make the location of /etc configurable); rewrite manpage section about /etc/{,suid_}profile, .profile, .mkshrc
This commit is contained in:
6
main.c
6
main.c
@ -33,7 +33,7 @@
|
||||
#include <locale.h>
|
||||
#endif
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.195 2011/07/06 22:21:57 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.196 2011/07/16 17:08:19 tg Exp $");
|
||||
|
||||
extern char **environ;
|
||||
|
||||
@ -524,13 +524,13 @@ main(int argc, const char *argv[])
|
||||
warningf(false, "can't determine current directory");
|
||||
|
||||
if (Flag(FLOGIN)) {
|
||||
include(KSH_SYSTEM_PROFILE, 0, NULL, 1);
|
||||
include(MKSH_SYSTEM_PROFILE, 0, NULL, 1);
|
||||
if (!Flag(FPRIVILEGED))
|
||||
include(substitute("$HOME/.profile", 0), 0,
|
||||
NULL, 1);
|
||||
}
|
||||
if (Flag(FPRIVILEGED))
|
||||
include("/etc/suid_profile", 0, NULL, 1);
|
||||
include(MKSH_SUID_PROFILE, 0, NULL, 1);
|
||||
else if (Flag(FTALKING)) {
|
||||
char *env_file;
|
||||
|
||||
|
Reference in New Issue
Block a user