aboutsummaryrefslogtreecommitdiff
path: root/ftp/frox/files/patch-lib-sstrlib-sstr_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'ftp/frox/files/patch-lib-sstrlib-sstr_io.c')
-rw-r--r--ftp/frox/files/patch-lib-sstrlib-sstr_io.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/ftp/frox/files/patch-lib-sstrlib-sstr_io.c b/ftp/frox/files/patch-lib-sstrlib-sstr_io.c
deleted file mode 100644
index b985c0b9e9be..000000000000
--- a/ftp/frox/files/patch-lib-sstrlib-sstr_io.c
+++ /dev/null
@@ -1,27 +0,0 @@
---- lib/sstrlib/sstr_io.c.orig 2005-02-04 10:24:55 UTC
-+++ lib/sstrlib/sstr_io.c
-@@ -26,6 +26,7 @@
- #include <sys/ioctl.h>
- #include <unistd.h>
- #include <ctype.h>
-+#include <sys/stat.h>
-
- #include "sstr.h"
- #include "sstr_private.h"
-@@ -61,8 +62,14 @@ int sstr_apprintf(sstr * p, const char *
- int sstr_append_read(int fd, sstr * p, int cnt)
- {
- int i;
-- if(ioctl(fd, FIONREAD, &i) == -1)
-- return (-1);
-+ struct stat mystat;
-+
-+ if(ioctl(fd, FIONREAD, &i) == -1) {
-+ fstat(fd,&mystat);
-+ if (mystat.st_mode & S_IFREG == 0)
-+ return (-1);
-+ i=mystat.st_blksize;
-+ }
- if(i == 0)
- return (0);
-