tfix libplumb - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit 915ce5c28fb8a5413d307ec978ec0c9b85fa72fe
parent f16134194619967ffa53151eeb9538b127aae850
Author: rsc 
Date:   Tue, 25 Nov 2003 03:03:30 +0000

fix libplumb

Diffstat:
  M src/libplumb/mesg.c                 |       9 ++++++---
  M src/libplumb/mkfile                 |       9 +++++----

2 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/src/libplumb/mesg.c b/src/libplumb/mesg.c
t@@ -9,8 +9,10 @@ char *home;
 int
 plumbopen(char *name, int omode)
 {
+#if 0
         int fd, f;
         char *s;
+#endif
         char buf[256];
 
         if(name[0] == '/')
t@@ -21,19 +23,20 @@ plumbopen(char *name, int omode)
                         return -1;
         }
         snprint(buf, sizeof buf, "%s/mnt/plumb", home);
-/*        fd = open(buf, omode);
+#if 0
+        fd = open(buf, omode);
         if(fd >= 0)
                 return fd;
         snprint(buf, sizeof buf, "/mnt/term/mnt/plumb/%s", name);
         fd = open(buf, omode);
         if(fd >= 0)
                 return fd;
-        /* try mounting service * /
+        /* try mounting service */
         s = getenv("plumbsrv");
         if(s == nil)
                 return -1;
         snprint(buf, sizeof buf, "/mnt/plumb/%s", name);
-*/
+#endif
         return open(buf, omode);
 }
 
diff --git a/src/libplumb/mkfile b/src/libplumb/mkfile
t@@ -1,10 +1,11 @@
-