/[gcl]/gcl/o/unixfsys.c
ViewVC logotype

Diff of /gcl/o/unixfsys.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.25 by camm, Thu Oct 6 22:43:40 2005 UTC revision 1.26 by camm, Mon Nov 14 04:48:57 2005 UTC
# Line 668  LFD(Ldirectory)(void) Line 668  LFD(Ldirectory)(void)
668          } else          } else
669                  coerce_to_local_filename(vs_base[0], filename);                  coerce_to_local_filename(vs_base[0], filename);
670    
671          sprintf(command, "ls -d %s 2> /dev/null", filename);          sprintf(command, "j=%s ; "
672                             "while [ \"$j\" != \"\" ] ; do "
673                                "ls -d $(echo $j | cut -f-256 -d\\ ); "
674                                "j=$(echo $j | cut -s -f257- -d\\ ); "
675                                "done 2> /dev/null", filename);
676          fp = popen(command, "r");          fp = popen(command, "r");
677          setbuf(fp, iobuffer);          setbuf(fp, iobuffer);
678          for (;;) {          for (;;) {

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26