The following patch, against less in unstable, fixes these issues:

Steve
-- 

--- filename.c.orig 2008-02-14 12:41:03.000000000 +0000
+++ filename.c  2008-02-14 12:41:31.000000000 +0000
@@ -861,23 +861,9 @@
    if (returnfd)
    {
        int f;
-       char c;
-
-       /*
-        * Read one char to see if the pipe will produce any data.
-        * If it does, push the char back on the pipe.
-        */
        f = fileno(fd);
        SET_BINARY(f);
-       if (read(f, &c, 1) != 1)
-       {
-           /*
-            * Pipe is empty.  This means there is no alt file.
-            */
-           pclose(fd);
-           return (NULL);
-       }
-       ch_ungetchar(c);
+
        *pfd = (void *) fd;
        *pf = f;
        return (save("-"));




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to