mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
fixed check for regular file type in win32-specific code
svn path=/trunk/icecast/; revision=4879
This commit is contained in:
parent
be325ccd24
commit
a8d602fe33
@ -727,7 +727,7 @@ static void _handle_get_request(connection_t *con,
|
||||
}
|
||||
else if(fileserve && stat(fullpath, &statbuf) == 0 &&
|
||||
#ifdef _WIN32
|
||||
(statbuf.st_mode == S_IFREG))
|
||||
((statbuf.st_mode) & _S_IFREG))
|
||||
#else
|
||||
S_ISREG(statbuf.st_mode))
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user