diff options
author | Cem Keylan <cem@ckyln.com> | 2020-08-25 03:52:24 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-08-25 03:52:24 +0300 |
commit | 4b4399c0487e225ca95112eab014753758713891 (patch) | |
tree | 56e45e1d6f81b5f7d58d8a39fc265eceb27cb041 /extra/rc/patches/0002-Use-proc-self-fd-0-instead-of-dev-fd-0.patch | |
parent | 3e574d6284df5bf4dd6f9d2f3c456b73d4473e93 (diff) | |
download | repository-4b4399c0487e225ca95112eab014753758713891.tar.gz |
rc: add new package at 50b729e65d
Diffstat (limited to 'extra/rc/patches/0002-Use-proc-self-fd-0-instead-of-dev-fd-0.patch')
-rw-r--r-- | extra/rc/patches/0002-Use-proc-self-fd-0-instead-of-dev-fd-0.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/extra/rc/patches/0002-Use-proc-self-fd-0-instead-of-dev-fd-0.patch b/extra/rc/patches/0002-Use-proc-self-fd-0-instead-of-dev-fd-0.patch new file mode 100644 index 00000000..20edd9b6 --- /dev/null +++ b/extra/rc/patches/0002-Use-proc-self-fd-0-instead-of-dev-fd-0.patch @@ -0,0 +1,28 @@ +From 56359f53946306347ef9bb1f8f3c402adb8f8a5b Mon Sep 17 00:00:00 2001 +From: Michael Forney <mforney@mforney.org> +Date: Mon, 4 Nov 2019 20:59:30 -0800 +Subject: [PATCH] Use /proc/self/fd/0 instead of /dev/fd/0 + +--- + rcmain.unix | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/rcmain.unix b/rcmain.unix +index 42b3be4..1b5d6d2 100644 +--- a/rcmain.unix ++++ b/rcmain.unix +@@ -25,9 +25,9 @@ if not if(flag i){ + if(flag l && test -r $profile) . $profile + status='' + if(! ~ $#* 0) . $* +- . -i /dev/fd/0 ++ . -i /proc/self/fd/0 + } +-if not if(~ $#* 0) . /dev/fd/0 ++if not if(~ $#* 0) . /proc/self/fd/0 + if not{ + status='' + . $* +-- +2.24.0 + |