From c747551b64ade7ce606842b3176904e265b6f084 Mon Sep 17 00:00:00 2001 From: xtraeme Date: Wed, 12 Dec 2007 16:37:56 +0000 Subject: [PATCH] puffs_fuse_node_create: if create() is specified set S_IFREG explicitly to avoid passing unspecified mode. Fixes latest ntfs-3g... patch from pooka tested by myself. --- lib/librefuse/refuse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librefuse/refuse.c b/lib/librefuse/refuse.c index 457686ebb90d..a431530bee35 100644 --- a/lib/librefuse/refuse.c +++ b/lib/librefuse/refuse.c @@ -1,4 +1,4 @@ -/* $NetBSD: refuse.c,v 1.85 2007/11/30 19:02:29 pooka Exp $ */ +/* $NetBSD: refuse.c,v 1.86 2007/12/12 16:37:56 xtraeme Exp $ */ /* * Copyright © 2007 Alistair Crooks. All rights reserved. @@ -31,7 +31,7 @@ #include #if !defined(lint) -__RCSID("$NetBSD: refuse.c,v 1.85 2007/11/30 19:02:29 pooka Exp $"); +__RCSID("$NetBSD: refuse.c,v 1.86 2007/12/12 16:37:56 xtraeme Exp $"); #endif /* !lint */ #include @@ -746,7 +746,7 @@ puffs_fuse_node_create(struct puffs_usermount *pu, void *opc, created = 0; if (fuse->op.create) { - ret = fuse->op.create(path, mode, &fi); + ret = fuse->op.create(path, mode | S_IFREG, &fi); if (ret == 0) created = 1;