From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org> |
Subject: | Use of 'cp -r' in CREATE DATABASE |
Date: | 2003-12-11 23:36:05 |
Message-ID: | 200312112336.hBBNa5Y16507@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Our dbcommands.c has for create database:
snprintf(buf, sizeof(buf), "cp -r '%s' '%s'", src_loc, target_dir);
but my BSD/OS manual only documents 'cp -R' and mentions:
Historic versions of the cp utility had a -r option. This implementation
supports that option, however, its use is strongly discouraged, as it
does not correctly copy special files, symbolic links or fifo's.
I think we should switch to -R in our code.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2003-12-11 23:45:00 | Re: pljava revisited |
Previous Message | Alvaro Herrera Munoz | 2003-12-11 22:42:01 | Re: pgsql-server/src/bin/initdb nls.mk po/it.po |