diff options
author | Daniel Mack <zonque@gmail.com> | 2014-08-18 12:24:04 +0200 |
---|---|---|
committer | Daniel Mack <zonque@gmail.com> | 2014-08-18 12:37:22 +0200 |
commit | 4632777024b7ba210e4efe5cfabc8cd0b5991045 (patch) | |
tree | 363c6464d7affbfa8809e7105cc50b593dcdfa65 /src/shared/memfd.c | |
parent | 43bde981ccc57c744f164a9d95d46c7ce8f21808 (diff) |
memfd: fix memfd_create() syscall wrapper
Unlike earlier versions, the syscall only takes 2 arguments in its
final version, not 3.
Diffstat (limited to 'src/shared/memfd.c')
-rw-r--r-- | src/shared/memfd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/memfd.c b/src/shared/memfd.c index 4dd70a2473..dcebfc9d6f 100644 --- a/src/shared/memfd.c +++ b/src/shared/memfd.c @@ -90,7 +90,7 @@ int sd_memfd_new(sd_memfd **m, const char *name) { if (!n) return -ENOMEM; - n->fd = memfd_create(name, 0, MFD_ALLOW_SEALING); + n->fd = memfd_create(name, MFD_ALLOW_SEALING); if (n->fd < 0) { free(n); return -errno; |