summaryrefslogtreecommitdiff
path: root/libdiskfs/file-set-size.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-08-25 13:44:38 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-08-25 13:44:38 +0000
commitd742afca0ce88b31016cc835a50ae029d654feaf (patch)
treef771de5738410eeb6c2c660818221a08ad78a513 /libdiskfs/file-set-size.c
parentb476fe5860f1a745b4a119e08dfe1ab1f026fbd7 (diff)
(diskfs_S_file_truncate): Bother to check the return value of
diskfs_truncate.
Diffstat (limited to 'libdiskfs/file-set-size.c')
-rw-r--r--libdiskfs/file-set-size.c4
1 files changed, 2 insertions, 2 deletions
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);
}));
}