patches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux