Skip to content

Commit 209aa47

Browse files
committed
sysutils/tmate: add missed pledge
OK: rsadowski@
1 parent f839fe8 commit 209aa47

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

sysutils/tmate/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ GH_ACCOUNT = tmate-io
44
GH_PROJECT = tmate
55
GH_TAGNAME = 2.4.0
66
CATEGORIES = sysutils
7-
REVISION = 7
7+
REVISION = 8
88

99
SITES.p = https://github.com/tmate-io/tmate/commit/
1010
PATCHFILES.p = tmate-bad-fingerprint{cbec43f56dfb48c2fb6e00faa2cb85443d4b7d8f}.patch \
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Add missing inet promise.
2+
3+
Index: client.c
4+
--- client.c.orig
5+
+++ client.c
6+
@@ -391,7 +391,7 @@ client_main(struct event_base *base, int argc, char **
7+
*
8+
* "sendfd" is dropped later in client_dispatch_wait().
9+
*/
10+
- if (pledge("stdio unix sendfd proc exec tty", NULL) != 0)
11+
+ if (pledge("stdio unix sendfd proc exec tty inet", NULL) != 0)
12+
fatal("pledge failed");
13+
#endif
14+
15+
@@ -652,7 +652,7 @@ client_dispatch_wait(struct imsg *imsg, const char *sh
16+
* get the first message from the server.
17+
*/
18+
if (!pledge_applied) {
19+
- if (pledge("stdio unix proc exec tty", NULL) != 0)
20+
+ if (pledge("stdio unix proc exec tty inet", NULL) != 0)
21+
fatal("pledge failed");
22+
pledge_applied = 1;
23+
};

0 commit comments

Comments
 (0)