diff options
| author | ws <ws@NetBSD.org> | 1998-09-21 15:17:42 +0000 |
|---|---|---|
| committer | ws <ws@NetBSD.org> | 1998-09-21 15:17:42 +0000 |
| commit | c6b24f68f030561999470f4792ccd60e4bc13ce0 (patch) | |
| tree | 70b9e3efc77127825ff30cee0662bebace65084f /sys | |
| parent | 07bb8331e860fbb5af7b371bb24b805289220e2c (diff) | |
Set the tooffset after renaming even if in root directory.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/msdosfs/msdosfs_vnops.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/msdosfs/msdosfs_vnops.c b/sys/msdosfs/msdosfs_vnops.c index 34439f03918..0720e41cec0 100644 --- a/sys/msdosfs/msdosfs_vnops.c +++ b/sys/msdosfs/msdosfs_vnops.c @@ -1,4 +1,4 @@ -/* $NetBSD: msdosfs_vnops.c,v 1.75 1998/08/10 08:11:13 matthias Exp $ */ +/* $NetBSD: msdosfs_vnops.c,v 1.76 1998/09/21 15:17:42 ws Exp $ */ /*- * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank. @@ -1152,8 +1152,9 @@ abortit: VOP_UNLOCK(fvp, 0); goto bad; } + ip->de_diroffset = to_diroffset; if (ip->de_dirclust != MSDOSFSROOT) - ip->de_diroffset = to_diroffset & pmp->pm_crbomask; + ip->de_diroffset &= pmp->pm_crbomask; } reinsert(ip); if (newparent) |
