@@ -529,7 +529,7 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
529
529
530
530
if ((script = fopen_priv (* analyze_script_file_name , "w" )) == NULL )
531
531
pg_fatal ("Could not open file \"%s\": %s\n" ,
532
- * analyze_script_file_name , getErrorText (errno ));
532
+ * analyze_script_file_name , getErrorText ());
533
533
534
534
#ifndef WIN32
535
535
/* add shebang header */
@@ -584,7 +584,7 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
584
584
#ifndef WIN32
585
585
if (chmod (* analyze_script_file_name , S_IRWXU ) != 0 )
586
586
pg_fatal ("Could not add execute permission to file \"%s\": %s\n" ,
587
- * analyze_script_file_name , getErrorText (errno ));
587
+ * analyze_script_file_name , getErrorText ());
588
588
#endif
589
589
590
590
if (os_info .user_specified )
@@ -687,7 +687,7 @@ create_script_for_old_cluster_deletion(char **deletion_script_file_name)
687
687
688
688
if ((script = fopen_priv (* deletion_script_file_name , "w" )) == NULL )
689
689
pg_fatal ("Could not open file \"%s\": %s\n" ,
690
- * deletion_script_file_name , getErrorText (errno ));
690
+ * deletion_script_file_name , getErrorText ());
691
691
692
692
#ifndef WIN32
693
693
/* add shebang header */
@@ -741,7 +741,7 @@ create_script_for_old_cluster_deletion(char **deletion_script_file_name)
741
741
#ifndef WIN32
742
742
if (chmod (* deletion_script_file_name , S_IRWXU ) != 0 )
743
743
pg_fatal ("Could not add execute permission to file \"%s\": %s\n" ,
744
- * deletion_script_file_name , getErrorText (errno ));
744
+ * deletion_script_file_name , getErrorText ());
745
745
#endif
746
746
747
747
check_ok ();
@@ -877,7 +877,7 @@ check_for_isn_and_int8_passing_mismatch(ClusterInfo *cluster)
877
877
found = true;
878
878
if (script == NULL && (script = fopen_priv (output_path , "w" )) == NULL )
879
879
pg_fatal ("Could not open file \"%s\": %s\n" ,
880
- output_path , getErrorText (errno ));
880
+ output_path , getErrorText ());
881
881
if (!db_used )
882
882
{
883
883
fprintf (script , "Database: %s\n" , active_db -> db_name );
@@ -980,7 +980,7 @@ check_for_reg_data_type_usage(ClusterInfo *cluster)
980
980
found = true;
981
981
if (script == NULL && (script = fopen_priv (output_path , "w" )) == NULL )
982
982
pg_fatal ("Could not open file \"%s\": %s\n" ,
983
- output_path , getErrorText (errno ));
983
+ output_path , getErrorText ());
984
984
if (!db_used )
985
985
{
986
986
fprintf (script , "Database: %s\n" , active_db -> db_name );
@@ -1071,7 +1071,7 @@ check_for_jsonb_9_4_usage(ClusterInfo *cluster)
1071
1071
found = true;
1072
1072
if (script == NULL && (script = fopen_priv (output_path , "w" )) == NULL )
1073
1073
pg_fatal ("Could not open file \"%s\": %s\n" ,
1074
- output_path , getErrorText (errno ));
1074
+ output_path , getErrorText ());
1075
1075
if (!db_used )
1076
1076
{
1077
1077
fprintf (script , "Database: %s\n" , active_db -> db_name );
@@ -1119,7 +1119,7 @@ get_bin_version(ClusterInfo *cluster)
1119
1119
if ((output = popen (cmd , "r" )) == NULL ||
1120
1120
fgets (cmd_output , sizeof (cmd_output ), output ) == NULL )
1121
1121
pg_fatal ("Could not get pg_ctl version data using %s: %s\n" ,
1122
- cmd , getErrorText (errno ));
1122
+ cmd , getErrorText ());
1123
1123
1124
1124
pclose (output );
1125
1125
0 commit comments