From e6acfea051fbae70cb4ca35b89d4aa4fb5d02b40 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 1 Jun 2011 15:31:50 +0200 Subject: osmo-pcap-server: Deal with systems not providing these macros --- src/osmo_server_network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3