diff options
author | Miles Bader <miles@gnu.org> | 1995-04-10 16:16:30 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-04-10 16:16:30 +0000 |
commit | 98ec021b32bc1de32ae9a1780f4c9c537c2dd80d (patch) | |
tree | 9989be010e80d1d73c6bd21c5a231a60f31b1f6c /devio | |
parent | f2d72a68233b93339bcc87ab6e66368f7decbe1e (diff) |
(trivfs_S_file_truncate): Always return 0, so O_TRUNC works.
Diffstat (limited to 'devio')
-rw-r--r-- | devio/io.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -212,10 +212,8 @@ trivfs_S_file_truncate (struct trivfs_protid *cred, off_t size) { if (!cred) return EOPNOTSUPP; - else if (dev_is(((struct open *)cred->po->hook)->dev, DEV_SERIAL)) - return 0; else - return EINVAL; + return 0; } /* ---------------------------------------------------------------- */ |