Bonus
Description
Write a program that copies a directory from a location owned by the user executing the program to a location owned by the owner of the executable.
Specifications
The program must be properly modular and documented appropriately.
The name of the compiled program must be
cpdir.The default make target should create the executable and set the appropriate permissions
The source path of the directory to copy is specified as a command line argument.
The destination of the copied directory is specified by the
CPDIRenvironment variable.The program must deal with signals correctly such that the file system remains in a consistent state with respect to permissions.
Grading
This is a bonus project that will be graded according to the programming project rubric, but it will be weighted to be worth half a programming assignment. The grade will be added to the final course grade.
Turning in the Assignment
For this assignment, you must turn in a zip file of a directory
named bonus containing the following files:
- README (containing design decisions and a description of the protocol)
- Makefile
- Source code
Submit the zip file to the appropriate folder on D2L.