diff options
| author | pooka <pooka@NetBSD.org> | 2007-05-16 10:53:41 +0000 |
|---|---|---|
| committer | pooka <pooka@NetBSD.org> | 2007-05-16 10:53:41 +0000 |
| commit | 71bc398720efdbbfebc73d1c63a5c71b45562830 (patch) | |
| tree | 50532c7909338c727b84dfec60532786aafe0c79 /lib/librefuse | |
| parent | 4fcec1c58b84570fe64a147fc279ce6508618ddc (diff) | |
Enable puffs_fakecc. FUSE file systems don't use continuations anyway,
and now file servers linked against libpthread won't crash when they
attempt to malloc something.
Diffstat (limited to 'lib/librefuse')
| -rw-r--r-- | lib/librefuse/refuse.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/librefuse/refuse.c b/lib/librefuse/refuse.c index 84b6ab713fb..010e8130fb1 100644 --- a/lib/librefuse/refuse.c +++ b/lib/librefuse/refuse.c @@ -1,4 +1,4 @@ -/* $NetBSD: refuse.c,v 1.53 2007/05/15 22:56:16 agc Exp $ */ +/* $NetBSD: refuse.c,v 1.54 2007/05/16 10:53:41 pooka Exp $ */ /* * Copyright © 2007 Alistair Crooks. All rights reserved. @@ -30,7 +30,7 @@ #include <sys/cdefs.h> #if !defined(lint) -__RCSID("$NetBSD: refuse.c,v 1.53 2007/05/15 22:56:16 agc Exp $"); +__RCSID("$NetBSD: refuse.c,v 1.54 2007/05/16 10:53:41 pooka Exp $"); #endif /* !lint */ #include <assert.h> @@ -1132,6 +1132,7 @@ fuse_new(struct fuse_chan *fc, struct fuse_args *args, struct fuse *fuse; char name[64]; char *argv0; + extern int puffs_fakecc; NEW(struct fuse, fuse, "fuse_new", exit(EXIT_FAILURE)); @@ -1176,6 +1177,7 @@ fuse_new(struct fuse_chan *fc, struct fuse_args *args, argv0 = (*args->argv[0] == 0x0) ? fc->args->argv[0] : args->argv[0]; set_refuse_mount_name(&argv0, name, sizeof(name)); + puffs_fakecc = 1; /* XXX */ pu = puffs_mount(pops, fc->dir, MNT_NODEV | MNT_NOSUID, name, fuse, PUFFS_FLAG_BUILDPATH |
