File: linux-1.2.x.patch

package info (click to toggle)
dump 0.4b25-0.potato.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 908 kB
  • ctags: 1,075
  • sloc: ansic: 11,607; sh: 2,549; makefile: 183; sed: 5
file content (17 lines) | stat: -rw-r--r-- 399 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- fs/read_write.c.orig	Sun Aug 27 15:41:29 1995
+++ fs/read_write.c	Sun Aug 27 15:42:39 1995
@@ -112,9 +112,11 @@
 	}
 	if (tmp < 0)
 		return -EINVAL;
-	file->f_pos = tmp;
-	file->f_reada = 0;
-	file->f_version = ++event;
+	if (tmp != file->f_pos) {
+		file->f_pos = tmp;
+		file->f_reada = 0;
+		file->f_version = ++event;
+	}
 	memcpy_tofs(result, &file->f_pos, sizeof(loff_t));
 	return 0;
 }