diff options
author | dg <dg@FreeBSD.org> | 1994-08-02 13:51:05 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-08-02 13:51:05 +0000 |
commit | af911d90343972b30f495ae61e611d9e8de5507d (patch) | |
tree | fdf85cf99dad8416ec210c3c5a7dd88ee6424f74 /sys/ufs | |
parent | bd5cd438f270c38b4d2e706ee4fdf8bc45458121 (diff) | |
download | FreeBSD-src-af911d90343972b30f495ae61e611d9e8de5507d.zip FreeBSD-src-af911d90343972b30f495ae61e611d9e8de5507d.tar.gz |
Completed (hopefully) the kernel support for old style "fastlinks".
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_inode.c b/sys/ufs/ffs/ffs_inode.c index 357f9aa..e7cfa0e 100644 --- a/sys/ufs/ffs/ffs_inode.c +++ b/sys/ufs/ffs/ffs_inode.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ffs_inode.c 8.5 (Berkeley) 12/30/93 - * $Id$ + * $Id: ffs_inode.c,v 1.3 1994/08/02 07:54:20 davidg Exp $ */ #include <sys/param.h> @@ -166,7 +166,7 @@ ffs_truncate(ap) oip = VTOI(ovp); tv = time; if (ovp->v_type == VLNK && - oip->i_size < ovp->v_mount->mnt_maxsymlinklen) { + (oip->i_size < ovp->v_mount->mnt_maxsymlinklen || oip->i_din.di_blocks == 0)) { #ifdef DIAGNOSTIC if (length != 0) panic("ffs_truncate: partial truncate of symlink"); |