*** empty log message ***

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19300 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Sersale 2004-05-13 12:31:47 +00:00
parent 476a373bf8
commit bc140434b3
2 changed files with 23 additions and 11 deletions

View file

@ -1,3 +1,8 @@
2004-05-04 Enrico Sersale <enrico@imago.ro>
* Source/NSWorkspace.m ([NSWorkspace -mountedRemovableMedia]):
Doesn't consider a final empty line in mtab.
2004-05-12 16:50 Alexander Malmberg <alexander@malmberg.org>
* Source/NSParagraphStyle.m (+defaultWritingDirectionForLanguage:):

View file

@ -1288,19 +1288,26 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
for (i = 0; i < [mounts count]; i++)
{
NSArray *parts;
NSString *type;
parts = [[names objectAtIndex: i] componentsSeparatedByString: @" "];
type = [parts objectAtIndex: 2];
if ([type isEqualToString: @"proc"] == NO
&& [type isEqualToString: @"devpts"] == NO
&& [type isEqualToString: @"shm"] == NO)
NSString *mount = [mounts objectAtIndex: i];
if ([mount length])
{
[names addObject: [parts objectAtIndex: 1]];
}
NSArray *parts = [mount componentsSeparatedByString: @" "];
if ([parts count] >= 2)
{
NSString *type = [parts objectAtIndex: 2];
if ([type isEqualToString: @"proc"] == NO
&& [type isEqualToString: @"devpts"] == NO
&& [type isEqualToString: @"shm"] == NO)
{
[names addObject: [parts objectAtIndex: 1]];
}
}
}
}
return names;
}