Revision 8083a3e5 linux-user/syscall.c
b/linux-user/syscall.c | ||
---|---|---|
1603 | 1603 |
int reclen; |
1604 | 1604 |
de = dirp; |
1605 | 1605 |
while (len > 0) { |
1606 |
reclen = tswap16(de->d_reclen);
|
|
1606 |
reclen = de->d_reclen;
|
|
1607 | 1607 |
if (reclen > len) |
1608 | 1608 |
break; |
1609 |
de->d_reclen = reclen;
|
|
1609 |
de->d_reclen = tswap16(reclen);
|
|
1610 | 1610 |
tswapls(&de->d_ino); |
1611 | 1611 |
tswapls(&de->d_off); |
1612 | 1612 |
de = (struct dirent *)((char *)de + reclen); |
... | ... | |
1626 | 1626 |
int reclen; |
1627 | 1627 |
de = dirp; |
1628 | 1628 |
while (len > 0) { |
1629 |
reclen = tswap16(de->d_reclen);
|
|
1629 |
reclen = de->d_reclen;
|
|
1630 | 1630 |
if (reclen > len) |
1631 | 1631 |
break; |
1632 |
de->d_reclen = reclen;
|
|
1632 |
de->d_reclen = tswap16(reclen);
|
|
1633 | 1633 |
tswap64s(&de->d_ino); |
1634 | 1634 |
tswap64s(&de->d_off); |
1635 | 1635 |
de = (struct dirent64 *)((char *)de + reclen); |
Also available in: Unified diff