Possible hole in Windows directory restrictions?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Possible hole in Windows directory restrictions?
Date: 2017-12-29 15:56:10
Message-ID: 20469.1514562970@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

In https://postgr.es/m/1514541656508-0.post@n3.nabble.com
it's reported that "SELECT pg_ls_dir('c:')" works to allow
display of the root directory on drive C. If true, this
would be a violation of the principle that the core file
access functions only let you get at PG-related directories.
However, I looked at the code, and it sure looks like
path_is_relative_and_below_cwd() contains code to reject use
of Windows drive letters. Am I missing something? Anyone
want to check if they can reproduce this on a Windows build?

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2017-12-29 16:00:11 Re: Basebackups reported as idle
Previous Message Marco Nenciarini 2017-12-29 15:53:08 Re: [PATCH] session_replication_role = replica with TRUNCATE