commit: bbd671043a9d7b666e3cc750b771f6b5105d5064
Author: layman <layman <AT> localhost>
AuthorDate: Wed Apr 15 20:41:02 2015 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Apr 15 20:49:24 2015 +0000
URL: https://gitweb.gentoo.org/proj/hardened-dev.git/commit/?id=bbd67104
sys-apps/ldconfig: Ignore -p. Expect -X. Bug #545006 c#17.
sys-apps/ldconfig/files/ldconfig-0.1 | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/sys-apps/ldconfig/files/ldconfig-0.1
b/sys-apps/ldconfig/files/ldconfig-0.1
index 722cbee..7139450 100644
--- a/sys-apps/ldconfig/files/ldconfig-0.1
+++ b/sys-apps/ldconfig/files/ldconfig-0.1
@@ -12,6 +12,8 @@ LDSO_CONF_DIR=$(dirname $LDSO_CONF)
VERBOSE=0
+UPDATE_LINKS=1
+
get_options() {
while getopts "vnNXf:C:r:p" opt "$@"; do
case $opt in
@@ -25,18 +27,26 @@ get_options() {
f)
LDSO_CONF=$OPTARG
;;
+ X)
+ UPDATE_LINKS=0
+ ;;
\?)
echo "Invalid option: -$opt" >&2
exit 1
;;
- n|N|X|C)
+ n|N|C|p)
echo "Unimplemented option: -$opt" >&2
exit 1
;;
esac
done
+
+ if [[ $UPDATE_LINKS == 1 ]]; then
+ echo "Updating links is not implemented."
+ fi
}
+
repeated() {
local l=$1
local drs="${@:2}"