Commit: 78a5ad9a1ccf77881a67763d173123e5987e9da7
Parent: de0c1b311884c98218974ec214f8d50bf3779ece
Author: Michael Forney
Date: Fri, 1 May 2026 18:36:29 -0700
rc: Update to latest git
Diffstat:
4 files changed, 40 insertions(+), 13 deletions(-)
diff --git a/pkg/rc/patch/0002-fix-return-type-for-main.patch b/pkg/rc/patch/0002-fix-return-type-for-main.patch
@@ -1,4 +1,4 @@
-From 64d1d3403037d9ec1895555b8015825c75815f85 Mon Sep 17 00:00:00 2001
+From 39dc3bd751db34f04398b55e1d10a76f522b3d6b Mon Sep 17 00:00:00 2001
From: hovercats <hovercatswithlasereyes@protonmail.com>
Date: Wed, 12 Mar 2025 03:36:44 +0100
Subject: [PATCH] fix return type for main
@@ -8,10 +8,10 @@ Subject: [PATCH] fix return type for main
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/exec.c b/exec.c
-index 32e7644..e3d12e5 100644
+index 28c5797..ce9872a 100644
--- a/exec.c
+++ b/exec.c
-@@ -221,7 +221,7 @@ shuffleredir(void)
+@@ -242,7 +242,7 @@ shuffleredir(void)
* fabricate bootstrap code and start it (*=(argv);. -bq /usr/lib/rcmain $*)
* start interpreting code
*/
@@ -21,5 +21,5 @@ index 32e7644..e3d12e5 100644
{
code bootstrap[20];
--
-2.45.2
+2.49.0
diff --git a/pkg/rc/patch/0003-implement-umask-builtin-on-unix.patch b/pkg/rc/patch/0003-implement-umask-builtin-on-unix.patch
@@ -1,12 +1,14 @@
-From 5f3ce26ce56378ff2bfd7662627a02c1be8da6ce Mon Sep 17 00:00:00 2001
+From 0f88ba02c7bbcb91b428bfb294831769e521a81b Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Sun, 19 Apr 2026 14:11:15 -0700
Subject: [PATCH] implement umask builtin on unix
---
- exec.h | 2 +-
- unix.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++
- 2 files changed, 47 insertions(+), 1 deletion(-)
+ exec.h | 2 +-
+ fns.h | 1 +
+ simple.c | 2 +-
+ unix.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++
+ 4 files changed, 49 insertions(+), 2 deletions(-)
diff --git a/exec.h b/exec.h
index 69b1004..ee8edab 100644
@@ -21,6 +23,31 @@ index 69b1004..ee8edab 100644
void execfunc(var*), execcmds(io*, char*, var*, redir*);
void startfunc(var*, word*, var*, redir*);
+diff --git a/fns.h b/fns.h
+index 339f08b..1644d1e 100644
+--- a/fns.h
++++ b/fns.h
+@@ -45,6 +45,7 @@ int havewaitpid(int);
+ int idchr(int);
+ void inttoascii(char*, int);
+ void kinit(void);
++int mapfd(int);
+ int match(char*, char*, int);
+ char* makepath(char*, char*);
+ void panic(char*, int);
+diff --git a/simple.c b/simple.c
+index 362b77b..1a9d27d 100644
+--- a/simple.c
++++ b/simple.c
+@@ -287,7 +287,7 @@ execshift(void)
+ poplist();
+ }
+
+-static int
++int
+ mapfd(int fd)
+ {
+ redir *rp;
diff --git a/unix.c b/unix.c
index 05d883c..cbb2054 100644
--- a/unix.c
diff --git a/pkg/rc/patch/0004-keep-PATH-and-path-in-sync.patch b/pkg/rc/patch/0004-keep-PATH-and-path-in-sync.patch
@@ -1,4 +1,4 @@
-From 4a4ebe30b0b2a46027451bc8b86459961f30bbd1 Mon Sep 17 00:00:00 2001
+From bc1444426b57c30af71af6a26fa1674984d414a4 Mon Sep 17 00:00:00 2001
From: hovercats <hovercatswithlasereyes@protonmail.com>
Date: Sat, 25 Apr 2026 16:54:31 +0200
Subject: [PATCH] keep $PATH and $path in sync
@@ -11,10 +11,10 @@ Subject: [PATCH] keep $PATH and $path in sync
4 files changed, 99 insertions(+), 8 deletions(-)
diff --git a/exec.c b/exec.c
-index e499d9f..ba11796 100644
+index ce9872a..987960d 100644
--- a/exec.c
+++ b/exec.c
-@@ -244,6 +244,7 @@ main(int argc, char *argv[])
+@@ -265,6 +265,7 @@ main(int argc, char *argv[])
Trapinit();
Vinit();
inttoascii(num, mypid = getpid());
@@ -22,7 +22,7 @@ index e499d9f..ba11796 100644
setvar("pid", newword(num, (word *)0));
setvar("cflag", flag['c']?newword(flag['c'][0], (word *)0)
:(word *)0);
-@@ -737,16 +738,15 @@ void
+@@ -758,16 +759,15 @@ void
Xassign(void)
{
var *v;
diff --git a/pkg/rc/ver b/pkg/rc/ver
@@ -1 +1 @@
-3e907e648d r2
+1884d8fe62