#!/bin/bash

# Script to invoke chmod on file passed in.  This script is intended for use
# by Code Update and will invoke a change to the permissions on a file.
#
#Usage: chmodUPD [OPTION]... MODE[,MODE]... FILE...
#  or:  chmodUPD [OPTION]... OCTAL-MODE FILE...
#  or:  chmodUPD [OPTION]... --reference=RFILE FILE...
#Change the mode of each FILE to MODE.
#
#  -c, --changes           like verbose but report only when a change is made
#      --no-preserve-root  do not treat `/' specially (the default)
#      --preserve-root     fail to operate recursively on `/'
#  -f, --silent, --quiet   suppress most error messages
#  -v, --verbose           output a diagnostic for every file processed
#      --reference=RFILE   use RFILE's mode instead of MODE values
#  -R, --recursive         change files and directories recursively
#      --help     display this help and exit
#      --version  output version information and exit
#
#Each MODE is one or more of the letters ugoa, one of the symbols +-= and
#one or more of the letters rwxXstugo.
#
#Report bugs to <bug-coreutils@gnu.org>.
#
# Exit status = 0 if no errors occur; non-zero otherwise.
#
# Module History:
# 00 08/03/2006  E. Leet     Initial release
# 01 09/26/2006  M. Antes    572107 - exit with return code from command

actzTrace "ESA    T: -> chmodUPD $*"

/bin/chmod $*
cmdRC=$?

actzTrace 'ESA    T: <- chmodUPD'

exit $cmdRC
