patch-2.1.4 linux/fs/binfmt_aout.c
Next file: linux/fs/binfmt_elf.c
Previous file: linux/fs/affs/inode.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Sun Oct 13 21:11:16 1996
- Orig file:
v2.1.3/linux/fs/binfmt_aout.c
- Orig date:
Sat Sep 28 23:53:58 1996
diff -u --recursive --new-file v2.1.3/linux/fs/binfmt_aout.c linux/fs/binfmt_aout.c
@@ -234,14 +234,20 @@
put_user(argc,--sp);
current->mm->arg_start = (unsigned long) p;
while (argc-->0) {
+ char c;
put_user(p,argv++);
- while (get_user(p++)) /* nothing */ ;
+ do {
+ get_user(c,p++);
+ } while (c);
}
put_user(NULL,argv);
current->mm->arg_end = current->mm->env_start = (unsigned long) p;
while (envc-->0) {
+ char c;
put_user(p,envp++);
- while (get_user(p++)) /* nothing */ ;
+ do {
+ get_user(c,p++);
+ } while (c);
}
put_user(NULL,envp);
current->mm->env_end = (unsigned long) p;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov