Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/udf In case there is trouble determining the number o...
details: https://anonhg.NetBSD.org/src/rev/01a72e7b3143
branches: trunk
changeset: 787905:01a72e7b3143
user: reinoud <reinoud%NetBSD.org@localhost>
date: Fri Jul 12 16:14:10 2013 +0000
description:
In case there is trouble determining the number of entries in a directory,
return its not empty to be on the safe side.
diffstat:
sys/fs/udf/udf_rename.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 9089e344a3ab -r 01a72e7b3143 sys/fs/udf/udf_rename.c
--- a/sys/fs/udf/udf_rename.c Fri Jul 12 14:28:39 2013 +0000
+++ b/sys/fs/udf/udf_rename.c Fri Jul 12 16:14:10 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_rename.c,v 1.4 2013/07/11 19:41:19 reinoud Exp $ */
+/* $NetBSD: udf_rename.c,v 1.5 2013/07/12 16:14:10 reinoud Exp $ */
/*
* Copyright (c) 2013 Reinoud Zandijk
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: udf_rename.c,v 1.4 2013/07/11 19:41:19 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udf_rename.c,v 1.5 2013/07/12 16:14:10 reinoud Exp $");
#include <sys/param.h>
#include <sys/errno.h>
@@ -140,7 +140,8 @@
error = udf_dirhash_fill(udf_node);
if (error) {
dirhash_put(udf_node->dir_hash);
- return error;
+ /* VERY unlikely, answer its not empty */
+ return 0;
}
/* check to see if the directory is empty */
Home |
Main Index |
Thread Index |
Old Index