author: Pavel Emelyanov <xemul@openvz.org> 2008-04-29 00:59:24 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2008-04-29 08:06:04 -0700
commit: 3a2e7f47d71e1df86acc1dda6826890b6546a4e1
parent: cbd9b67bd3883dff0ef4b8ec9229d315a9ba38f0
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/binfmt_script.c b/fs/binfmt_script.c
index ab33939b12a7..9e3963f7ebf1 100644
--- a/fs/binfmt_script.c
+++ b/fs/binfmt_script.c
@@ -29,7 +29,7 @@ static int load_script(struct linux_binprm *bprm,struct pt_regs *regs)
* Sorta complicated, but hopefully it will work. -TYT
*/
- bprm->sh_bang++;
+ bprm->sh_bang = 1;
allow_write_access(bprm->file);
fput(bprm->file);
bprm->file = NULL;