repo: Only open regular files

Otherwise we'll try to open device files with predictably bad
consequences.
This commit is contained in:
Colin Walters committed 2011-10-19 18:06:06 -04:00
1 parent 961b1c80db
commit aa25334286
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -193,7 +193,7 @@ ostree_stat_and_checksum_file (int dir_fd, const char *path,
goto out;
}
if (!S_ISLNK(stbuf.st_mode))
if (S_ISREG(stbuf.st_mode))
{
fd = ot_util_open_file_read_at (dir_fd, basename, error);
if (fd < 0)