diff options
author | P. J. McDermott <pjm@nac.net> | 2014-02-25 13:16:28 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2014-02-25 13:16:28 (EST) |
commit | e4e9b382499329a499459df0022108766426c2ac (patch) | |
tree | 8df466c2609868cdfc0ba0bcb5b673921e4dd521 /src/oh-fixperms.sh | |
parent | 06b4ef4c6fa9f4bdbeec62a2513f0db9a93176c1 (diff) | |
parent | 2dfe7dd1fa038db1bd36247938d07e6a254fa663 (diff) |
Merge branch 'feature/drop-libopkbuild-dep'.
Conflicts:
configure
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..71dda4d 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 "$(oh_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 "$(oh_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 "$(oh_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 "$(oh_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 "$(oh_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 "$(oh_get_msg 'chmod_bin')" "${bindir}" find "${dir}/${bindir}" -type f -a ! -perm 755 \ -exec 'chmod' '755' '{}' ';' fi |