/feup-sope-xmod

A clone of the Linux chmod utility.

Primary LanguageC

xmod

Motivation

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.

Supplementary features

  • 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

Implementation details

  • Directory traversals are executed recursively by child processes

How to run

Build the program running make at the root directory.
Arguments are the same of chmod, except we don't support multiple paths to process.