From d742afca0ce88b31016cc835a50ae029d654feaf Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 25 Aug 1995 13:44:38 +0000 Subject: (diskfs_S_file_truncate): Bother to check the return value of diskfs_truncate. --- libdiskfs/file-set-size.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libdiskfs/file-set-size.c') diff --git a/libdiskfs/file-set-size.c b/libdiskfs/file-set-size.c index 96c83b79..06fc4671 100644 --- a/libdiskfs/file-set-size.c +++ b/libdiskfs/file-set-size.c @@ -1,5 +1,5 @@ /* libdiskfs implementation of fs.defs: file_truncate - Copyright (C) 1992, 1993, 1994 Free Software Foundation + Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -29,6 +29,6 @@ diskfs_S_file_truncate (struct protid *cred, if (!(cred->po->openstat & O_WRITE)) err = EINVAL; else - diskfs_truncate (np, size); + err = diskfs_truncate (np, size); })); } -- cgit v1.2.3