{"push_id":717479853,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"d70da0b0f8a669af972ba4303b97e87893d25917","before":"81ab21068f09fedb560a27e3e54bbf54531415c4","commits":[{"sha":"5428c98a421fe7e5907c050a7e820f5045b61e61","author":{"email":"94274d0b635748ad8df96c0fc4f19e1ecd3f67e2@microsoft.com","name":"stephentoub"},"message":"Fix FileSystem enumeration with broken symlinks\n\nToday when enumerating directories, we look only for entries with DT_DIR (directory) or DT_REG (regular file); if we encounter something unknown or a symlink, we stat to resolve it and determine whether it's actually an S_IFDIR (directory) or S_IFREG (regular file). There are (at least) two problems with this:\n\n1) The stat to a symlink will fail if the symlink points to a non-existent entry.\n2) We end up skipping lots of special files, e.g. FIFOs.\n\nThe commit changes our logic to simply special case directories: we treat everything as a file unless we're sure it's a directory. This directly fixes (2), and indirectly fixes (1): our logic for DirectoryExists already ignores any stat errors, returning false if the symlink couldn't be resolved, such that this naturally maps to our desired behavior of broken symlinks being categorized as a file.","distinct":true,"url":"https://api.github.com/repos/dotnet/corefx/commits/5428c98a421fe7e5907c050a7e820f5045b61e61"},{"sha":"d70da0b0f8a669af972ba4303b97e87893d25917","author":{"email":"94274d0b635748ad8df96c0fc4f19e1ecd3f67e2@microsoft.com","name":"Stephen Toub"},"message":"Merge pull request #2247 from stephentoub/enumerate_symlink\n\nFix FileSystem enumeration with broken symlinks","distinct":true,"url":"https://api.github.com/repos/dotnet/corefx/commits/d70da0b0f8a669af972ba4303b97e87893d25917"}]}