Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.
/ feup-sope-xmod Public archive

A clone of the Linux chmod utility.

Notifications You must be signed in to change notification settings

bdmendes/feup-sope-xmod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A clone of the Linux chmod utility.

Topics

Resources

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •