Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105837
b: refs/heads/master
c: f905f06
h: refs/heads/master
i:
  105835: 72bb261
v: v3
  • Loading branch information
Shen Feng authored and Linus Torvalds committed Jul 25, 2008
1 parent 139b365 commit ab6f66e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 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: fb523f32275344282f20ef3352cbf03e599241e6
refs/heads/master: f905f06fca5d3949eca12f5a43e251a404b3470a
2 changes: 1 addition & 1 deletion trunk/fs/ext2/xattr_security.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ static size_t
ext2_xattr_security_list(struct inode *inode, char *list, size_t list_size,
const char *name, size_t name_len)
{
const int prefix_len = sizeof(XATTR_SECURITY_PREFIX)-1;
const int prefix_len = XATTR_SECURITY_PREFIX_LEN;
const size_t total_len = prefix_len + name_len + 1;

if (list && total_len <= list_size) {
Expand Down
4 changes: 1 addition & 3 deletions trunk/fs/ext2/xattr_trusted.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@
#include <linux/ext2_fs.h>
#include "xattr.h"

#define XATTR_TRUSTED_PREFIX "trusted."

static size_t
ext2_xattr_trusted_list(struct inode *inode, char *list, size_t list_size,
const char *name, size_t name_len)
{
const int prefix_len = sizeof(XATTR_TRUSTED_PREFIX)-1;
const int prefix_len = XATTR_TRUSTED_PREFIX_LEN;
const size_t total_len = prefix_len + name_len + 1;

if (!capable(CAP_SYS_ADMIN))
Expand Down
4 changes: 1 addition & 3 deletions trunk/fs/ext2/xattr_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@
#include "ext2.h"
#include "xattr.h"

#define XATTR_USER_PREFIX "user."

static size_t
ext2_xattr_user_list(struct inode *inode, char *list, size_t list_size,
const char *name, size_t name_len)
{
const size_t prefix_len = sizeof(XATTR_USER_PREFIX)-1;
const size_t prefix_len = XATTR_USER_PREFIX_LEN;
const size_t total_len = prefix_len + name_len + 1;

if (!test_opt(inode->i_sb, XATTR_USER))
Expand Down

0 comments on commit ab6f66e

Please sign in to comment.