From 98ec021b32bc1de32ae9a1780f4c9c537c2dd80d Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 10 Apr 1995 16:16:30 +0000 Subject: (trivfs_S_file_truncate): Always return 0, so O_TRUNC works. --- devio/io.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'devio') 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; } /* ---------------------------------------------------------------- */ -- cgit v1.2.3