@@ -421,7 +421,7 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
421421
422422if ((script = fopen_priv (* analyze_script_file_name ,"w" ))== NULL )
423423pg_fatal ("Could not open file \"%s\": %s\n" ,
424- * analyze_script_file_name ,getErrorText (errno ));
424+ * analyze_script_file_name ,getErrorText ());
425425
426426#ifndef WIN32
427427/* add shebang header */
@@ -476,7 +476,7 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
476476#ifndef WIN32
477477if (chmod (* analyze_script_file_name ,S_IRWXU )!= 0 )
478478pg_fatal ("Could not add execute permission to file \"%s\": %s\n" ,
479- * analyze_script_file_name ,getErrorText (errno ));
479+ * analyze_script_file_name ,getErrorText ());
480480#endif
481481
482482if (os_info .user_specified )
@@ -532,7 +532,7 @@ create_script_for_old_cluster_deletion(char **deletion_script_file_name)
532532
533533if ((script = fopen_priv (* deletion_script_file_name ,"w" ))== NULL )
534534pg_fatal ("Could not open file \"%s\": %s\n" ,
535- * deletion_script_file_name ,getErrorText (errno ));
535+ * deletion_script_file_name ,getErrorText ());
536536
537537#ifndef WIN32
538538/* add shebang header */
@@ -588,7 +588,7 @@ create_script_for_old_cluster_deletion(char **deletion_script_file_name)
588588#ifndef WIN32
589589if (chmod (* deletion_script_file_name ,S_IRWXU )!= 0 )
590590pg_fatal ("Could not add execute permission to file \"%s\": %s\n" ,
591- * deletion_script_file_name ,getErrorText (errno ));
591+ * deletion_script_file_name ,getErrorText ());
592592#endif
593593
594594check_ok ();
@@ -790,7 +790,7 @@ check_for_isn_and_int8_passing_mismatch(ClusterInfo *cluster)
790790found = true;
791791if (script == NULL && (script = fopen_priv (output_path ,"w" ))== NULL )
792792pg_fatal ("Could not open file \"%s\": %s\n" ,
793- output_path ,getErrorText (errno ));
793+ output_path ,getErrorText ());
794794if (!db_used )
795795{
796796fprintf (script ,"Database: %s\n" ,active_db -> db_name );
@@ -893,7 +893,7 @@ check_for_reg_data_type_usage(ClusterInfo *cluster)
893893found = true;
894894if (script == NULL && (script = fopen_priv (output_path ,"w" ))== NULL )
895895pg_fatal ("Could not open file \"%s\": %s\n" ,
896- output_path ,getErrorText (errno ));
896+ output_path ,getErrorText ());
897897if (!db_used )
898898{
899899fprintf (script ,"Database: %s\n" ,active_db -> db_name );
@@ -984,7 +984,7 @@ check_for_jsonb_9_4_usage(ClusterInfo *cluster)
984984found = true;
985985if (script == NULL && (script = fopen_priv (output_path ,"w" ))== NULL )
986986pg_fatal ("Could not open file \"%s\": %s\n" ,
987- output_path ,getErrorText (errno ));
987+ output_path ,getErrorText ());
988988if (!db_used )
989989{
990990fprintf (script ,"Database: %s\n" ,active_db -> db_name );
@@ -1032,7 +1032,7 @@ get_bin_version(ClusterInfo *cluster)
10321032if ((output = popen (cmd ,"r" ))== NULL ||
10331033fgets (cmd_output ,sizeof (cmd_output ),output )== NULL )
10341034pg_fatal ("Could not get pg_ctl version data using %s: %s\n" ,
1035- cmd ,getErrorText (errno ));
1035+ cmd ,getErrorText ());
10361036
10371037pclose (output );
10381038