rust/src/libstd
NODA, Kai 3980cdecd0 libstd: explicitly disallow io::fs::File to open a directory.
On *BSD systems, we can open(2) a directory and directly read(2) from
it due to an old tradition.  We should avoid doing so by explicitly
calling fstat(2) to check the type of the opened file.

Opening a directory as a module file can't always be avoided.
Even when there's no "path" attribute trick involved, there can always
be a *directory* named "my_module.rs".

Fix #12460

Signed-off-by: NODA, Kai <nodakai@gmail.com>
2014-12-04 11:19:55 +08:00
..
collections std: Change the behavior of reserve for HashMap. 2014-11-30 22:52:11 +01:00
comm Fixup various places that were doing &T+'a and do &(T+'a) 2014-11-26 11:42:06 -05:00
io libstd: explicitly disallow io::fs::File to open a directory. 2014-12-04 11:19:55 +08:00
num Documentation fix for std::num::strconv 2014-11-27 17:14:00 +09:00
path /*! -> //! 2014-11-26 16:50:14 -08:00
rand Fallout from stabilization 2014-11-25 17:41:54 -08:00
rt Fixed iOS build after Iter stab 2014-11-27 11:34:43 +02:00
sync rollup merge of #19329: steveklabnik/doc_style_cleanup2 2014-11-26 16:51:02 -08:00
sys libstd: io::fs::File::stat() need not to take &mut self. 2014-12-04 11:19:55 +08:00
thread_local std: Add a new top-level thread_local module 2014-11-23 23:37:16 -08:00
time Rename remaining Failures to Panic 2014-11-20 23:45:42 +05:30
ascii.rs Fallout from stabilization 2014-11-25 17:41:54 -08:00
bitflags.rs Repair various cases where values of distinct types were being operated 2014-11-05 09:15:28 -05:00
c_vec.rs Rename unwrap functions to into_inner 2014-11-23 15:26:53 -08:00
dynamic_lib.rs /*! -> //! 2014-11-26 16:50:14 -08:00
error.rs Switch to purely namespaced enums 2014-11-17 07:35:51 -08:00
failure.rs Fixup various places that were doing &T+'a and do &(T+'a) 2014-11-26 11:42:06 -05:00
fmt.rs More test fixes and rebase conflicts! 2014-11-26 18:10:57 -08:00
hash.rs /*! -> //! 2014-11-26 16:50:14 -08:00
lib.rs Remove special casing for some meta attributes 2014-11-26 11:44:45 -08:00
macros.rs Fix example code for unreachable! 2014-11-27 15:31:11 +01:00
os.rs rollup merge of #19329: steveklabnik/doc_style_cleanup2 2014-11-26 16:51:02 -08:00
prelude.rs rollup merge of #19326: huonw/safer-syntax 2014-11-26 16:50:12 -08:00
rtdeps.rs Fix spelling errors and capitalization. 2014-09-03 23:10:38 -04:00
task.rs Deprecate MaybeOwned[Vector] in favor of Cow 2014-11-25 11:22:23 -05:00