diff options
| author | Gleb Kurtsou <gleb@FreeBSD.org> | 2012-05-16 10:44:09 +0000 |
|---|---|---|
| committer | Gleb Kurtsou <gleb@FreeBSD.org> | 2012-05-16 10:44:09 +0000 |
| commit | ac13a90c4b9d346391a6ddb81f39f55ae9ad8f5b (patch) | |
| tree | 337ab8d770eb1aa09bec1bd91f8f24f48826aa0e /sys/fs/unionfs | |
| parent | 9e460a98e637c142255e79c14dc4886b2fbeba4e (diff) | |
Notes
Diffstat (limited to 'sys/fs/unionfs')
| -rw-r--r-- | sys/fs/unionfs/union_subr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/unionfs/union_subr.c b/sys/fs/unionfs/union_subr.c index dbdaa8e9996b5..528271cda4dbe 100644 --- a/sys/fs/unionfs/union_subr.c +++ b/sys/fs/unionfs/union_subr.c @@ -1184,7 +1184,7 @@ unionfs_check_rmdir(struct vnode *vp, struct ucred *cred, struct thread *td) edp = (struct dirent*)&buf[sizeof(buf) - uio.uio_resid]; for (dp = (struct dirent*)buf; !error && dp < edp; dp = (struct dirent*)((caddr_t)dp + dp->d_reclen)) { - if (dp->d_type == DT_WHT || + if (dp->d_type == DT_WHT || dp->d_fileno == 0 || (dp->d_namlen == 1 && dp->d_name[0] == '.') || (dp->d_namlen == 2 && !bcmp(dp->d_name, "..", 2))) continue; |
