Skip to content

Commit da9e25c

Browse files
committed
Fixed a bug in cluster_role_detect.
1 parent c655830 commit da9e25c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hpcopr/cluster_general_funcs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ int cluster_role_detect(char* workdir, char cluster_role[], char cluster_role_ex
5858
return 0;
5959
}
6060
snprintf(filename_temp,FILENAME_LENGTH-1,"%s%suser_passwords.txt.tmp",vaultdir,PATH_SLASH);
61-
if(file_empty_or_not(filename_temp)==0){
61+
if(file_exist_or_not(filename_temp)==0){
6262
strncpy(cluster_role,"user",maxlen-1);
6363
strncpy(cluster_role_ext,"user ",maxlen-1);
6464
return 0;

0 commit comments

Comments
 (0)