Resolved TODO: We can check for sockets, now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24906 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3cc3dcb385
commit
0fc6c43728
@ -4759,8 +4759,9 @@ file_seek(struct file_descriptor *descriptor, off_t pos, int seekType)
|
||||
// some kinds of files are not seekable
|
||||
switch (stat.st_mode & S_IFMT) {
|
||||
case S_IFIFO:
|
||||
case S_IFSOCK:
|
||||
return ESPIPE;
|
||||
// TODO: We don't catch sockets here, but they are not seekable either (ESPIPE)!
|
||||
|
||||
// The Open Group Base Specs don't mention any file types besides pipes,
|
||||
// fifos, and sockets specially, so we allow seeking them.
|
||||
case S_IFREG:
|
||||
|
Loading…
Reference in New Issue
Block a user