mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 04:07:33 +08:00
2011-02-14 Joel Sherrill <joel.sherrilL@OARcorp.com>
* psximfs02/init.c: Disable EPERM test which does not work when POSIX is disabled.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2011-02-14 Joel Sherrill <joel.sherrilL@OARcorp.com>
|
||||
|
||||
* psximfs02/init.c: Disable EPERM test which does not work when POSIX
|
||||
is disabled.
|
||||
|
||||
2011-02-08 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* include/pmacros.h: Add PRIxblksize_t, PRIxblkcnt_t.
|
||||
|
||||
@@ -142,6 +142,7 @@ rtems_task Init(
|
||||
status = seteuid( 10 );
|
||||
rtems_test_assert( status == 0 );
|
||||
|
||||
#if defined(RTEMS_POSIX_API)
|
||||
puts( "Attempt chmod on /node -- expect EPERM" );
|
||||
status = chmod( "/node", S_IRUSR );
|
||||
rtems_test_assert( status == -1 );
|
||||
@@ -151,6 +152,10 @@ rtems_task Init(
|
||||
status = chown( "/node", 10, 10 );
|
||||
rtems_test_assert( status == -1 );
|
||||
rtems_test_assert( errno == EPERM );
|
||||
#else
|
||||
puts( "Attempt chmod on /node -- EPERM only when POSIX enabled" );
|
||||
puts( "Attempt chown on /node -- EPERM only when POSIX enabled" );
|
||||
#endif
|
||||
|
||||
puts( "Changing euid back to 0 [root]" );
|
||||
status = seteuid( 0 );
|
||||
|
||||
Reference in New Issue
Block a user