From da51719239a50b438988b4df7a03d6e6923a1ce1 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 25 Feb 2008 01:01:41 +0000 Subject: [PATCH] Patch by Samuel Rodriguez Perez: Fixed building Haiku images on FreeBSD, which was broken since the introduction of the device support. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24107 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tools/fs_shell/unistd.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tools/fs_shell/unistd.cpp b/src/tools/fs_shell/unistd.cpp index 0c08e75b19..51626e5c4b 100644 --- a/src/tools/fs_shell/unistd.cpp +++ b/src/tools/fs_shell/unistd.cpp @@ -212,6 +212,10 @@ fssh_ioctl(int fd, unsigned long op, ...) struct stat status; if (fstat(fd, &status) == 0) { + // Do nothing for a regular file + if (S_ISREG(status.st_mode)) + break; + struct disklabel disklabel; off_t mediaSize;