{"action":"created","issue":{"url":"https://api.github.com/repos/genodelabs/genode/issues/1330","labels_url":"https://api.github.com/repos/genodelabs/genode/issues/1330/labels{/name}","comments_url":"https://api.github.com/repos/genodelabs/genode/issues/1330/comments","events_url":"https://api.github.com/repos/genodelabs/genode/issues/1330/events","html_url":"https://github.com/genodelabs/genode/issues/1330","id":52277353,"number":1330,"title":"libc vfs_plugin: mkdir fails if directory name ends with slash","user":{"login":"rite","id":2690417,"avatar_url":"https://avatars.githubusercontent.com/u/2690417?v=3","gravatar_id":"","url":"https://api.github.com/users/rite","html_url":"https://github.com/rite","followers_url":"https://api.github.com/users/rite/followers","following_url":"https://api.github.com/users/rite/following{/other_user}","gists_url":"https://api.github.com/users/rite/gists{/gist_id}","starred_url":"https://api.github.com/users/rite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rite/subscriptions","organizations_url":"https://api.github.com/users/rite/orgs","repos_url":"https://api.github.com/users/rite/repos","events_url":"https://api.github.com/users/rite/events{/privacy}","received_events_url":"https://api.github.com/users/rite/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/genodelabs/genode/labels/bug","name":"bug","color":"1b7921"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-12-17T18:58:55Z","updated_at":"2015-07-22T13:07:30Z","closed_at":null,"body":"I added tests with the directory \"testdir3/\" to libports/src/test/libc_ffat/main.cc. Now the libc_vfs tests fail:\r\n```\r\n[init -> test-libc_vfs] calling mkdir(dir_name2, 0777) dir_name=testdir2\r\n[init -> test-libc_vfs] mkdir(dir_name2, 0777) succeeded\r\n[init -> test-libc_vfs] calling mkdir(dir_name3, 0777) dir_name=testdir3/\r\n[init -> test-libc_vfs] mkdir(dir_name3, 0777) failed, ret=-1, errno=2\r\n[init] virtual void Genode::Child_policy::exit(int): child \"test-libc_vfs\" exited with exit value -1\r\n```"},"comment":{"url":"https://api.github.com/repos/genodelabs/genode/issues/comments/123714212","html_url":"https://github.com/genodelabs/genode/issues/1330#issuecomment-123714212","issue_url":"https://api.github.com/repos/genodelabs/genode/issues/1330","id":123714212,"user":{"login":"nfeske","id":1268399,"avatar_url":"https://avatars.githubusercontent.com/u/1268399?v=3","gravatar_id":"","url":"https://api.github.com/users/nfeske","html_url":"https://github.com/nfeske","followers_url":"https://api.github.com/users/nfeske/followers","following_url":"https://api.github.com/users/nfeske/following{/other_user}","gists_url":"https://api.github.com/users/nfeske/gists{/gist_id}","starred_url":"https://api.github.com/users/nfeske/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfeske/subscriptions","organizations_url":"https://api.github.com/users/nfeske/orgs","repos_url":"https://api.github.com/users/nfeske/repos","events_url":"https://api.github.com/users/nfeske/events{/privacy}","received_events_url":"https://api.github.com/users/nfeske/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T13:07:30Z","updated_at":"2015-07-22T13:07:30Z","body":"A similar problem can be observed when removing a directory recursively in noux:\r\n\r\n```\r\nrm -r directory/\r\n```\r\n\r\nThis results in the following error message:\r\n\r\n```\r\nrm: cannot remove `foo/': Operation not permitted\r\n```\r\n\r\nHowever when removing the trailing slash, it works fine."}}