patch-1.3.4 linux/fs/exec.c

Next file: linux/fs/ext/file.c
Previous file: linux/fs/buffer.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.3/linux/fs/exec.c linux/fs/exec.c
@@ -330,13 +330,13 @@
 	current->mm->arg_start = (unsigned long) p;
 	while (argc-->0) {
 		put_user(p,argv++);
-		while (get_fs_byte(p++)) /* nothing */ ;
+		while (get_user(p++)) /* nothing */ ;
 	}
 	put_user(NULL,argv);
 	current->mm->arg_end = current->mm->env_start = (unsigned long) p;
 	while (envc-->0) {
 		put_user(p,envp++);
-		while (get_fs_byte(p++)) /* nothing */ ;
+		while (get_user(p++)) /* nothing */ ;
 	}
 	put_user(NULL,envp);
 	current->mm->env_end = (unsigned long) p;
@@ -358,7 +358,7 @@
 		error = verify_area(VERIFY_READ, tmp, sizeof(char *));
 		if (error)
 			return error;
-		while ((p = (char *) get_user(tmp++)) != NULL) {
+		while ((p = get_user(tmp++)) != NULL) {
 			i++;
 			error = verify_area(VERIFY_READ, p, 1);
 			if (error)
@@ -401,14 +401,14 @@
 	while (argc-- > 0) {
 		if (from_kmem == 1)
 			set_fs(new_fs);
-		if (!(tmp = (char *)get_user(argv+argc)))
+		if (!(tmp = get_user(argv+argc)))
 			panic("VFS: argc is wrong");
 		if (from_kmem == 1)
 			set_fs(old_fs);
 		len=0;		/* remember zero-padding */
 		do {
 			len++;
-		} while (get_fs_byte(tmp++));
+		} while (get_user(tmp++));
 		if (p < len) {	/* this shouldn't happen - 128kB */
 			set_fs(old_fs);
 			return 0;
@@ -427,7 +427,7 @@
 					set_fs(new_fs);
 
 			}
-			*(pag + offset) = get_fs_byte(tmp);
+			*(pag + offset) = get_user(tmp);
 		}
 	}
 	if (from_kmem==2)

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