aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-vt.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-07-07 07:20:21 +0200
committerMattias Andrée <maandree@operamail.com>2015-07-07 07:20:21 +0200
commit7502ecfc0c7dbbd652c92e6a92305c0f0ce2fbf8 (patch)
treec2512076ed8836825b82acf29ddde266824af928 /src/mds-vt.c
parentindicies (diff)
downloadmds-7502ecfc0c7dbbd652c92e6a92305c0f0ce2fbf8.tar.gz
mds-7502ecfc0c7dbbd652c92e6a92305c0f0ce2fbf8.tar.bz2
mds-7502ecfc0c7dbbd652c92e6a92305c0f0ce2fbf8.tar.xz
fix error where mode_t argument was not added when O_CREAT was used in open
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/mds-vt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mds-vt.c b/src/mds-vt.c
index 5072d85..7587f41 100644
--- a/src/mds-vt.c
+++ b/src/mds-vt.c
@@ -160,7 +160,7 @@ static int write_vt_file(void)
*intbuf = display_vt;
*(struct stat*)(buf + sizeof(int) / sizeof(char)) = old_vt_stat;
- fail_if (open(vtfile_path, O_WRONLY | O_CREAT), fd < 0);
+ fail_if (open(vtfile_path, O_WRONLY | O_CREAT, 0644), fd < 0);
fail_if (full_write(fd, buf, sizeof(buf)));
return 0;
fail: