Skip to contentSkip to conversation

forget a blankspace before 'name'

PATCH NAK Zhenwen Xu 2 participants 2 messages May 23, 2009 Audit

lore
Share & tools
lore

Zhenwen Xu

author
#0 lore raw

PATCH 1/1 forget a blankspace before 'name'

here should add some space before "name="

---
 kernel/auditsc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/auditsc.c +1 -1
index 7d6ac7c..aa0428e 100644
@@ -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 */
Signature · 5 lines
1.5.6.5

-- 
--------------------------------
http://zhwen.org - Open and Free
maintainer NAK
#1 lore raw
Quoted 1 line · Zhenwen Xu

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.

Quoted 21 lines
---
 kernel/auditsc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/auditsc.c +1 -1
index 7d6ac7c..aa0428e 100644
@@ -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 */
Signature · 1 line
1.5.6.5