@@ -415,7 +415,7 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
415
415
416
416
if ((script = fopen_priv (* analyze_script_file_name , "w" )) == NULL )
417
417
pg_fatal ("Could not open file \"%s\": %s\n" ,
418
- * analyze_script_file_name , getErrorText (errno ));
418
+ * analyze_script_file_name , getErrorText ());
419
419
420
420
#ifndef WIN32
421
421
/* add shebang header */
@@ -470,7 +470,7 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
470
470
#ifndef WIN32
471
471
if (chmod (* analyze_script_file_name , S_IRWXU ) != 0 )
472
472
pg_fatal ("Could not add execute permission to file \"%s\": %s\n" ,
473
- * analyze_script_file_name , getErrorText (errno ));
473
+ * analyze_script_file_name , getErrorText ());
474
474
#endif
475
475
476
476
if (os_info .user_specified )
@@ -526,7 +526,7 @@ create_script_for_old_cluster_deletion(char **deletion_script_file_name)
526
526
527
527
if ((script = fopen_priv (* deletion_script_file_name , "w" )) == NULL )
528
528
pg_fatal ("Could not open file \"%s\": %s\n" ,
529
- * deletion_script_file_name , getErrorText (errno ));
529
+ * deletion_script_file_name , getErrorText ());
530
530
531
531
#ifndef WIN32
532
532
/* add shebang header */
@@ -582,7 +582,7 @@ create_script_for_old_cluster_deletion(char **deletion_script_file_name)
582
582
#ifndef WIN32
583
583
if (chmod (* deletion_script_file_name , S_IRWXU ) != 0 )
584
584
pg_fatal ("Could not add execute permission to file \"%s\": %s\n" ,
585
- * deletion_script_file_name , getErrorText (errno ));
585
+ * deletion_script_file_name , getErrorText ());
586
586
#endif
587
587
588
588
check_ok ();
@@ -784,7 +784,7 @@ check_for_isn_and_int8_passing_mismatch(ClusterInfo *cluster)
784
784
found = true;
785
785
if (script == NULL && (script = fopen_priv (output_path , "w" )) == NULL )
786
786
pg_fatal ("Could not open file \"%s\": %s\n" ,
787
- output_path , getErrorText (errno ));
787
+ output_path , getErrorText ());
788
788
if (!db_used )
789
789
{
790
790
fprintf (script , "Database: %s\n" , active_db -> db_name );
@@ -887,7 +887,7 @@ check_for_reg_data_type_usage(ClusterInfo *cluster)
887
887
found = true;
888
888
if (script == NULL && (script = fopen_priv (output_path , "w" )) == NULL )
889
889
pg_fatal ("Could not open file \"%s\": %s\n" ,
890
- output_path , getErrorText (errno ));
890
+ output_path , getErrorText ());
891
891
if (!db_used )
892
892
{
893
893
fprintf (script , "Database: %s\n" , active_db -> db_name );
@@ -978,7 +978,7 @@ check_for_jsonb_9_4_usage(ClusterInfo *cluster)
978
978
found = true;
979
979
if (script == NULL && (script = fopen_priv (output_path , "w" )) == NULL )
980
980
pg_fatal ("Could not open file \"%s\": %s\n" ,
981
- output_path , getErrorText (errno ));
981
+ output_path , getErrorText ());
982
982
if (!db_used )
983
983
{
984
984
fprintf (script , "Database: %s\n" , active_db -> db_name );
@@ -1026,7 +1026,7 @@ get_bin_version(ClusterInfo *cluster)
1026
1026
if ((output = popen (cmd , "r" )) == NULL ||
1027
1027
fgets (cmd_output , sizeof (cmd_output ), output ) == NULL )
1028
1028
pg_fatal ("Could not get pg_ctl version data using %s: %s\n" ,
1029
- cmd , getErrorText (errno ));
1029
+ cmd , getErrorText ());
1030
1030
1031
1031
pclose (output );
1032
1032
0 commit comments