summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2014-02-25 12:14:56 (EST)
committer P. J. McDermott <pjm@nac.net>2014-02-25 12:14:56 (EST)
commit98bba1bb200151a2a64e45068ac8eadb67f658a5 (patch)
tree04a0bfa4edac4555abded12cb34dee377f995aee
parent0dc63a74decb0d7ab32d6903db5c2477a7dc3085 (diff)
src/oh-fixperms.sh: Use new locale functions.
-rw-r--r--src/oh-fixperms.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/oh-fixperms.sh b/src/oh-fixperms.sh
index cb3740c..71dda4d 100644
--- a/src/oh-fixperms.sh
+++ b/src/oh-fixperms.sh
@@ -33,34 +33,34 @@ main()
dir="${OPTARG}"
;;
?)
- oh_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.
- oh_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.
- oh_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
- oh_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
- oh_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
- oh_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