SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
15
net/arp-scan/patches/patch-arp-scan_c
Normal file
15
net/arp-scan/patches/patch-arp-scan_c
Normal file
|
@ -0,0 +1,15 @@
|
|||
Index: arp-scan.c
|
||||
--- arp-scan.c.orig
|
||||
+++ arp-scan.c
|
||||
@@ -454,6 +454,11 @@ main(int argc, char *argv[]) {
|
||||
err_sys("open %s", pkt_filename);
|
||||
}
|
||||
/*
|
||||
+ * Setup is done at this point, so it's a natural point to pledge().
|
||||
+ */
|
||||
+ if (pledge("stdio dns bpf", NULL) == -1)
|
||||
+ err_sys("pledge");
|
||||
+ /*
|
||||
* Create and initialise array of pointers to host entries.
|
||||
*/
|
||||
helistptr = Malloc(num_hosts * sizeof(host_entry *));
|
Loading…
Add table
Add a link
Reference in a new issue