@Scott,
>> int k = open("/dev/sda", O_WRONLY); >> close(k); >That actually has quite a few side-effects that you might not >realise ;-)
It might be good then to warn people not to run "parted --list" to view partition tables. That seems to open all your devices with O_WRONLY.
@Scott,
>> int k = open("/dev/sda", O_WRONLY);
>> close(k);
>That actually has quite a few side-effects that you might not
>realise ;-)
It might be good then to warn people not to run "parted --list" to view partition tables. That seems to open all your devices with O_WRONLY.