아래와 같이 test.c 파일을 생성 후 gcc test.c -o test로 빌드를 진행합니다.
그러면 실행 파일인 test 파일의 퍼미션이 000로 나옵니다...
수동으로 권한 주면 실행은 잘 됩니다.
gcc 권한도 충분해 보이는데 뭐가 문제일까요...
[test:/home/user 234 ] cat test.c
#ifdef __cplusplus
# error "The CMAKE_C_COMPILER is set to a C++ compiler"
#endif
#include
#if defined(__CLASSIC_C__)
int main(argc, argv)
int argc;
char* argv[];
#else
int main(int argc, char* argv[])
#endif
{
printf("%d%c", (argv != 0), (char)0x0a);
return argc-1;
}