Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84791
b: refs/heads/master
c: e55e212
h: refs/heads/master
i:
  84789: 709dba2
  84787: deee30a
  84783: 110e2f0
v: v3
  • Loading branch information
Miklos Szeredi authored and Linus Torvalds committed Feb 8, 2008
1 parent aa27f50 commit 40302f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 552c3c6c565d08857df48e77e8ce2b223517c3ee
refs/heads/master: e55e212c083f0c51a7d4eccd1746b6dca40ffc41
7 changes: 7 additions & 0 deletions trunk/drivers/isdn/capi/capifs.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ static int capifs_remount(struct super_block *s, int *flags, char *data)
gid_t gid = 0;
umode_t mode = 0600;
char *this_char;
char *new_opt = kstrdup(data, GFP_KERNEL);

this_char = NULL;
while ((this_char = strsep(&data, ",")) != NULL) {
Expand All @@ -72,18 +73,24 @@ static int capifs_remount(struct super_block *s, int *flags, char *data)
return -EINVAL;
}
}

kfree(s->s_options);
s->s_options = new_opt;

config.setuid = setuid;
config.setgid = setgid;
config.uid = uid;
config.gid = gid;
config.mode = mode;

return 0;
}

static struct super_operations capifs_sops =
{
.statfs = simple_statfs,
.remount_fs = capifs_remount,
.show_options = generic_show_options,
};


Expand Down

0 comments on commit 40302f1

Please sign in to comment.