View | Details | Raw Unified | Return to bug 116292
Collapse All | Expand All

(-)cramfs/files/patch-cramfsck.c (+20 lines)
Lines 17-19 Link Here
17
 
17
 
18
 /* Exit codes used by fsck-type programs */
18
 /* Exit codes used by fsck-type programs */
19
 #define FSCK_OK          0	/* No errors */
19
 #define FSCK_OK          0	/* No errors */
20
@@ -603,8 +603,17 @@
21
 	}
22
 
23
 	if (opt_extract) {
24
-		if (mknod(path, i->mode, devtype) < 0) {
25
-			die(FSCK_ERROR, 1, "mknod failed: %s", path);
26
+		switch(type) {
27
+		default:
28
+			if (mknod(path, i->mode, devtype) < 0) {
29
+				die(FSCK_ERROR, 1, "mknod failed: %s", path);
30
+			}
31
+			break;
32
+		case 'p':
33
+			if (mkfifo(path, i->mode) < 0) {
34
+				die(FSCK_ERROR, 1, "mkfifo failed: %s", path);
35
+			}
36
+			break;
37
 		}
38
 		change_file_status(path, i);
39
 	}
(-)cramfs/files/patch-mkcramfs.c (-1 / +1 lines)
Lines 4-10 Link Here
4
 #include <linux/cramfs_fs.h>
4
 #include <linux/cramfs_fs.h>
5
 #include <zlib.h>
5
 #include <zlib.h>
6
 
6
 
7
+#define	MAP_ANONYMOUS	0x20
7
+#define	MAP_ANONYMOUS	MAP_ANON
8
+typedef	long long	loff_t;
8
+typedef	long long	loff_t;
9
+
9
+
10
 /* Exit codes used by mkfs-type programs */
10
 /* Exit codes used by mkfs-type programs */

Return to bug 116292