@ -57,8 +57,9 @@ find_region(const char * fn)
fd = open(fn, O_RDONLY);
if ( fd != -1
&& !fstat(fd,&s)
if (fd != -1)
{
if (!fstat(fd,&s)
&& s.st_mode & S_IFREG
&& s.st_size)
@ -100,6 +101,8 @@ find_region(const char * fn)
munmap(addr, s.st_size);
}
close(fd);
return buf;
The note is not visible to the blocked user.