Content-Length: 289506 | pFad | http://github.com/postgrespro/postgres/commit/1a4fd77db85abac63e178506335aee74625f6499

64 Avoid non-POSIX cp flags · postgrespro/postgres@1a4fd77 · GitHub
Skip to content

Commit 1a4fd77

Browse files
committed
Avoid non-POSIX cp flags
Commit 252dcb3 used cp -a, but apparently Solaris doesn't like that. Use cp -RPp instead. Author: Thomas Munro <thomas.munro@gmail.com> Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Discussion: https://postgr.es/m/CA+hUKGL10AoQVMMqgOJ8CTjoz9MLidD8ik2e8PibzLNMz0+aRg@mail.gmail.com
1 parent 98976d0 commit 1a4fd77

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/perl/PostgreSQL/Test/Cluster.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ sub init
549549
}
550550
else
551551
{
552-
@copycmd = qw(cp -a);
552+
@copycmd = qw(cp -RPp);
553553
$expected_exitcode = 0;
554554
}
555555

src/test/regress/pg_regress.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2355,7 +2355,7 @@ regression_main(int argc, char *argv[],
23552355
else
23562356
{
23572357
#ifndef WIN32
2358-
const char *copycmd = "cp -a \"%s\" \"%s/data\"";
2358+
const char *copycmd = "cp -RPp \"%s\" \"%s/data\"";
23592359
int expected_exitcode = 0;
23602360
#else
23612361
const char *copycmd = "robocopy /E /NJS /NJH /NFL /NDL /NP \"%s\" \"%s/data\"";

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/1a4fd77db85abac63e178506335aee74625f6499

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy