mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-29 13:15:05 +00:00
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>
This commit is contained in:
parent
40dbba5754
commit
6da443cb22
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70182
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue