Page MenuHomeFreeBSD

D12823.diff
No OneTemporary

D12823.diff

Index: head/lib/libcasper/libcasper/libcasper.h
===================================================================
--- head/lib/libcasper/libcasper/libcasper.h
+++ head/lib/libcasper/libcasper/libcasper.h
@@ -56,11 +56,13 @@
struct cap_channel;
typedef struct cap_channel cap_channel_t;
+#define CASPER_SUPPORT (1)
#else
struct cap_channel {
int cch_fd;
};
typedef struct cap_channel cap_channel_t;
+#define CASPER_SUPPORT (0)
#endif /* ! WITH_CASPER */
#endif /* ! _CAP_CHANNEL_T_DECLARED */
Index: head/sbin/ping/ping.c
===================================================================
--- head/sbin/ping/ping.c
+++ head/sbin/ping/ping.c
@@ -709,7 +709,7 @@
if (options & F_NUMERIC)
cansandbox = true;
else if (capdns != NULL)
- cansandbox = true;
+ cansandbox = CASPER_SUPPORT;
else
cansandbox = false;

File Metadata

Mime Type
text/plain
Expires
Sat, Oct 10, 9:59 PM (20 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40571700
Default Alt Text
D12823.diff (839 B)

Event Timeline