diff --git a/tools/obex-client-tool.c b/tools/obex-client-tool.c
index f83edfa..387c511 100644
--- a/tools/obex-client-tool.c
+++ b/tools/obex-client-tool.c
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 fdf078a..314df93 100644
--- a/tools/obex-server-tool.c
+++ b/tools/obex-server-tool.c
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);