Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170032
b: refs/heads/master
c: 86b1bc6
h: refs/heads/master
v: v3
  • Loading branch information
Tetsuo Handa authored and Eric W. Biederman committed Nov 12, 2009
1 parent 0e488e1 commit 800c5e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 50469619999a0bc2ba8fa1365dc443b7aed190af
refs/heads/master: 86b1bc68e2f4244e4ea5db5458df9d19259fbb30
10 changes: 1 addition & 9 deletions trunk/security/tomoyo/tomoyo.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,7 @@ static char *tomoyo_sysctl_path(struct ctl_table *table)
*--end = '\0';
buflen--;
while (table) {
char num[32];
const char *sp = table->procname;

if (!sp) {
memset(num, 0, sizeof(num));
snprintf(num, sizeof(num) - 1, "=%d=", table->ctl_name);
sp = num;
}
if (tomoyo_prepend(&end, &buflen, sp) ||
if (tomoyo_prepend(&end, &buflen, table->procname) ||
tomoyo_prepend(&end, &buflen, "/"))
goto out;
table = table->parent;
Expand Down

0 comments on commit 800c5e5

Please sign in to comment.