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