shithub: riscv

Download patch

ref: e0cb81af9497c322d9656fec0201586f2428aad5
parent: b053f5d0607689b0217bc5e41669c5370335667c
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Mar 7 08:35:46 EST 2020

ramfs: don't use Srv.nopipe

--- a/sys/src/cmd/ramfs.c
+++ b/sys/src/cmd/ramfs.c
@@ -454,11 +454,11 @@
 {
 	char *srvname = nil;
 	char *mtpt = "/tmp";
-	int mountflags;
+	int mountflags, stdio;
 
 	fs.tree = alloctree(nil, nil, DMDIR|0777, fsdestroyfile);
 
-	mountflags = 0;
+	mountflags = stdio = 0;
 	ARGBEGIN{
 	case 'D':
 		chatty9p++;
@@ -475,9 +475,7 @@
 		mtpt = EARGF(usage());
 		break;
 	case 'i':
-		fs.nopipe = 1;
-		srvname = nil;
-		mtpt = nil;
+		stdio = 1;
 		break;
 	case 'p':
 		private = 1;
@@ -500,7 +498,7 @@
 	if(argc > 0)
 		usage();
 
-	if(fs.nopipe){
+	if(stdio){
 		fs.infd = 0;
 		fs.outfd = 1;
 		srv(&fs);