在一些服务器更新之后,我无法执行C程序(它昨天正在工作,并且我的服务器中的某些内容已更改导致此问题).
我在这个名为aesdecript的文件夹/ home/int/exe/ac程序中获得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"'
Run Code Online (Sandbox Code Playgroud)
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) { …Run Code Online (Sandbox Code Playgroud)