* fhandler.h (fhandler_base::close_fs): Reintroduce (as inline function)
for clearness. * fhandler_disk_file.cc (fhandler_base::fstat_fs): Revert previous change. (fhandler_base::open_fs): Ditto. * fhandler_socket.cc (fhandler_socket::close): Ditto.
This commit is contained in:
@@ -437,7 +437,7 @@ fhandler_base::fstat_fs (struct __stat64 *buf)
|
||||
res = fstat_by_handle (buf);
|
||||
bool no_handle = nohandle ();
|
||||
nohandle (false);
|
||||
close ();
|
||||
close_fs ();
|
||||
nohandle (no_handle);
|
||||
set_io_handle (NULL);
|
||||
}
|
||||
@@ -1257,7 +1257,7 @@ fhandler_base::open_fs (int flags, mode_t mode)
|
||||
if (pc.has_buggy_open () && !pc.exists ())
|
||||
{
|
||||
debug_printf ("Buggy open detected.");
|
||||
close ();
|
||||
close_fs ();
|
||||
set_errno (ENOENT);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user