diff -uNr mdadm-2.5.4.orig/mdopen.c mdadm-2.5.4/mdopen.c --- mdadm-2.5.4.orig/mdopen.c 2006-08-11 10:00:03.000000000 +0200 +++ mdadm-2.5.4/mdopen.c 2006-10-20 18:39:25.000000000 +0200 @@ -44,7 +44,8 @@ strcpy(new+7, new+8); else new[7] = '_'; - symlink(dev+5, new); + if(symlink(dev+5, new)) + perror("symlink"); } @@ -258,7 +259,8 @@ if (strncmp(dev, "/dev/md/", 8) == 0) { if (mkdir("/dev/md",0700)==0) { - chown("/dev/md", ci->uid, ci->gid); + if (chown("/dev/md", ci->uid, ci->gid)) + perror("chown"); chmod("/dev/md", ci->mode| ((ci->mode>>2) & 0111)); } } - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html