* fhandler_disk_file.cc (fhandler_disk_file::readdir): Use UINT32_MAX

instead of UINT_MAX.
This commit is contained in:
Corinna Vinschen 2006-04-14 14:34:39 +00:00
parent 5b9262e797
commit b40098e6f2
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-04-14 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (fhandler_disk_file::readdir): Use UINT32_MAX
instead of UINT_MAX.
2006-04-14 Corinna Vinschen <corinna@vinschen.de> 2006-04-14 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (path_conv::hasgood_inode): Make inline. * fhandler_disk_file.cc (path_conv::hasgood_inode): Make inline.
@ -7,7 +12,7 @@
(fhandler_disk_file::opendir): Reformat comment. (fhandler_disk_file::opendir): Reformat comment.
(fhandler_base::fstat_helper): Special case remote file systems (fhandler_base::fstat_helper): Special case remote file systems
returning (unreliable) 32 bit inode numbers. returning (unreliable) 32 bit inode numbers.
(fhandler_base::readdir): Ditto. (fhandler_disk_file::readdir): Ditto.
* fhandler_netdrive.cc (fhandler_netdrive::readdir): Ditto. * fhandler_netdrive.cc (fhandler_netdrive::readdir): Ditto.
2006-04-13 Christopher Faylor <cgf@timesys.com> 2006-04-13 Christopher Faylor <cgf@timesys.com>

View File

@ -1791,7 +1791,7 @@ fhandler_disk_file::readdir (DIR *dir, dirent *de)
/* We can't trust remote inode numbers of only 32 bit. That means, /* We can't trust remote inode numbers of only 32 bit. That means,
all remote inode numbers when running under NT4, as well as all remote inode numbers when running under NT4, as well as
remote NT4 NTFS, as well as shares of Samba version < 3.0. */ remote NT4 NTFS, as well as shares of Samba version < 3.0. */
if (de->d_ino <= UINT_MAX && pc.isremote ()) if (de->d_ino <= UINT32_MAX && pc.isremote ())
{ {
dir->__flags &= ~dirent_set_d_ino; dir->__flags &= ~dirent_set_d_ino;
de->d_ino = 0; de->d_ino = 0;