summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/fdatasync.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-07-22 16:04:38 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-07-22 16:04:38 +0000
commit58f3fab9598c531ea1ea4e13702abb8d87b75bf2 (patch)
tree666c7861336b142ec3bac6812ccbba9b574bdc94 /cpukit/libcsupport/src/fdatasync.c
parent2011-07-21 Till Straumann <strauman@slac.stanford.edu> (diff)
downloadrtems-58f3fab9598c531ea1ea4e13702abb8d87b75bf2.tar.bz2
2011-07-22 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1839/filesystem * libcsupport/include/rtems/libio_.h, libcsupport/src/fchdir.c, libcsupport/src/fdatasync.c, libcsupport/src/fpathconf.c, libcsupport/src/fsync.c, libcsupport/src/ftruncate.c, libcsupport/src/read.c, libcsupport/src/readv.c, libcsupport/src/write.c, libcsupport/src/writev.c: Some calls did not return proper status for permission errors or incorrectly permissions at all.
Diffstat (limited to 'cpukit/libcsupport/src/fdatasync.c')
-rw-r--r--cpukit/libcsupport/src/fdatasync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/fdatasync.c b/cpukit/libcsupport/src/fdatasync.c
index de226af5c1..f29084794b 100644
--- a/cpukit/libcsupport/src/fdatasync.c
+++ b/cpukit/libcsupport/src/fdatasync.c
@@ -1,7 +1,7 @@
/*
* fdatasync() - POSIX 1003.1b 6.6.2 - Synchronize the Data of a File
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2011.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -29,7 +29,7 @@ int fdatasync(
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, EBADF );
/*
* Now process the fdatasync().