Re: [PATCH] forget a blankspace before 'name'

Eric Paris
2009-05-23T13:15:27Z

On Sat, 2009-05-23 at 18:10 +0800, Zhenwen Xu wrote:
> here should add some space before "name="

NAK.

/* This is a helper-function to print the escaped d_path */
void audit_log_d_path(struct audit_buffer *ab, const char *prefix,
struct path *path)
{
char *p, *pathname;

if (prefix)
audit_log_format(ab, " %s", prefix);

Look there, a space before the prefix.

> Signed-off-by: Zhenwen Xu <helight.xu@gmail.com>
> ---
> kernel/auditsc.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/kernel/auditsc.c b/kernel/auditsc.c
> index 7d6ac7c..aa0428e 100644
> --- a/kernel/auditsc.c
> +++ b/kernel/auditsc.c
> @@ -1478,7 +1478,7 @@ static void audit_log_exit(struct audit_context *context, struct task_struct *ts
> case 0:
> /* name was specified as a relative path and the
> * directory component is the cwd */
> - audit_log_d_path(ab, "name=", &context->pwd);
> + audit_log_d_path(ab, " name=", &context->pwd);
> break;
> default:
> /* log the name's directory component */
> --
> 1.5.6.5
>