patch-1.3.4 linux/fs/msdos/file.c

Next file: linux/fs/namei.c
Previous file: linux/fs/msdos/dir.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.3/linux/fs/msdos/file.c linux/fs/msdos/file.c
@@ -247,7 +247,7 @@
 					filp->f_pos = inode->i_size;
 					break;
 				}else if (ch != '\r'){
-					put_fs_byte(ch,buf++);
+					put_user(ch,buf++);
 				}
 			}
 		}
@@ -330,7 +330,7 @@
 				carry = 0;
 			}
 			for (size = 0; size < count && left; size++) {
-				if ((ch = get_fs_byte(buf++)) == '\n') {
+				if ((ch = get_user(buf++)) == '\n') {
 					*to++ = '\r';
 					left--;
 				}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this