Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libpuffs Rollback previous change as it breaks autmates ...
details: https://anonhg.NetBSD.org/src/rev/17f3c4362b00
branches: trunk
changeset: 771582:17f3c4362b00
user: manu <manu%NetBSD.org@localhost>
date: Fri Nov 25 15:02:02 2011 +0000
description:
Rollback previous change as it breaks autmates tests
diffstat:
lib/libpuffs/dispatcher.c | 22 ++--------------------
lib/libpuffs/null.c | 8 ++++----
2 files changed, 6 insertions(+), 24 deletions(-)
diffs (90 lines):
diff -r 0993fef710d9 -r 17f3c4362b00 lib/libpuffs/dispatcher.c
--- a/lib/libpuffs/dispatcher.c Fri Nov 25 14:39:02 2011 +0000
+++ b/lib/libpuffs/dispatcher.c Fri Nov 25 15:02:02 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dispatcher.c,v 1.37 2011/11/24 01:58:52 manu Exp $ */
+/* $NetBSD: dispatcher.c,v 1.38 2011/11/25 15:02:02 manu Exp $ */
/*
* Copyright (c) 2006, 2007, 2008 Antti Kantee. All Rights Reserved.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if !defined(lint)
-__RCSID("$NetBSD: dispatcher.c,v 1.37 2011/11/24 01:58:52 manu Exp $");
+__RCSID("$NetBSD: dispatcher.c,v 1.38 2011/11/25 15:02:02 manu Exp $");
#endif /* !lint */
#include <sys/types.h>
@@ -512,17 +512,8 @@
pcn.pcn_pkcnp = &auxt->pvnr_cn;
PUFFS_KCREDTOCRED(pcn.pcn_cred, &auxt->pvnr_cn_cred);
- if (buildpath) {
- error = puffs_path_pcnbuild(pu, &pcn, opcookie);
- if (error)
- break;
- }
-
error = pops->puffs_node_remove(pu,
opcookie, auxt->pvnr_cookie_targ, &pcn);
-
- pu->pu_pathfree(pu, &pcn.pcn_po_full);
-
break;
}
@@ -670,17 +661,8 @@
pcn.pcn_pkcnp = &auxt->pvnr_cn;
PUFFS_KCREDTOCRED(pcn.pcn_cred, &auxt->pvnr_cn_cred);
- if (buildpath) {
- error = puffs_path_pcnbuild(pu, &pcn, opcookie);
- if (error)
- break;
- }
-
error = pops->puffs_node_rmdir(pu,
opcookie, auxt->pvnr_cookie_targ, &pcn);
-
- pu->pu_pathfree(pu, &pcn.pcn_po_full);
-
break;
}
diff -r 0993fef710d9 -r 17f3c4362b00 lib/libpuffs/null.c
--- a/lib/libpuffs/null.c Fri Nov 25 14:39:02 2011 +0000
+++ b/lib/libpuffs/null.c Fri Nov 25 15:02:02 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: null.c,v 1.32 2011/11/24 01:58:52 manu Exp $ */
+/* $NetBSD: null.c,v 1.33 2011/11/25 15:02:02 manu Exp $ */
/*
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
@@ -27,7 +27,7 @@
#include <sys/cdefs.h>
#if !defined(lint)
-__RCSID("$NetBSD: null.c,v 1.32 2011/11/24 01:58:52 manu Exp $");
+__RCSID("$NetBSD: null.c,v 1.33 2011/11/25 15:02:02 manu Exp $");
#endif /* !lint */
/*
@@ -453,7 +453,7 @@
{
struct puffs_node *pn_targ = targ;
- if (unlink(PCNPATH(pcn)) == -1)
+ if (unlink(PNPATH(pn_targ)) == -1)
return errno;
puffs_pn_remove(pn_targ);
@@ -515,7 +515,7 @@
{
struct puffs_node *pn_targ = targ;
- if (rmdir(PCNPATH(pcn)) == -1)
+ if (rmdir(PNPATH(pn_targ)) == -1)
return errno;
puffs_pn_remove(pn_targ);
Home |
Main Index |
Thread Index |
Old Index