File: linux-1.2.x.patch

package info (click to toggle)
dump 0.4b41-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,356 kB
  • ctags: 1,987
  • sloc: ansic: 17,610; sh: 3,435; makefile: 213; 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;
 }