psql -f doesn't complain about directories - Mailing list pgsql-hackers

From Peter Eisentraut
Subject psql -f doesn't complain about directories
Date
Msg-id 200711142031.16899.peter_e@gmx.net
Whole thread Raw
Responses Re: psql -f doesn't complain about directories  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List pgsql-hackers
Letting psql execute a script file that is really a directory doesn't complain 
at all:

$ psql -f /tmp

Should we do some kind of stat() before opening the file and abort if it's a 
directory?

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCHES] a tsearch2 (8.2.4) dictionary that only filters out stopwords
Next
From: Oleg Bartunov
Date:
Subject: Re: [PATCHES] a tsearch2 (8.2.4) dictionary that only filters out stopwords