diff options
author | Antoine Jacoutot <ajacoutot@openbsd.org> | 2020-12-07 12:27:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-07 12:27:30 +0100 |
commit | 51c11c1a24d938a159e6514230b95f80072edd90 (patch) | |
tree | 229a20c42476c5a3bdbc210cf55326724c09402d | |
parent | f5a8dd4c58c49a9366de11b37a657dcfb4050310 (diff) | |
parent | 7e2f55359dc8535215d592fe132dc382a3ddee7c (diff) | |
download | ConsoleKit2-51c11c1a24d938a159e6514230b95f80072edd90.tar.gz |
Merge pull request #125 from niacat/master1.2.2
NetBSD: merge fixes from pkgsrc
-rw-r--r-- | src/ck-sysdeps-netbsd.c | 3 |
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); |