在一些服务器更新后,我无法执行 C 程序(它昨天还在工作,我的服务器发生了一些变化,导致了这个问题)。
我在这个文件夹 /home/int/exe/ ac 名为 aesdecript 的程序具有 777 权限。因此,如果以 root 身份键入以下命令:
$ cd /home/int/exe/
$ ./aesdecrypt
-bash: /home/int/exe/aesdecrypt: No such file or directory
$ sh aesdecrypt
aesdecrypt: 1: Syntax error: "(" unexpected
$ ldconfig aesdecrypt
ldconfig: relative path `aesdecrypt' used to build cache
$ system("/home/int/exe/aesdecrypt")
-bash: syntax error near unexpected token `"/home/int/exe/aesdecrypt"'
aesdecrypt 是一个 C 程序。
有人知道吗?该程序几天前正在运行。
下面是aesdecrypt源代码:
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include "aes.h"
int aes_crypt_decrypt(int encrypt, char *finput, char *foutput);
#define TRUE 1
#define FALSE 0
int main(int argc, char **argv) {
puts("Oi mundo!"); /* prints Magick Teste! */
/*if( argc < 3 )
return (1);
aes_crypt_decrypt( TRUE, argv[1], argv[2] );*/
return EXIT_SUCCESS;
}
问候,蒂亚戈