diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fts.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -291,6 +291,10 @@ fts_open (char * const *argv, __set_errno (EINVAL); return (NULL); } + if ( ! (options & (FTS_LOGICAL | FTS_PHYSICAL))) { + __set_errno (EINVAL); + return (NULL); + } /* Allocate/initialize the stream */ if ((sp = malloc(sizeof(FTS))) == NULL) |