mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- fstat() now works with "NIL:" and "/dev/null", respectively. Not that
it returns much useful information, though. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15138 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stat_convertfileinfo.c,v 1.8 2006-01-08 12:04:24 obarthel Exp $
|
||||
* $Id: stat_convertfileinfo.c,v 1.9 2006-09-20 19:46:57 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -81,7 +81,7 @@ __convert_file_info_to_stat(
|
||||
mode = S_IFIFO;
|
||||
else if (fib->fib_DirEntryType == ST_SOCKET)
|
||||
mode = S_IFSOCK;
|
||||
else if (fib->fib_DirEntryType == ST_CONSOLE)
|
||||
else if (fib->fib_DirEntryType == ST_CONSOLE || fib->fib_DirEntryType == ST_NIL)
|
||||
mode = S_IFCHR;
|
||||
else if (fib->fib_DirEntryType < 0)
|
||||
mode = S_IFREG;
|
||||
|
||||
Reference in New Issue
Block a user