From 0e2afe102e555b8309c4655552f2f32a26f4d989 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 11 Jul 2011 00:52:33 +0300 Subject: [PATCH] gobex: Fix test-server/client file creation mode --- tools/obex-client-tool.c | 2 +- tools/obex-server-tool.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/obex-client-tool.c b/tools/obex-client-tool.c index f83edfa4d..387c51182 100644 --- a/tools/obex-client-tool.c +++ b/tools/obex-client-tool.c @@ -193,7 +193,7 @@ static void cmd_get(int argc, char **argv) return; } - fd = open(argv[1], O_WRONLY | O_CREAT | O_NOCTTY, 0); + fd = open(argv[1], O_WRONLY | O_CREAT | O_NOCTTY, 0600); if (fd < 0) { g_printerr("open: %s\n", strerror(errno)); return; diff --git a/tools/obex-server-tool.c b/tools/obex-server-tool.c index fdf078ab8..314df93e3 100644 --- a/tools/obex-server-tool.c +++ b/tools/obex-server-tool.c @@ -124,7 +124,7 @@ static void handle_put(GObex *obex, GObexPacket *req, gpointer user_data) data = g_new0(struct transfer_data, 1); - data->fd = open(name, O_WRONLY | O_CREAT | O_NOCTTY, 0); + data->fd = open(name, O_WRONLY | O_CREAT | O_NOCTTY, 0600); if (data->fd < 0) { g_printerr("open(%s): %s\n", name, strerror(errno)); g_free(data); -- 2.47.3