sync ports with The Matrix
This commit is contained in:
parent
15ac3e795a
commit
09b3080379
180 changed files with 9334 additions and 2187 deletions
16
sysutils/rset/patches/patch-input_c
Normal file
16
sysutils/rset/patches/patch-input_c
Normal 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);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue