Skip to content

0.2

Pre-release
Pre-release

Choose a tag to compare

@dhitchenor dhitchenor released this 19 Oct 08:32

Details

Second Release of rper (version 0.2)

Changes:

  • rper, now handles symlinks appropriately; check out the updated flags
  • neatened up the code a little bit
  • built with command gcc -o rper rper_0.2.c -Wall -Wextra -Werror -Wformat -Wformat-security -Wconversion -Wsign-conversion -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fPIE -pie -Wl,-z,relro,-z,now -O2

Features

files (-f):

  • makes the desired permissions changes to files only
  • retained as the default flag if the directories flag (-d) is not used

directories (-d):

  • makes the desired permissions changes to directories only
  • can be used with the files flag (-f), if you wish to change directories and files to identical permissions (might not be what you want, use caution)

inclusive (-i):

  • includes the specified directory (directory argument) when making permission changes
  • can only be used with the directories flag (-d), has no effect when used with the files flag (-f)

non-recursive (-n):

  • only makes changes to the files/directories within the specified directory (directory argument).. essentially the basic use of the chmod command

quiet (-s):

  • suppresses normal output, but still displays any error output

silenced (-S):

  • suppresses all output, including errors

verbose (-v):

  • displays all output; both directory and file changes are provided in output

follow symlinks (-L):

  • follows symlinks
  • does not error when symlink is found

error on symlink (-k):

  • does not follow symlinks, does not continue if symlink found
  • error produced when symlnk found

permissions (-p):

  • uses an octal formatted argument (eg. 755 or 0644) as the desired changed permissions.
  • allows the use of () as a wildcard, eg 64 will change the user (left-most), and others (right-most) permissions, but not the group(center) permission

help (-h | -H):

  • displays help for the user

about (-a):

  • displays information about rper