Re: BUG #15120: use of getcwd(3)/chdir(2) during path resolution(exec.c)
От
Christoph Berg
Тема
Re: BUG #15120: use of getcwd(3)/chdir(2) during path resolution(exec.c)
Дата
Msg-id
20180317204051.GG23570@msg.df7cb.de
Ответ на
Список
Дерево обсуждения
BUG #15120: use of getcwd(3)/chdir(2) during path resolution (exec.c) PG Bug reporting form <noreply@postgresql.org>
Re: BUG #15120: use of getcwd(3)/chdir(2) during path resolution (exec.c) Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #15120: use of getcwd(3)/chdir(2) during path resolution(exec.c) Petar Bogdanovic <petar@smokva.net>
Re: BUG #15120: use of getcwd(3)/chdir(2) during path resolution (exec.c) Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: BUG #15120: use of getcwd(3)/chdir(2) during path resolution(exec.c) Christoph Berg <myon@debian.org>
Re: BUG #15120: use of getcwd(3)/chdir(2) during path resolution(exec.c) Petar Bogdanovic <petar@smokva.net>
Re: BUG #15120: use of getcwd(3)/chdir(2) during path resolution (exec.c) Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #15120: use of getcwd(3)/chdir(2) during path resolution (exec.c) Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #15120: use of getcwd(3)/chdir(2) during path resolution (exec.c) Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: Andrew Gierth 2018-03-17 <87in9uhbco.fsf@news-spur.riddles.org.uk> > Tom> I think your example of "sudo /usr/bin/pg_ctl" is pretty > Tom> artificial; who'd bother spelling that out? > > Not necessarily exactly like that, but we do occasionally get this issue > coming up on the IRC channel. It's absolutely not artificial. I can easily trigger the message from my home directory: $ chmod 700 . $ sudo -u postgres psql could not change directory to "/home/cbe": Permission denied I never observed any negative side effects of it, though. (Except for the obvious fact that "\i somethinginmyhome.sql" won't work.) Christoph
В списке pgsql-bugs по дате отправления
От: Andrew Gierth
Дата:
От: Tom Lane
Дата: