On Fri, Oct 19, 2007 at 02:37:54PM +0200, Jean Delvare wrote:
Thanks, this was good suggestion. Patch attached.
Btw, I think your example code has a indentation bug:
if (kind != w83781d)
err = sysfs_chmod_file(&dev->kobj,
&sensor_dev_attr_temp3_alarm.dev_attr.attr,
S_IRUGO | S_IWUSR);
if (err)
return err;
--
"rm -rf" only sounds scary if you don't have backups
-