int file_locked = 0;
unsigned int usecs_waited = 0;
int rc = OP_JIT_CONV_OK;
- int fd = open(dumpfile, S_IRUSR);
+ int fd = open(dumpfile, O_RDONLY);
if (fd < 0) {
perror("opjitconv failed to open JIT dumpfile");
return OP_JIT_CONV_FAIL;
{
int keep_trying = 1;
int idx_of_non_options = 0;
+ char * prev_env = getenv("POSIXLY_CORRECT");
setenv("POSIXLY_CORRECT", "1", 0);
while (keep_trying) {
int option_idx = 0;
break;
}
}
+
+ if (prev_env == NULL)
+ unsetenv("POSIXLY_CORRECT");
+
return idx_of_non_options;
}