Don't try to open /proc/self/fd/2 as we might not have permission
authorStephen Röttger <stephen.roettger@gmail.com>
Sat, 24 Sep 2016 10:02:14 +0000 (12:02 +0200)
committerStephen Röttger <stephen.roettger@gmail.com>
Sat, 24 Sep 2016 10:04:40 +0000 (12:04 +0200)
commit115c297958cf0feb91549795366a6d3b30c01378
tree9e6221eafdf9606ec30a13f53e75f541b6d10edf
parentee7de33531440df0925e7f26b4e3932d1ade6297
Don't try to open /proc/self/fd/2 as we might not have permission

The terminal behind fd 2 might be owned by root and can't be opened by the user.
This happens e.g. if you ssh to a server as root and su to the user.
log.c