subuser-security / subuser

Run programs on linux with selectively restricted permissions.
http://subuser.org
GNU Lesser General Public License v3.0
890 stars 65 forks source link

runtime: handle if /dev/dsp is not a directory #222

Closed folti closed 9 years ago

folti commented 9 years ago

In case /dev/dsp is an device file, the previous implementation dies. It happens when ALSA's OSS emulation is not complete.

Check if /dev/dsp is a directory, if it isn't, don't try to traverse it.

timthelion commented 9 years ago

Looks good, thanks.