we want to stat, not lstat
git-svn-id: https://svn.musicpd.org/mpd/trunk@3014 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
c8f044572e
commit
8a00fa6c57
|
@ -78,7 +78,7 @@ static void freeOssData(OssData * od) {
|
|||
static int oss_statDevice(char * device, int * stErrno) {
|
||||
struct stat st;
|
||||
|
||||
if(0 == lstat(device, &st)) {
|
||||
if(0 == stat(device, &st)) {
|
||||
if(!S_ISCHR(st.st_mode)) {
|
||||
return OSS_STAT_NOT_CHAR_DEV;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue