gobex: Fix test-server/client file creation mode

This commit is contained in:
Johan Hedberg 2011-07-11 00:52:33 +03:00 committed by Marcel Holtmann
parent 14d2bde30d
commit 0e2afe102e
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);