tavoid EPROTO in case not there (Tim Wiess) - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 6007b4d97bc6332eaa831d3e9fdd0bad259e0bfe
(DIR) parent 1866bcc995cc56be2ee1a9a954aa93d102727077
(HTM) Author: rsc <devnull@localhost>
Date: Thu, 12 Oct 2006 01:55:09 +0000
avoid EPROTO in case not there (Tim Wiess)
Diffstat:
M src/cmd/9pfuse/errstr.c | 4 ++++
1 file changed, 4 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/src/cmd/9pfuse/errstr.c b/src/cmd/9pfuse/errstr.c
t@@ -41,7 +41,11 @@ static Error errortab[] = {
{ "illegal", EINVAL },
{ "read-only", EROFS },
{ "read only", EROFS },
+#ifdef EPROTO
{ "proto", EPROTO },
+#else
+ { "proto", EINVAL },
+#endif
{ "entry", ENOENT },
};