Re: [PATCH 4/4] exec: move the call to getname_flags into do_execveat

2021-03-26 Thread Arnd Bergmann
On Fri, Mar 26, 2021 at 3:38 PM Christoph Hellwig wrote: > > Remove the duplicated copying of the pathname into the common helper. > > Signed-off-by: Christoph Hellwig Looks correct, but > -static int do_execveat(int fd, struct filename *filename, > +static int do_execveat(int fd, const char __

[PATCH 4/4] exec: move the call to getname_flags into do_execveat

2021-03-26 Thread Christoph Hellwig
Remove the duplicated copying of the pathname into the common helper. Signed-off-by: Christoph Hellwig --- fs/exec.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/fs/exec.c b/fs/exec.c index b34c1eb9e7ad8e..5c0dd8f85fe7b5 100644 --- a/fs/exec.c +++ b/fs/exec.c