9
0
Fork 0

svn_rev_379

This commit is contained in:
Sascha Hauer 2007-07-05 18:01:48 +02:00 committed by Sascha Hauer
parent d7e3f8d227
commit 31fc4bbff6
1 changed files with 1 additions and 0 deletions

View File

@ -284,6 +284,7 @@ int open(const char *pathname, int flags)
if (flags & O_TRUNC) {
errno = fsdrv->truncate(dev, f, 0);
f->size = 0;
if (errno)
goto out;
}