X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fbinfmt_script.c;h=9e3963f7ebf19f85a1742ff034bbb518d51a6aff;hb=64275ea4f33636de198da5c78d0dbe31522555b0;hp=4d0e0f6d3273df654ae2156b0c28cc9f58a8ac57;hpb=721e2629fa2167c0e5a9f10d704b1fee1621a8cb;p=linux-2.6 diff --git a/fs/binfmt_script.c b/fs/binfmt_script.c index 4d0e0f6d32..9e3963f7eb 100644 --- a/fs/binfmt_script.c +++ b/fs/binfmt_script.c @@ -1,7 +1,7 @@ /* * linux/fs/binfmt_script.c * - * Copyright (C) 1996 Martin von Löwis + * Copyright (C) 1996 Martin von Löwis * original #!-checking implemented by tytso. */ @@ -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;