discuss-gnustep
[Top][All Lists]
Advanced

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

Re: GWorkspace bug


From: Riccardo Mottola
Subject: Re: GWorkspace bug
Date: Thu, 19 Jun 2014 18:04:40 +0200
User-agent: Mozilla/5.0 (X11; OpenBSD i386; rv:26.0) Gecko/20100101 Firefox/26.0 SeaMonkey/2.23

Hi,

desterium@t-online.de wrote:
If in that directory there are at least two files (normal file, folder
or symlink)

with exactly ONE letter and a following colon.  e.g. "m:" and "r:"

searchtool never reaches an end, when recursing in that directory.


I fear I can trace this behaviour directly into base.

I created this directory:

++ testdir
 |
 +--a
 +--b
    +---file1.txt

ok? now I have this small program:
  fm = [NSFileManager defaultManager];
  e = [fm enumeratorAtPath:@"/home/multix/Desktop/testdir"];
  while (o = [e nextObject])
  {
    NSLog(@"%@", o);
  }


It will print out:
2014-06-19 17:56:07.871 DirTest[51] a
2014-06-19 17:56:07.872 DirTest[51] b
2014-06-19 17:56:07.873 DirTest[51] b/file1.txt

Which is fine!

However if I rename the directory "a" to "a:", just that....

The program will loop until it exhausts file descriptors.

<...>
2014-06-19 17:59:11.221 DirTest[10825] a:b
2014-06-19 17:59:11.221 DirTest[10825] a:b/file1.txt
2014-06-19 17:59:11.221 DirTest[10825] a:
2014-06-19 17:59:11.221 DirTest[10825] a:b
2014-06-19 17:59:11.221 DirTest[10825] a:b/file1.txt
2014-06-19 17:59:11.221 DirTest[10825] a:
2014-06-19 17:59:11.221 DirTest[10825] Failed to recurse into directory '/home/multix/Desktop/testdir/b' - Too many open files
<...>

thus I fear it is something in NSFileManager! On unix the ":" shouldn't be special like on Mac where it is a path separator.
Richard, do you have a clue?

Riccardo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]