summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@openbsd.org>2020-12-07 12:27:30 +0100
committerGitHub <noreply@github.com>2020-12-07 12:27:30 +0100
commit51c11c1a24d938a159e6514230b95f80072edd90 (patch)
tree229a20c42476c5a3bdbc210cf55326724c09402d
parentf5a8dd4c58c49a9366de11b37a657dcfb4050310 (diff)
parent7e2f55359dc8535215d592fe132dc382a3ddee7c (diff)
downloadConsoleKit2-51c11c1a24d938a159e6514230b95f80072edd90.tar.gz
Merge pull request #125 from niacat/master1.2.2
NetBSD: merge fixes from pkgsrc
-rw-r--r--src/ck-sysdeps-netbsd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ck-sysdeps-netbsd.c b/src/ck-sysdeps-netbsd.c
index c1fc221..d1e15f6 100644
--- a/src/ck-sysdeps-netbsd.c
+++ b/src/ck-sysdeps-netbsd.c
@@ -36,7 +36,6 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/sysctl.h>
-#include <sys/user.h>
#include <sys/ioctl.h>
#ifdef HAVE_SYS_MOUNT_H
@@ -494,7 +493,7 @@ ck_make_tmpfs (guint uid, guint gid, const gchar *dest)
opts = g_strdup_printf ("mode=0700,uid=%d", uid);
- result = mount("tmpfs", dest, 0, opts);
+ result = mount("tmpfs", dest, 0, opts, strlen(opts));
g_free (opts);