bash/enable-dot-logout-and-source-bashrc-through-ssh.patch

38 lines
1.3 KiB
Diff
Raw Normal View History

2021-05-31 20:38:12 +08:00
From fa0abfba964c7eada368d5783f23b5b6894ad417 Mon Sep 17 00:00:00 2001
From: liujian <liujianliu.liu@huawei.com>
Date: Mon, 31 May 2021 22:58:30 +0800
Subject: [PATCH] enable-dot-logout-and-source-bashrc-through-ssh
2020-01-08 09:20:42 +08:00
---
config-top.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/config-top.h b/config-top.h
2021-05-31 20:38:12 +08:00
index 735f75e..4fee122 100644
2020-01-08 09:20:42 +08:00
--- a/config-top.h
+++ b/config-top.h
@@ -94,17 +94,17 @@
/* #define SYS_BASHRC "/etc/bash.bashrc" */
/* System-wide .bash_logout for login shells. */
-/* #define SYS_BASH_LOGOUT "/etc/bash.bash_logout" */
+#define SYS_BASH_LOGOUT "/etc/bash.bash_logout"
/* Define this to make non-interactive shells begun with argv[0][0] == '-'
run the startup files when not in posix mode. */
-/* #define NON_INTERACTIVE_LOGIN_SHELLS */
+#define NON_INTERACTIVE_LOGIN_SHELLS
/* Define this if you want bash to try to check whether it's being run by
sshd and source the .bashrc if so (like the rshd behavior). This checks
for the presence of SSH_CLIENT or SSH2_CLIENT in the initial environment,
which can be fooled under certain not-uncommon circumstances. */
-/* #define SSH_SOURCE_BASHRC */
+#define SSH_SOURCE_BASHRC
2021-05-31 20:38:12 +08:00
/* Define if you want the case-toggling operators (~[~]) and the
2020-01-08 09:20:42 +08:00
`capcase' variable attribute (declare -c). */
--
2021-05-31 20:38:12 +08:00
2.23.0
2020-01-08 09:20:42 +08:00