From 54ab36c50603b0e85ed1fe7af348a31cd3714c97 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 11 Apr 1995 00:39:24 +0000 Subject: (trivfs_S_file_truncate): Always return 0, so O_TRUNC works. --- trans/null.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'trans/null.c') diff --git a/trans/null.c b/trans/null.c index 02b7a9c0..6995f596 100644 --- a/trans/null.c +++ b/trans/null.c @@ -289,9 +289,7 @@ trivfs_S_io_write (struct trivfs_protid *cred, kern_return_t trivfs_S_file_truncate (struct trivfs_protid *cred, off_t size) { - /* The zero device is `big and fixed size', so can't be truncated; the null - device is always really truncated. */ - return provide_zeros ? EINVAL : 0; + return 0; } /* ---------------------------------------------------------------- */ -- cgit v1.2.3