add "dns" promise, for web streams
This commit is contained in:
parent
f072b093b8
commit
1a7865ca3d
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.2 2016/07/10 12:03:06 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.3 2016/07/11 07:51:30 czarkoff Exp $
|
||||
|
||||
COMMENT = console audio player
|
||||
DISTNAME = moc-2.5.1
|
||||
@ -6,7 +6,7 @@ CATEGORIES = audio
|
||||
HOMEPAGE = http://moc.daper.net/
|
||||
MASTER_SITES = http://ftp.daper.net/pub/soft/moc/stable/
|
||||
EXTRACT_SUFX = .tar.bz2
|
||||
REVISION = 0
|
||||
REVISION = 1
|
||||
|
||||
# GPLv3+
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
|
@ -1,15 +1,15 @@
|
||||
$OpenBSD: patch-main_c,v 1.1.1.1 2016/07/10 10:40:43 czarkoff Exp $
|
||||
$OpenBSD: patch-main_c,v 1.2 2016/07/11 07:51:31 czarkoff Exp $
|
||||
|
||||
* pledge(2)
|
||||
* remove srand(3) (see patch-playlist_c)
|
||||
|
||||
--- main.c.orig Sun Apr 24 06:23:30 2016
|
||||
+++ main.c Sun Jun 5 18:23:23 2016
|
||||
+++ main.c Mon Jul 11 08:57:56 2016
|
||||
@@ -174,6 +174,8 @@ static void start_moc (const struct parameters *params
|
||||
case 0: /* child - start server */
|
||||
set_me_server ();
|
||||
list_sock = server_init (params->debug, params->foreground);
|
||||
+ if (pledge("stdio rpath wpath cpath inet unix audio", NULL) == -1)
|
||||
+ if (pledge("stdio rpath wpath cpath inet unix dns audio", NULL) == -1)
|
||||
+ fatal ("pledge() failed: %s", strerror(errno));
|
||||
rc = write (notify_pipe[1], &i, sizeof(i));
|
||||
if (rc < 0)
|
||||
@ -18,7 +18,7 @@ $OpenBSD: patch-main_c,v 1.1.1.1 2016/07/10 10:40:43 czarkoff Exp $
|
||||
else if (params->foreground && params->only_server) {
|
||||
set_me_server ();
|
||||
list_sock = server_init (params->debug, params->foreground);
|
||||
+ if (pledge("stdio rpath wpath cpath inet unix audio", NULL) == -1)
|
||||
+ if (pledge("stdio rpath wpath cpath inet unix dns audio", NULL) == -1)
|
||||
+ fatal ("pledge() failed: %s", strerror(errno));
|
||||
server_loop (list_sock);
|
||||
}
|
||||
@ -33,7 +33,7 @@ $OpenBSD: patch-main_c,v 1.1.1.1 2016/07/10 10:40:43 czarkoff Exp $
|
||||
struct utsname uts;
|
||||
#endif
|
||||
|
||||
+ if (pledge("stdio rpath wpath cpath flock inet unix tty proc prot_exec audio", NULL) == -1)
|
||||
+ if (pledge("stdio rpath wpath cpath flock inet unix dns tty proc prot_exec audio", NULL) == -1)
|
||||
+ fatal ("pledge() failed: %s", strerror(errno));
|
||||
+
|
||||
#ifdef PACKAGE_REVISION
|
||||
|
Loading…
Reference in New Issue
Block a user