mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-12 21:44:12 +08:00
gobex: Fix test-server/client file creation mode
This commit is contained in:
parent
14d2bde30d
commit
0e2afe102e
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user