[bug #21331] FISH: Retrieving an unreadable file causes MC to hang



Follow-up Comment #4, bug #21331 (project mc):

I am sure. Later I replied that I checked out from the CVS because I could
not download the patch.
+verbose+
$ cvs -z3 -q diff vfs/fish.c
Index: vfs/fish.c
===================================================================
RCS file: /cvsroot/mc/mc/vfs/fish.c,v
retrieving revision 1.122
diff -r1.122 fish.c
621a622,628
> 
>     /*
>      * Check whether the remote file is readable by using `dd' to copy 
>      * a single byte from the remote file to /dev/null. If `dd' completes
>      * with exit status of 0 use `cat' to send the file contents to the
>      * standard output (i.e. over the network).
>      */
623a631,632
>               "if dd if=/%s of=/dev/null bs=1 count=1 2>/dev/null ;n"
>               "thenn"
630,631c639,643
<               "echo '### 200'n", 
<               name, name, name );
---
>               "echo '### 200'n"
>               "elsen"
>               "echo '### 500'n" 
>               "fin",
>               name, name, name, name );
-verbose-

What I forgot to tell in my previous comment is that the attempt to view a
remote unreadable file is ignored and the remote unreadable directories appear
empty. Error panels are displayed however, when these attempts are done on a
local file system.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?21331>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]