Skip to content
Advertisement

Tag: tags

system call open() creating executable

So my code creates and writes to the out_file properly. However, the file is an executable for some reason. I think the fault is in my open() call but I can’t seem to find why. Answer man 2 open explains why: So if you want a file that’s not executable, you can use: 0666 will suggest read/write for all (equivalent

Advertisement