summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-04-11 00:39:24 +0000
committerMiles Bader <miles@gnu.org>1995-04-11 00:39:24 +0000
commit54ab36c50603b0e85ed1fe7af348a31cd3714c97 (patch)
treef884dc8278518bb9320708075137cec325a9113e
parent9403bed73ddb60cb3e2d8a101e00793325b4735f (diff)
(trivfs_S_file_truncate): Always return 0, so O_TRUNC works.
-rw-r--r--trans/null.c4
1 files changed, 1 insertions, 3 deletions
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;
}
/* ---------------------------------------------------------------- */