Remove solaris warning

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19703 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2004-07-10 03:19:56 +00:00
parent 86694004a9
commit 668efd29c8
2 changed files with 7 additions and 14 deletions

View file

@ -1,3 +1,9 @@
2004-07-09 Adam Fedor <fedor@gnu.org>
* Source/NSFileManager.m ([GSAttrDictionary
-fileGroupOwnerAccountName]): Remove Solaris warning - no longer
necessary.
2004-07-06 Richard Frith-Macdonald <rfm@gnu.org>
* Tools/AGSHtml.h: Fix printf missing argument bug.

View file

@ -2882,14 +2882,10 @@ static NSSet *fileKeys = nil;
return statbuf.st_gid;
}
#if (defined(sparc) && defined(DEBUG))
static int sparc_warn = 0;
#endif
- (NSString*) fileGroupOwnerAccountName
{
NSString *result = @"UnknownGroup";
#if defined(HAVE_GRP_H) && !(defined(sparc) && defined(DEBUG))
#if defined(HAVE_GRP_H)
struct group *gp;
gp = getgrgid(statbuf.st_gid);
@ -2897,15 +2893,6 @@ static int sparc_warn = 0;
{
result = [NSString stringWithCString: gp->gr_name];
}
#else
#if (defined(sparc) && defined(DEBUG))
if (sparc_warn == 0)
{
sparc_warn = 1;
/* Can't be NSLog - causes recursion in [NSUser -synchronize] */
fprintf(stderr, "WARNING (NSFileManager): Disabling group enums (setgrent, etc) since this crashes gdb on sparc machines\n");
}
#endif
#endif
return result;
}