@@ -529,7 +529,7 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
529529
530530 if ((script = fopen_priv (* analyze_script_file_name , "w" )) == NULL )
531531 pg_fatal ("Could not open file \"%s\": %s\n" ,
532- * analyze_script_file_name , getErrorText (errno ));
532+ * analyze_script_file_name , getErrorText ());
533533
534534#ifndef WIN32
535535 /* add shebang header */
@@ -584,7 +584,7 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
584584#ifndef WIN32
585585 if (chmod (* analyze_script_file_name , S_IRWXU ) != 0 )
586586 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 ());
588588#endif
589589
590590 if (os_info .user_specified )
@@ -687,7 +687,7 @@ create_script_for_old_cluster_deletion(char **deletion_script_file_name)
687687
688688 if ((script = fopen_priv (* deletion_script_file_name , "w" )) == NULL )
689689 pg_fatal ("Could not open file \"%s\": %s\n" ,
690- * deletion_script_file_name , getErrorText (errno ));
690+ * deletion_script_file_name , getErrorText ());
691691
692692#ifndef WIN32
693693 /* add shebang header */
@@ -741,7 +741,7 @@ create_script_for_old_cluster_deletion(char **deletion_script_file_name)
741741#ifndef WIN32
742742 if (chmod (* deletion_script_file_name , S_IRWXU ) != 0 )
743743 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 ());
745745#endif
746746
747747 check_ok ();
@@ -877,7 +877,7 @@ check_for_isn_and_int8_passing_mismatch(ClusterInfo *cluster)
877877 found = true;
878878 if (script == NULL && (script = fopen_priv (output_path , "w" )) == NULL )
879879 pg_fatal ("Could not open file \"%s\": %s\n" ,
880- output_path , getErrorText (errno ));
880+ output_path , getErrorText ());
881881 if (!db_used )
882882 {
883883 fprintf (script , "Database: %s\n" , active_db -> db_name );
@@ -980,7 +980,7 @@ check_for_reg_data_type_usage(ClusterInfo *cluster)
980980 found = true;
981981 if (script == NULL && (script = fopen_priv (output_path , "w" )) == NULL )
982982 pg_fatal ("Could not open file \"%s\": %s\n" ,
983- output_path , getErrorText (errno ));
983+ output_path , getErrorText ());
984984 if (!db_used )
985985 {
986986 fprintf (script , "Database: %s\n" , active_db -> db_name );
@@ -1071,7 +1071,7 @@ check_for_jsonb_9_4_usage(ClusterInfo *cluster)
10711071 found = true;
10721072 if (script == NULL && (script = fopen_priv (output_path , "w" )) == NULL )
10731073 pg_fatal ("Could not open file \"%s\": %s\n" ,
1074- output_path , getErrorText (errno ));
1074+ output_path , getErrorText ());
10751075 if (!db_used )
10761076 {
10771077 fprintf (script , "Database: %s\n" , active_db -> db_name );
@@ -1119,7 +1119,7 @@ get_bin_version(ClusterInfo *cluster)
11191119 if ((output = popen (cmd , "r" )) == NULL ||
11201120 fgets (cmd_output , sizeof (cmd_output ), output ) == NULL )
11211121 pg_fatal ("Could not get pg_ctl version data using %s: %s\n" ,
1122- cmd , getErrorText (errno ));
1122+ cmd , getErrorText ());
11231123
11241124 pclose (output );
11251125
0 commit comments