Replace it with a correct check using S_ISCHR() Symbolic links will now work again in linux compatibility.