The code is located here...
Basically for an assignment at uni we have to create a small program that takes the following syntax.
copy source destination
SO far my program copies files correctly as far as I can tell but the thing is if i'm copying a executable file, when ever I try and run the copied file always says..
./ben permission denied. I do ls -l and it isnt set as executable in the permission list. How do I set the file to execuable or give permission for it to be executed. I haven't been using c or unix for very long so be kind.