[Ocfs2-commits] jlbec commits r1002 - trunk/src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Fri Jun 4 13:21:19 CDT 2004
Author: jlbec
Date: 2004-06-04 12:21:17 -0500 (Fri, 04 Jun 2004)
New Revision: 1002
Modified:
trunk/src/namei.c
Log:
readd S_ISDIR fix
Modified: trunk/src/namei.c
===================================================================
--- trunk/src/namei.c 2004-06-04 00:59:41 UTC (rev 1001)
+++ trunk/src/namei.c 2004-06-04 17:21:17 UTC (rev 1002)
@@ -522,7 +522,7 @@
status = -EBUSY;
- if (!empty_dir(inode)) {
+ if (S_ISDIR (inode->i_mode) && !empty_dir(inode)) {
LOG_TRACE_STR ("dentry is not empty, cannot delete");
goto bail;
} else if (OCFS_I(inode)->open_hndl_cnt > 0) {
More information about the Ocfs2-commits
mailing list