diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-05 18:01:48 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-07-05 18:01:48 +0200 |
commit | 31fc4bbff6f0e58bc3266833da7de4b2df9c7efd (patch) | |
tree | 235e657c09f0a64462bc64dcf6e8e2c9bdf0dd7e /fs | |
parent | d7e3f8d227dfb143ed37a51ed31d445964872c99 (diff) | |
download | barebox-31fc4bbff6f0e58bc3266833da7de4b2df9c7efd.tar.gz barebox-31fc4bbff6f0e58bc3266833da7de4b2df9c7efd.tar.xz |
svn_rev_379
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fs.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |