summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>2000-12-19 04:20:13 +0000
committermckusick <mckusick@FreeBSD.org>2000-12-19 04:20:13 +0000
commit119826523104113decb150c935cd97d39d2b5890 (patch)
treeffa9b310ad6e857167cc31bf8a251c9227fc37ae /sys
parentf587d3bd718045cb14ebccfb171b17da0ae9ef45 (diff)
downloadFreeBSD-src-119826523104113decb150c935cd97d39d2b5890.zip
FreeBSD-src-119826523104113decb150c935cd97d39d2b5890.tar.gz
Get rid of spurious check in ffs_truncate for i_size == length
which fails to set the modification time on the file. The same check a few lines later takes the correct action. Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
Diffstat (limited to 'sys')
-rw-r--r--sys/ufs/ffs/ffs_inode.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_inode.c b/sys/ufs/ffs/ffs_inode.c
index a01c02c..2395ec4 100644
--- a/sys/ufs/ffs/ffs_inode.c
+++ b/sys/ufs/ffs/ffs_inode.c
@@ -151,8 +151,6 @@ ffs_truncate(vp, length, flags, cred, p)
off_t osize;
oip = VTOI(ovp);
- if (oip->i_size == length)
- return (0);
fs = oip->i_fs;
if (length < 0)
return (EINVAL);
OpenPOWER on IntegriCloud