]> TLD Linux GIT Repositories - packages/mksh.git/blobdiff - mksh-mkshrc_support.patch
- merged 59c from PLD, recreated patches for fuzz 0
[packages/mksh.git] / mksh-mkshrc_support.patch
index 15465a635bbf2e78e19492d5f59f988b3ee46529..a80d4ed76d0c1f4e383cad9b48a5ef3ac007f261 100644 (file)
@@ -1,12 +1,12 @@
---- mksh-50/main.c.orig        2014-08-21 18:13:38.072682886 +0200
-+++ mksh-50/main.c     2014-08-21 18:29:13.715976954 +0200
-@@ -591,10 +591,14 @@
+diff -ur mksh.orig/main.c mksh/main.c
+--- mksh.orig/main.c   2020-10-01 22:29:21.000000000 +0200
++++ mksh/main.c        2021-01-18 19:11:59.615180226 +0100
+@@ -695,9 +695,14 @@
                if (Flag(FLOGIN))
                        include(substitute("$HOME/.profile", 0), 0, NULL, true);
                if (Flag(FTALKING)) {
--                      cp = substitute(substitute("${ENV:-" MKSHRC_PATH "}",
--                          0), DOTILDE);
-+                      cp = substitute(substitute("${ENV}", 0), DOTILDE);
+-                      cp = substitute("${ENV:-" MKSHRC_PATH "}", DOTILDE);
++                      cp = substitute("${ENV}", DOTILDE);
                        if (cp[0] != '\0')
                                include(cp, 0, NULL, true);
 +                      else {
@@ -15,5 +15,5 @@
 +                              include(cp, 0, NULL, true);
 +                      }
                }
-       } else {
-               include(MKSH_SUID_PROFILE, 0, NULL, true);
+       }
+       if (restricted_shell) {