diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-13 09:08:34 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-15 07:34:03 +0200 |
commit | 48dbb6cf16aad7db732b0f929b2e1803dccd6b4a (patch) | |
tree | 38e0f99d4e628795f08a83bb706c16f6fee55435 /cpukit/libcsupport/src | |
parent | libio: Do simple parameter checks early (diff) | |
download | rtems-48dbb6cf16aad7db732b0f929b2e1803dccd6b4a.tar.bz2 |
libio: Remove rtems_libio_check_permissions()
Remove rtems_libio_check_permissions() and convert single user to
rtems_libio_check_permissions_with_error().
Update #3132.
Diffstat (limited to 'cpukit/libcsupport/src')
-rw-r--r-- | cpukit/libcsupport/src/ftruncate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/ftruncate.c b/cpukit/libcsupport/src/ftruncate.c index 3f4e93307d..4a194066e5 100644 --- a/cpukit/libcsupport/src/ftruncate.c +++ b/cpukit/libcsupport/src/ftruncate.c @@ -32,7 +32,7 @@ int ftruncate( int fd, off_t length ) rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); - rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); + rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EINVAL ); rv = (*iop->pathinfo.handlers->ftruncate_h)( iop, length ); } else { |