From f100592c73679ae9db03021b8bf75bc64e94c552 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 24 Feb 2014 21:15:01 -0500 Subject: src/oh-fixperms.sh: Use new output functions. --- 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 -- cgit v0.9.1