{"action":"closed","issue":{"url":"https://api.github.com/repos/openzfsonosx/zfs/issues/404","labels_url":"https://api.github.com/repos/openzfsonosx/zfs/issues/404/labels{/name}","comments_url":"https://api.github.com/repos/openzfsonosx/zfs/issues/404/comments","events_url":"https://api.github.com/repos/openzfsonosx/zfs/issues/404/events","html_url":"https://github.com/openzfsonosx/zfs/issues/404","id":112075113,"number":404,"title":"Pool history appears blank if zpool history is invoked without sufficient privileges","user":{"login":"ilovezfs","id":5268928,"avatar_url":"https://avatars.githubusercontent.com/u/5268928?v=3","gravatar_id":"","url":"https://api.github.com/users/ilovezfs","html_url":"https://github.com/ilovezfs","followers_url":"https://api.github.com/users/ilovezfs/followers","following_url":"https://api.github.com/users/ilovezfs/following{/other_user}","gists_url":"https://api.github.com/users/ilovezfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ilovezfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilovezfs/subscriptions","organizations_url":"https://api.github.com/users/ilovezfs/orgs","repos_url":"https://api.github.com/users/ilovezfs/repos","events_url":"https://api.github.com/users/ilovezfs/events{/privacy}","received_events_url":"https://api.github.com/users/ilovezfs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openzfsonosx/zfs/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-19T05:34:14Z","updated_at":"2015-10-19T06:47:47Z","closed_at":"2015-10-19T06:47:47Z","body":"The EPERM is recognizable in the exit code but not the output.\r\n\r\n```\r\nbash-4.3$ zpool history ; echo $? ; zpool history | wc -l\r\nHistory for 'internal':\r\n1\r\n       1\r\nbash-4.3$ zpool history internal ; echo $? ; zpool history internal | wc -l\r\nHistory for 'internal':\r\n1\r\n       1\r\nbash-4.3$ sudo zpool history &>/dev/null ; echo $? ; sudo zpool history | wc -l\r\n0\r\n     608\r\nbash-4.3$ sudo zpool history internal &>/dev/null ; echo $? ; sudo zpool history internal | wc -l\r\n0\r\n     608\r\nbash-4.3$\r\n```"}}