mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
exec: simplify the copy_strings_kernel calling convention
copy_strings_kernel is always used with a single argument, adjust the calling convention to that. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Alexander Viro <viro@zeniv.linux.org.uk> Link: http://lkml.kernel.org/r/20200501104105.2621149-2-hch@lst.de Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
eac2cece45
commit
986db2d14a
5 changed files with 15 additions and 17 deletions
|
@ -190,13 +190,13 @@ static int load_misc_binary(struct linux_binprm *bprm)
|
|||
bprm->file = NULL;
|
||||
}
|
||||
/* make argv[1] be the path to the binary */
|
||||
retval = copy_strings_kernel(1, &bprm->interp, bprm);
|
||||
retval = copy_string_kernel(bprm->interp, bprm);
|
||||
if (retval < 0)
|
||||
goto error;
|
||||
bprm->argc++;
|
||||
|
||||
/* add the interp as argv[0] */
|
||||
retval = copy_strings_kernel(1, &fmt->interpreter, bprm);
|
||||
retval = copy_string_kernel(fmt->interpreter, bprm);
|
||||
if (retval < 0)
|
||||
goto error;
|
||||
bprm->argc++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue