Skip to content

Commit

Permalink
rbd-fuse: fix unlink
Browse files Browse the repository at this point in the history
The path contains a leading / that needs to be ignored.

Fixes: ceph#8197
Signed-off-by: Josh Durgin <[email protected]>
  • Loading branch information
lesserevil authored and jdurgin committed Apr 29, 2014
1 parent 915bd92 commit 3920f40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rbd_fuse/rbd-fuse.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ rbdfs_utime(const char *path, struct utimbuf *utime)
int
rbdfs_unlink(const char *path)
{
int fd = find_openrbd(path);
int fd = find_openrbd(path+1);
if (fd != -1) {
struct rbd_openimage *rbd = &opentbl[fd];
rbd_close(rbd->image);
Expand Down

0 comments on commit 3920f40

Please sign in to comment.