patch-2.2.10 linux/fs/exec.c

Next file: linux/fs/ext2/file.c
Previous file: linux/fs/coda/psdev.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.9/linux/fs/exec.c linux/fs/exec.c
@@ -257,7 +257,11 @@
 			set_fs(KERNEL_DS);
 		get_user(str, argv+argc);
 		if (!str)
-			panic("VFS: argc is wrong");
+		{
+			set_fs(old_fs);
+			return 0;
+//			panic("VFS: argc is wrong");
+		}
 		if (from_kmem == 1)
 			set_fs(old_fs);
 		len = strlen_user(str);	/* includes the '\0' */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)