logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0002-Use-proc-self-fd-0-instead-of-dev-fd-0.patch (658B)


  1. From 56359f53946306347ef9bb1f8f3c402adb8f8a5b Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Mon, 4 Nov 2019 20:59:30 -0800
  4. Subject: [PATCH] Use /proc/self/fd/0 instead of /dev/fd/0
  5. ---
  6. rcmain.unix | 4 ++--
  7. 1 file changed, 2 insertions(+), 2 deletions(-)
  8. diff --git a/rcmain.unix b/rcmain.unix
  9. index 42b3be4..1b5d6d2 100644
  10. --- a/rcmain.unix
  11. +++ b/rcmain.unix
  12. @@ -25,9 +25,9 @@ if not if(flag i){
  13. if(flag l && test -r $profile) . $profile
  14. status=''
  15. if(! ~ $#* 0) . $*
  16. - . -i /dev/fd/0
  17. + . -i /proc/self/fd/0
  18. }
  19. -if not if(~ $#* 0) . /dev/fd/0
  20. +if not if(~ $#* 0) . /proc/self/fd/0
  21. if not{
  22. status=''
  23. . $*
  24. --
  25. 2.24.0