Bernhard Walle schrieb in 1,3K (36 Zeilen):
Programme verlassen sich auch, dass in /dev die Devices sind, ohne nochmal nachzuprüfen.
Falsch.
Man kann nicht alles überprüfen.
Jemand, der die Rueckgabewerte von Systemroutinen nicht prueft, verdient es, Windows-Programmierer geschimpft zu werden. (Es sei denn, er kann im Sourcecode begruenden, warum er das an dieser Stelle ausnahmsweise nicht tut.) # fdisk -l /dev/hde Disk /dev/hde: 16 heads, 63 sectors, 35808 cylinders Units = cylinders of 1008 * 512 bytes Device Boot Start End Blocks Id System /dev/hde1 1 521 262552+ 83 Linux /dev/hde2 522 1562 524664 6 FAT16 /dev/hde3 1563 35808 17259984 8e Linux LVM # mv /dev/hde /dev/old-hde # fdisk -l /dev/hde # strace fdisk -l /dev/hde execve("/sbin/fdisk", ["fdisk", "-l", "/dev/hde"], [/* 47 vars */]) = 0 [...] open("/dev/hde", O_RDONLY) = -1 ENOENT (No such file or directory) _exit(0) = ? -Wolfgang --------------------------------------------------------------------- To unsubscribe, e-mail: suse-linux-unsubscribe@suse.com For additional commands, e-mail: suse-linux-help@suse.com