-3
read(fileno(stdin), passwd, 1024);
if(strcmp(passwd, real_password) == 0) {
printf("\n\nWelcome back :)\n\n~$ ");
fflush(stdout);
system("/bin/bash -p");
所以我有这个程序,我想知道系统(“/ bin/bash -p”)调用在程序中做什么?系统在以下程序中调用的是什么?
和那会做什么。使用参数执行bash -p – follower
这就是'system()'@ @follower的作用。希望有所帮助。 – gsamaras
我只是不明白这个调用的意义是什么 – follower