FreeBSD Bugzilla – Attachment 81189 Details for
Bug 116292
sysutils/cramfs patches for mkcramfs/cramfsck
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.15 KB, created by
Christopher Hall
on 2007-09-12 01:00:04 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Christopher Hall
Created:
2007-09-12 01:00:04 UTC
Size:
1.15 KB
patch
obsolete
>diff -urN cramfs.orig/files/patch-cramfsck.c cramfs/files/patch-cramfsck.c >--- cramfs.orig/files/patch-cramfsck.c Thu Dec 7 17:36:45 2006 >+++ cramfs/files/patch-cramfsck.c Mon Sep 10 15:41:55 2007 >@@ -17,3 +17,23 @@ > > /* Exit codes used by fsck-type programs */ > #define FSCK_OK 0 /* No errors */ >+@@ -603,8 +603,17 @@ >+ } >+ >+ if (opt_extract) { >+- if (mknod(path, i->mode, devtype) < 0) { >+- die(FSCK_ERROR, 1, "mknod failed: %s", path); >++ switch(type) { >++ default: >++ if (mknod(path, i->mode, devtype) < 0) { >++ die(FSCK_ERROR, 1, "mknod failed: %s", path); >++ } >++ break; >++ case 'p': >++ if (mkfifo(path, i->mode) < 0) { >++ die(FSCK_ERROR, 1, "mkfifo failed: %s", path); >++ } >++ break; >+ } >+ change_file_status(path, i); >+ } >diff -urN cramfs.orig/files/patch-mkcramfs.c cramfs/files/patch-mkcramfs.c >--- cramfs.orig/files/patch-mkcramfs.c Thu Dec 7 17:36:45 2006 >+++ cramfs/files/patch-mkcramfs.c Tue Sep 11 08:42:40 2007 >@@ -4,7 +4,7 @@ > #include <linux/cramfs_fs.h> > #include <zlib.h> > >-+#define MAP_ANONYMOUS 0x20 >++#define MAP_ANONYMOUS MAP_ANON > +typedef long long loff_t; > + > /* Exit codes used by mkfs-type programs */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 116292
: 81189