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:
Warren Dukes 2005-03-05 14:28:37 +00:00
parent c8f044572e
commit 8a00fa6c57
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}