Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105847
b: refs/heads/master
c: ef1afd3
h: refs/heads/master
i:
  105845: 442ae0c
  105843: 15658fe
  105839: 6f4f626
v: v3
  • Loading branch information
Shen Feng authored and Linus Torvalds committed Jul 25, 2008
1 parent f066838 commit f1ed8fb
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: 3f31fddfa26b7594b44ff2b34f9a04ba409e0f91
refs/heads/master: ef1afd39519b74fbe1f63c9ab5a14490effec0e3
2 changes: 1 addition & 1 deletion trunk/fs/ext3/xattr_security.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ static size_t
ext3_xattr_security_list(struct inode *inode, char *list, size_t list_size,
const char *name, size_t name_len)
{
const size_t prefix_len = sizeof(XATTR_SECURITY_PREFIX)-1;
const size_t prefix_len = XATTR_SECURITY_PREFIX_LEN;
const size_t total_len = prefix_len + name_len + 1;


Expand Down
4 changes: 1 addition & 3 deletions trunk/fs/ext3/xattr_trusted.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@
#include <linux/ext3_fs.h>
#include "xattr.h"

#define XATTR_TRUSTED_PREFIX "trusted."

static size_t
ext3_xattr_trusted_list(struct inode *inode, char *list, size_t list_size,
const char *name, size_t name_len)
{
const size_t prefix_len = sizeof(XATTR_TRUSTED_PREFIX)-1;
const size_t 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/ext3/xattr_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@
#include <linux/ext3_fs.h>
#include "xattr.h"

#define XATTR_USER_PREFIX "user."

static size_t
ext3_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 f1ed8fb

Please sign in to comment.