aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-06-01 15:31:50 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-06-01 15:31:50 +0200
commite6acfea051fbae70cb4ca35b89d4aa4fb5d02b40 (patch)
tree4fadfc1b06c6e6288638adc1178b6a9c132ead79 /src
parent0391b0a9c3d31f5ffdd09d6490b1054b428d8acd (diff)
osmo-pcap-server: Deal with systems not providing these macros
Diffstat (limited to 'src')
-rw-r--r--src/osmo_server_network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo_server_network.c b/src/osmo_server_network.c
index fb08722..da3e777 100644
--- a/src/osmo_server_network.c
+++ b/src/osmo_server_network.c
@@ -67,7 +67,7 @@ static void restart_pcap(struct osmo_pcap_conn *conn)
conn->server->base_path, conn->name,
tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday,
tm->tm_hour, tm->tm_min, tm->tm_sec);
- conn->local_fd = creat(filename, S_IRUSR);
+ conn->local_fd = creat(filename, 0400);
if (conn->local_fd < 0) {
LOGP(DSERVER, LOGL_ERROR, "Failed to file: '%s'\n", filename);
return;