@@ -421,7 +421,7 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
421
421
422
422
if ((script = fopen_priv (* analyze_script_file_name , "w" )) == NULL )
423
423
pg_fatal ("Could not open file \"%s\": %s\n" ,
424
- * analyze_script_file_name , getErrorText (errno ));
424
+ * analyze_script_file_name , getErrorText ());
425
425
426
426
#ifndef WIN32
427
427
/* add shebang header */
@@ -476,7 +476,7 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
476
476
#ifndef WIN32
477
477
if (chmod (* analyze_script_file_name , S_IRWXU ) != 0 )
478
478
pg_fatal ("Could not add execute permission to file \"%s\": %s\n" ,
479
- * analyze_script_file_name , getErrorText (errno ));
479
+ * analyze_script_file_name , getErrorText ());
480
480
#endif
481
481
482
482
if (os_info .user_specified )
@@ -532,7 +532,7 @@ create_script_for_old_cluster_deletion(char **deletion_script_file_name)
532
532
533
533
if ((script = fopen_priv (* deletion_script_file_name , "w" )) == NULL )
534
534
pg_fatal ("Could not open file \"%s\": %s\n" ,
535
- * deletion_script_file_name , getErrorText (errno ));
535
+ * deletion_script_file_name , getErrorText ());
536
536
537
537
#ifndef WIN32
538
538
/* add shebang header */
@@ -588,7 +588,7 @@ create_script_for_old_cluster_deletion(char **deletion_script_file_name)
588
588
#ifndef WIN32
589
589
if (chmod (* deletion_script_file_name , S_IRWXU ) != 0 )
590
590
pg_fatal ("Could not add execute permission to file \"%s\": %s\n" ,
591
- * deletion_script_file_name , getErrorText (errno ));
591
+ * deletion_script_file_name , getErrorText ());
592
592
#endif
593
593
594
594
check_ok ();
@@ -790,7 +790,7 @@ check_for_isn_and_int8_passing_mismatch(ClusterInfo *cluster)
790
790
found = true;
791
791
if (script == NULL && (script = fopen_priv (output_path , "w" )) == NULL )
792
792
pg_fatal ("Could not open file \"%s\": %s\n" ,
793
- output_path , getErrorText (errno ));
793
+ output_path , getErrorText ());
794
794
if (!db_used )
795
795
{
796
796
fprintf (script , "Database: %s\n" , active_db -> db_name );
@@ -893,7 +893,7 @@ check_for_reg_data_type_usage(ClusterInfo *cluster)
893
893
found = true;
894
894
if (script == NULL && (script = fopen_priv (output_path , "w" )) == NULL )
895
895
pg_fatal ("Could not open file \"%s\": %s\n" ,
896
- output_path , getErrorText (errno ));
896
+ output_path , getErrorText ());
897
897
if (!db_used )
898
898
{
899
899
fprintf (script , "Database: %s\n" , active_db -> db_name );
@@ -984,7 +984,7 @@ check_for_jsonb_9_4_usage(ClusterInfo *cluster)
984
984
found = true;
985
985
if (script == NULL && (script = fopen_priv (output_path , "w" )) == NULL )
986
986
pg_fatal ("Could not open file \"%s\": %s\n" ,
987
- output_path , getErrorText (errno ));
987
+ output_path , getErrorText ());
988
988
if (!db_used )
989
989
{
990
990
fprintf (script , "Database: %s\n" , active_db -> db_name );
@@ -1032,7 +1032,7 @@ get_bin_version(ClusterInfo *cluster)
1032
1032
if ((output = popen (cmd , "r" )) == NULL ||
1033
1033
fgets (cmd_output , sizeof (cmd_output ), output ) == NULL )
1034
1034
pg_fatal ("Could not get pg_ctl version data using %s: %s\n" ,
1035
- cmd , getErrorText (errno ));
1035
+ cmd , getErrorText ());
1036
1036
1037
1037
pclose (output );
1038
1038
0 commit comments