Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119019 - cat /dev/urandom >/dev/dsp will create the file if it's not there
Summary: cat /dev/urandom >/dev/dsp will create the file if it's not there
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Alsa Configuration Guide (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Shyam Mani (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-14 12:42 UTC by Christoph Bussenius
Modified: 2006-03-24 23:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Bussenius 2006-01-14 12:42:35 UTC
The alsa guide contains the lines:

# cat /dev/urandom > /dev/dsp

Note: /dev/dsp is a symlink to /dev/sound/dsp and should be automatically created. Try re-directing the output to /dev/sound/dsp in case you don't get a "No such file or directory" error.


The fact that you would get a "No such file or directory" error is wrong.  If you run the command as a user and /dev/dsp does not exist, you will get Permission Denied.  Worse, if you run it as root (as the '#' prompt suggests), the file will be created and it will probably contain megabytes of random before you get a chance to press ^C.

I think the guide should point this out.
Comment 1 Shyam Mani (RETIRED) gentoo-dev 2006-03-24 23:00:22 UTC
After considering the consequences of the command as well as other saner ways to test, I've removed the section from the guide entirely. In the long run, I'm sure we'll have lesser problems that way.

Thank you for you valuable input and apologies for taking so much time to fix this.