summaryrefslogtreecommitdiff
path: root/devio/io.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-04-10 16:16:30 +0000
committerMiles Bader <miles@gnu.org>1995-04-10 16:16:30 +0000
commit55d427cd34792e8f1f8ce0623261f0dbc55c06e2 (patch)
tree30719dfabceb90b78b91dc258529c30e3d1ba5f0 /devio/io.c
parent67b1677d475055fda642dc8b2fd8324303e428e4 (diff)
(trivfs_S_file_truncate): Always return 0, so O_TRUNC works.
Diffstat (limited to 'devio/io.c')
-rw-r--r--devio/io.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/devio/io.c b/devio/io.c
index 855cf158..107a4c5e 100644
--- a/devio/io.c
+++ b/devio/io.c
@@ -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;
}
/* ---------------------------------------------------------------- */