Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31395
b: refs/heads/master
c: 190f493
h: refs/heads/master
i:
  31393: 8fc4398
  31391: 47db3d3
v: v3
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed Jun 30, 2006
1 parent 407fa52 commit e60a752
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c2b7a4bb30008dc256d63802e02b6fb950958443
refs/heads/master: 190f4939222b8c07cd62a20e1ce0c7a97fffde99
7 changes: 5 additions & 2 deletions trunk/arch/um/os-Linux/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,11 @@ int create_tmp_file(unsigned long long len)
exit(1);
}

if (lseek64(fd, len, SEEK_SET) < 0) {
perror("os_seek_file");
/* Seek to len - 1 because writing a character there will
* increase the file size by one byte, to the desired length.
*/
if (lseek64(fd, len - 1, SEEK_SET) < 0) {
perror("os_seek_file");
exit(1);
}

Expand Down

0 comments on commit e60a752

Please sign in to comment.