sync ports with The Matrix

This commit is contained in:
purplerain 2023-09-11 22:02:06 +00:00
parent 15ac3e795a
commit 09b3080379
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
180 changed files with 9334 additions and 2187 deletions

View file

@ -0,0 +1,16 @@
fix mkstemp(3) call, backport of upstream commit
https://github.com/eradman/rset/commit/8482f28016e66bdf
Index: input.c
--- input.c.orig
+++ input.c
@@ -81,8 +81,7 @@ yylex() {
exit(1);
}
strlcpy(tmp_src, "/tmp/rset_local.XXXXXX", sizeof tmp_src);
- mkstemp(tmp_src);
- if ((tfd = open(tmp_src, O_CREAT|O_RDWR, 0600)) == -1)
+ if ((tfd = mkstemp(tmp_src)) == -1)
err(1, "open %s", tmp_src);
}