Skip to content

Commit

Permalink
mount.ceph: Fix strncmp length comparing "secretfile".
Browse files Browse the repository at this point in the history
Signed-off-by: Tommi Virtanen <[email protected]>
  • Loading branch information
Tommi Virtanen committed Mar 29, 2011
1 parent ab03eda commit db3703a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mount/mount.ceph.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ static char *parse_options(const char *data, int *filesys_flags)
} else if (strncmp(data, "_netdev", 7) == 0) {
skip = 1; /* ignore */

} else if (strncmp(data, "secretfile", 7) == 0) {
} else if (strncmp(data, "secretfile", 10) == 0) {
char *fn = value;
char *end = fn;
int fd;
Expand Down

0 comments on commit db3703a

Please sign in to comment.