Diff between 14d2bde30d43c7d677f75530360231ea64f634e6 and 0e2afe102e555b8309c4655552f2f32a26f4d989

Changed Files

File Additions Deletions Status
tools/obex-client-tool.c +1 -1 modified
tools/obex-server-tool.c +1 -1 modified

Full Patch

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
@@ -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 fdf078a..314df93 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);