diff options
author | P. J. McDermott <pjm@nac.net> | 2014-02-24 21:15:01 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2014-02-24 21:15:01 (EST) |
commit | f100592c73679ae9db03021b8bf75bc64e94c552 (patch) | |
tree | 0b74610cc4a7cf275bffe700e9d2fdb19a14eac3 /src/oh-fixperms.sh | |
parent | e25fdc3b7909b278b157e19d4e25d5502d3d331a (diff) |
src/oh-fixperms.sh: Use new output functions.
Diffstat (limited to 'src/oh-fixperms.sh')
-rw-r--r-- | src/oh-fixperms.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/oh-fixperms.sh b/src/oh-fixperms.sh index 308e60a..cb3740c 100644 --- a/src/oh-fixperms.sh +++ b/src/oh-fixperms.sh @@ -33,34 +33,34 @@ main() dir="${OPTARG}" ;; ?) - ob_error "$(ob_get_msg 'bad_opt')" + oh_error "$(ob_get_msg 'bad_opt')" exit 1 ;; esac done # Ensure that everything is owned by UID 0 and GID 0. - ob_info "$(ob_get_msg 'chown')" + oh_info "$(ob_get_msg 'chown')" find "${dir}" \ -exec 'chown' '-h' '0:0' '{}' ';' # Ensure that shared libraries, static libraries, and libtool archives have # a rw-r--r-- mode. - ob_info "$(ob_get_msg 'chmod_lib')" + oh_info "$(ob_get_msg 'chmod_lib')" find "${dir}" -type f -a ! -perm 644 \ -a \( -name '*.so*' -o -name '*.a' -o -name '*.la' \) \ -exec 'chmod' '644' '{}' ';' # Ensure that header files have a rw-r--r-- mode. if [ -d "${dir}/usr/include" ]; then - ob_info "$(ob_get_msg 'chmod_include')" + oh_info "$(ob_get_msg 'chmod_include')" find "${dir}/usr/include" -type f -a ! -perm 644 \ -exec 'chmod' '644' '{}' ';' fi # Ensure that manual pages have a rw-r--r-- mode. if [ -d "${dir}/usr/share/man" ]; then - ob_info "$(ob_get_msg 'chmod_man')" + oh_info "$(ob_get_msg 'chmod_man')" find "${dir}/usr/share/man" -type f -a ! -perm 644 \ -exec 'chmod' '644' '{}' ';' fi @@ -68,7 +68,7 @@ main() # Ensure that binary programs and service scripts have a rwxr-xr-x mode. for bindir in /usr/sbin /usr/bin /sbin /bin /usr/games /etc/init.d; do if [ -d "${dir}/${bindir}" ]; then - ob_info "$(ob_get_msg 'chmod_bin')" "${bindir}" + oh_info "$(ob_get_msg 'chmod_bin')" "${bindir}" find "${dir}/${bindir}" -type f -a ! -perm 755 \ -exec 'chmod' '755' '{}' ';' fi |