aboutsummaryrefslogtreecommitdiff
path: root/lib/libftpio
diff options
context:
space:
mode:
authorBill Fenner <fenner@FreeBSD.org>1997-10-02 23:26:03 +0000
committerBill Fenner <fenner@FreeBSD.org>1997-10-02 23:26:03 +0000
commitb1cb1b02f102fe18bf9bbcbef37ae130c994a5ea (patch)
tree0c33688bb5251670b8f8511c583f0d0cb7457d65 /lib/libftpio
parent1202aab978b70df9cd47f7c5bea7814a33be107a (diff)
Notes
Diffstat (limited to 'lib/libftpio')
-rw-r--r--lib/libftpio/ftpio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libftpio/ftpio.c b/lib/libftpio/ftpio.c
index 6ba853e37659..5be77f49234a 100644
--- a/lib/libftpio/ftpio.c
+++ b/lib/libftpio/ftpio.c
@@ -14,7 +14,7 @@
* Turned inside out. Now returns xfers as new file ids, not as a special
* `state' of FTP_t
*
- * $Id: ftpio.c,v 1.26 1997/09/18 14:01:15 phk Exp $
+ * $Id: ftpio.c,v 1.27 1997/10/01 07:21:41 jkh Exp $
*
*/
@@ -182,6 +182,9 @@ ftpErrString(int errno)
if (errno == -1)
return("connection in wrong state");
+ if (errno < 100)
+ /* XXX soon UNIX errnos will catch up with FTP protocol errnos */
+ return strerror(errno);
for (k = 0; k < ftpErrListLength; k++)
if (ftpErrList[k].num == errno)
return(ftpErrList[k].string);