summaryrefslogtreecommitdiff
path: root/io/tst-fchmodat.c
diff options
context:
space:
mode:
Diffstat (limited to 'io/tst-fchmodat.c')
-rw-r--r--io/tst-fchmodat.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/io/tst-fchmodat.c b/io/tst-fchmodat.c
index bfb75d62e5..d5a6950e30 100644
--- a/io/tst-fchmodat.c
+++ b/io/tst-fchmodat.c
@@ -114,7 +114,12 @@ do_test (void)
puts ("fchmodat using descriptor for normal file worked");
return 1;
}
- if (errno != ENOTDIR)
+ if (errno == ENOSYS)
+ {
+ puts ("fchmodat function not supported");
+ return 0;
+ }
+ else if (errno != ENOTDIR)
{
puts ("\
error for fchmodat using descriptor for normal file not ENOTDIR ");