Bug 8233

Summary: startkde magic/random problem.
Product: [Retired] Red Hat Linux Reporter: Michael Maher <mike>
Component: kdebaseAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: mike
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: www.lastfoot.com
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-01-18 11:47:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael Maher 2000-01-06 17:46:17 UTC
In the /usr/bin/startkde script, it will hang on the 'random' section of
the script.

f=$HOME/.kde/share/apps/kfm/magic
[ -f $f ] || dd if=/dev/random bs=1 count=16 | md5sum > $f

Should be:

f=$HOME/.kde/share/apps/kfm/magic
[ -f $f ] || dd if=/dev/urandom bs=1 count=16 | md5sum > $f

Note this test:
[root@vnc1-1 bin]# dd if=/dev/random bs=1 count=16 of=foo
0+0 records in
0+0 records out

[root@vnc1-1 bin]# dd if=/dev/urandom bs=1 count=16 of=foo
16+0 records in
16+0 records out


If the startkde script enters this state it will hang.

Comment 1 Bernhard Rosenkraenzer 2000-01-18 11:47:59 UTC
Thanks, fixed.