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

From: Eric Paris
Date: Sat May 23 2009 - 09:15:42 EST


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@xxxxxxxxx>
> ---
> 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
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/