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:
@@ -78,7 +78,7 @@ static void freeOssData(OssData * od) {
|
|||||||
static int oss_statDevice(char * device, int * stErrno) {
|
static int oss_statDevice(char * device, int * stErrno) {
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
|
||||||
if(0 == lstat(device, &st)) {
|
if(0 == stat(device, &st)) {
|
||||||
if(!S_ISCHR(st.st_mode)) {
|
if(!S_ISCHR(st.st_mode)) {
|
||||||
return OSS_STAT_NOT_CHAR_DEV;
|
return OSS_STAT_NOT_CHAR_DEV;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user