From 6ee2e9c0316037dab356879b8d49db40b7ee6388 Mon Sep 17 00:00:00 2001 From: pooka Date: Tue, 9 Jan 2007 12:34:20 +0000 Subject: [PATCH] Mark invalid attributes as invalid. Fixes stuff such a cp'ing files when cp uses mmap(). Also makes attributes appear correct. --- usr.sbin/puffs/mount_psshfs/subr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.sbin/puffs/mount_psshfs/subr.c b/usr.sbin/puffs/mount_psshfs/subr.c index d94bc3d0fa17..15f22779c9c8 100644 --- a/usr.sbin/puffs/mount_psshfs/subr.c +++ b/usr.sbin/puffs/mount_psshfs/subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: subr.c,v 1.3 2007/01/07 21:59:27 pooka Exp $ */ +/* $NetBSD: subr.c,v 1.4 2007/01/09 12:34:20 pooka Exp $ */ /* * Copyright (c) 2006 Antti Kantee. All Rights Reserved. @@ -30,7 +30,7 @@ #include #ifndef lint -__RCSID("$NetBSD: subr.c,v 1.3 2007/01/07 21:59:27 pooka Exp $"); +__RCSID("$NetBSD: subr.c,v 1.4 2007/01/09 12:34:20 pooka Exp $"); #endif /* !lint */ #include @@ -265,6 +265,7 @@ direnter(struct puffs_node *parent, const char *entryname) pd = &psn_parent->dir[i]; pd->entryname = estrdup(entryname); pd->valid = 1; + puffs_vattr_null(&pd->va); psn_parent->dentnext++; return pd;