diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-07-07 07:20:21 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-07-07 07:20:21 +0200 |
commit | 7502ecfc0c7dbbd652c92e6a92305c0f0ce2fbf8 (patch) | |
tree | c2512076ed8836825b82acf29ddde266824af928 /src/mds.c | |
parent | indicies (diff) | |
download | mds-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -128,7 +128,7 @@ int main(int argc_, char** argv_) { xsnprintf(pathname, "%s/%u.pid", MDS_RUNTIME_ROOT_DIRECTORY, display); - fd = open(pathname, O_CREAT | O_EXCL); + fd = open(pathname, O_CREAT | O_EXCL, 0644); if (fd == -1) { /* Reuse display index if no longer used. */ |