- add-support-for-reading-stdin-with-gen_init_cpio.patch removed from -mm tree

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

 



The patch titled
     add support for reading stdin with gen_init_cpio
has been removed from the -mm tree.  Its filename was
     add-support-for-reading-stdin-with-gen_init_cpio.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: add support for reading stdin with gen_init_cpio
From: Mike Frysinger <vapier@xxxxxxxxxx>

Treat an argument of "-" as meaning "read stdin for cpio files" so
gen_init_cpio can be piped into.

Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
Cc: Sam Ravnborg <sam@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 usr/gen_init_cpio.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff -puN usr/gen_init_cpio.c~add-support-for-reading-stdin-with-gen_init_cpio usr/gen_init_cpio.c
--- a/usr/gen_init_cpio.c~add-support-for-reading-stdin-with-gen_init_cpio
+++ a/usr/gen_init_cpio.c
@@ -498,7 +498,9 @@ int main (int argc, char *argv[])
 		exit(1);
 	}
 
-	if (! (cpio_list = fopen(argv[1], "r"))) {
+	if (!strcmp(argv[1], "-"))
+		cpio_list = stdin;
+	else if (! (cpio_list = fopen(argv[1], "r"))) {
 		fprintf(stderr, "ERROR: unable to open '%s': %s\n\n",
 			argv[1], strerror(errno));
 		usage(argv[0]);
_

Patches currently in -mm which might be from vapier@xxxxxxxxxx are

git-kbuild.patch
dont-force-uclinux-mtd-map-to-be-root-dev.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux