Implement a version of the chmod
core Linux utility, using, when possible, kernel calls.
The behaviour of the latter must be replicated, including similar error messages and directory traversals.
- Respond to signals, outputting the signal number to the console
- Ask the user if they want to exit, when
SIGINT
signal is received - Log relevant events to a file, specified in the
LOG_FILENAME
environment variable
- Directory traversals are executed recursively by child processes
Build the program running make
at the root directory.
Arguments are the same of chmod
, except we don't support multiple paths to process.