Commit 77aca0d4 authored by Jonathan Jenkins's avatar Jonathan Jenkins
Browse files

mode flags for file create

parent 18704c37
Pipeline #57 skipped
......@@ -428,7 +428,7 @@ int ssg_dump(const ssg_t s, const char *fname)
}
// open the file and dump in a single call
fd = open(fname, O_WRONLY | O_CREAT | O_EXCL);
fd = open(fname, O_WRONLY | O_CREAT | O_EXCL, 0644);
if (fd == -1) { ret = -1; goto end; }
// don't include the null char at the end
written = write(fd, addrs_dup, s->buf_size-1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment