{"action":"created","issue":{"url":"https://api.github.com/repos/systemd/systemd/issues/1632","labels_url":"https://api.github.com/repos/systemd/systemd/issues/1632/labels{/name}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/1632/comments","events_url":"https://api.github.com/repos/systemd/systemd/issues/1632/events","html_url":"https://github.com/systemd/systemd/pull/1632","id":112572627,"number":1632,"title":"core: fix namespace parsing","user":{"login":"evverx","id":10195800,"avatar_url":"https://avatars.githubusercontent.com/u/10195800?v=3","gravatar_id":"","url":"https://api.github.com/users/evverx","html_url":"https://github.com/evverx","followers_url":"https://api.github.com/users/evverx/followers","following_url":"https://api.github.com/users/evverx/following{/other_user}","gists_url":"https://api.github.com/users/evverx/gists{/gist_id}","starred_url":"https://api.github.com/users/evverx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evverx/subscriptions","organizations_url":"https://api.github.com/users/evverx/orgs","repos_url":"https://api.github.com/users/evverx/repos","events_url":"https://api.github.com/users/evverx/events{/privacy}","received_events_url":"https://api.github.com/users/evverx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/systemd/systemd/labels/pid1","name":"pid1","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-21T12:06:50Z","updated_at":"2015-10-22T03:46:07Z","closed_at":"2015-10-21T13:56:48Z","pull_request":{"url":"https://api.github.com/repos/systemd/systemd/pulls/1632","html_url":"https://github.com/systemd/systemd/pull/1632","diff_url":"https://github.com/systemd/systemd/pull/1632.diff","patch_url":"https://github.com/systemd/systemd/pull/1632.patch"},"body":"There is a small bug: [`ReadWriteDirectories`, `ReadOnlyDirectories`, `InaccessibleDirectories`](http://www.freedesktop.org/software/systemd/man/systemd.exec.html#ReadWriteDirectories=) don't understand `-/`. The unit startup fails with `Failed at step NAMESPACE spawning`.\r\n\r\n`/` works fine.\r\n\r\n```\r\nroot@jessie-64:~# systemctl cat test-root-namespace\r\n# /etc/systemd/system/test-root-namespace.service\r\n[Service]\r\nType=oneshot\r\nRemainAfterExit=yes\r\nReadOnlyDirectories=-/\r\nExecStart=/bin/sh -c 'echo Test Root Namespace'\r\n\r\nroot@jessie-64:~# systemctl start test-root-namespace\r\nJob for test-root-namespace.service failed because the control process exited with error code. See \"systemctl status test-root-namespace.service\" and \"journalctl -xe\" for details.\r\n\r\nroot@jessie-64:~# journalctl -u test-root-namespace -b -e --no-pager\r\n-- Logs begin at Tue 2015-10-13 18:33:13 UTC, end at Wed 2015-10-21 12:00:56 UTC. --\r\nOct 21 12:00:56 jessie-64 systemd[1]: Starting test-root-namespace.service...\r\nOct 21 12:00:56 jessie-64 systemd[68]: test-root-namespace.service: Failed at step NAMESPACE spawning /bin/sh: Invalid argument\r\nOct 21 12:00:56 jessie-64 systemd[1]: test-root-namespace.service: Main process exited, code=exited, status=226/NAMESPACE\r\nOct 21 12:00:56 jessie-64 systemd[1]: Failed to start test-root-namespace.service.\r\nOct 21 12:00:56 jessie-64 systemd[1]: test-root-namespace.service: Unit entered failed state.\r\nOct 21 12:00:56 jessie-64 systemd[1]: test-root-namespace.service: Failed with result 'exit-code'.\r\n```"},"comment":{"url":"https://api.github.com/repos/systemd/systemd/issues/comments/150098269","html_url":"https://github.com/systemd/systemd/pull/1632#issuecomment-150098269","issue_url":"https://api.github.com/repos/systemd/systemd/issues/1632","id":150098269,"user":{"login":"arvidjaar","id":187138,"avatar_url":"https://avatars.githubusercontent.com/u/187138?v=3","gravatar_id":"","url":"https://api.github.com/users/arvidjaar","html_url":"https://github.com/arvidjaar","followers_url":"https://api.github.com/users/arvidjaar/followers","following_url":"https://api.github.com/users/arvidjaar/following{/other_user}","gists_url":"https://api.github.com/users/arvidjaar/gists{/gist_id}","starred_url":"https://api.github.com/users/arvidjaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arvidjaar/subscriptions","organizations_url":"https://api.github.com/users/arvidjaar/orgs","repos_url":"https://api.github.com/users/arvidjaar/repos","events_url":"https://api.github.com/users/arvidjaar/events{/privacy}","received_events_url":"https://api.github.com/users/arvidjaar/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T03:46:07Z","updated_at":"2015-10-22T03:46:07Z","body":"> `extract_first_word(\"a a\\\\b c\", no-flags) -> [\"a\", \"ab\", \"c\"]`\r\n\r\nThis looks more like a bug."}}