am 68ec71eb: am 7d03c9cb: pathconf: dead loop in bionic function __2_symlinks
* commit '68ec71ebd6df12596dc5688c907c76ea4b32c9b4': pathconf: dead loop in bionic function __2_symlinks
This commit is contained in:
commit
cb4d9c0e1d
@ -70,14 +70,13 @@ __filesizebits( struct statfs* s )
|
||||
};
|
||||
int nn = 0;
|
||||
|
||||
for (;;) {
|
||||
if ( known64[nn] == EOL_MAGIC )
|
||||
return 32;
|
||||
|
||||
if ( known64[nn] == s->f_type )
|
||||
for (; known64[nn] != EOL_MAGIC; ++nn) {
|
||||
if (known64[nn] == s->f_type) {
|
||||
return 64;
|
||||
}
|
||||
}
|
||||
return 32;
|
||||
}
|
||||
|
||||
|
||||
static long
|
||||
@ -99,13 +98,11 @@ __link_max( struct statfs* s )
|
||||
};
|
||||
int nn = 0;
|
||||
|
||||
for (;;) {
|
||||
if ( knownMax[nn].type == EOL_MAGIC )
|
||||
return LINK_MAX;
|
||||
|
||||
if ( knownMax[nn].type == s->f_type )
|
||||
for (; knownMax[nn].type != EOL_MAGIC; ++nn) {
|
||||
if (knownMax[nn].type == s->f_type) {
|
||||
return knownMax[nn].max;
|
||||
}
|
||||
}
|
||||
return LINK_MAX;
|
||||
}
|
||||
|
||||
@ -121,13 +118,13 @@ __2_symlinks( struct statfs* s )
|
||||
};
|
||||
int nn = 0;
|
||||
|
||||
for (;;) {
|
||||
if (knownNoSymlinks[nn] == 0)
|
||||
return 1;
|
||||
if (knownNoSymlinks[nn] == s->f_type)
|
||||
for (; knownNoSymlinks[nn] != EOL_MAGIC; ++nn) {
|
||||
if (knownNoSymlinks[nn] == s->f_type) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
static long
|
||||
__name_max( struct statfs* s )
|
||||
|
Loading…
x
Reference in New Issue
Block a user