Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/msdosfs Return EINVAL for rename and delete operation...
details: https://anonhg.NetBSD.org/src/rev/24bfc36e20ea
branches: trunk
changeset: 756736:24bfc36e20ea
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Fri Jul 30 16:40:43 2010 +0000
description:
Return EINVAL for rename and delete operations to the
root directory instead of the erroneous EROFS.
diffstat:
sys/fs/msdosfs/msdosfs_lookup.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 538964eb4698 -r 24bfc36e20ea sys/fs/msdosfs/msdosfs_lookup.c
--- a/sys/fs/msdosfs/msdosfs_lookup.c Fri Jul 30 16:23:49 2010 +0000
+++ b/sys/fs/msdosfs/msdosfs_lookup.c Fri Jul 30 16:40:43 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: msdosfs_lookup.c,v 1.21 2010/06/24 13:03:09 hannken Exp $ */
+/* $NetBSD: msdosfs_lookup.c,v 1.22 2010/07/30 16:40:43 mlelstv Exp $ */
/*-
* Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: msdosfs_lookup.c,v 1.21 2010/06/24 13:03:09 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msdosfs_lookup.c,v 1.22 2010/07/30 16:40:43 mlelstv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -461,7 +461,7 @@
* Don't allow deleting the root.
*/
if (blkoff == MSDOSFSROOT_OFS)
- return EROFS; /* really? XXX */
+ return EINVAL;
/*
* Write access to directory required to delete files.
@@ -497,7 +497,7 @@
return (EROFS);
if (blkoff == MSDOSFSROOT_OFS)
- return EROFS; /* really? XXX */
+ return EINVAL;
error = VOP_ACCESS(vdp, VWRITE, cnp->cn_cred);
if (error)
Home |
Main Index |
Thread Index |
Old Index