mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-21 20:51:52 +00:00
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:
parent
1687dd452f
commit
208e2a0082
2 changed files with 7 additions and 14 deletions
|
@ -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>
|
2004-07-06 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Tools/AGSHtml.h: Fix printf missing argument bug.
|
* Tools/AGSHtml.h: Fix printf missing argument bug.
|
||||||
|
|
|
@ -2882,14 +2882,10 @@ static NSSet *fileKeys = nil;
|
||||||
return statbuf.st_gid;
|
return statbuf.st_gid;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (defined(sparc) && defined(DEBUG))
|
|
||||||
static int sparc_warn = 0;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
- (NSString*) fileGroupOwnerAccountName
|
- (NSString*) fileGroupOwnerAccountName
|
||||||
{
|
{
|
||||||
NSString *result = @"UnknownGroup";
|
NSString *result = @"UnknownGroup";
|
||||||
#if defined(HAVE_GRP_H) && !(defined(sparc) && defined(DEBUG))
|
#if defined(HAVE_GRP_H)
|
||||||
struct group *gp;
|
struct group *gp;
|
||||||
|
|
||||||
gp = getgrgid(statbuf.st_gid);
|
gp = getgrgid(statbuf.st_gid);
|
||||||
|
@ -2897,15 +2893,6 @@ static int sparc_warn = 0;
|
||||||
{
|
{
|
||||||
result = [NSString stringWithCString: gp->gr_name];
|
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
|
#endif
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue