Remove trailing comments when parsing ld.so.conf
This commit is contained in:
parent
0e114f8885
commit
94bc4e6025
@ -66,11 +66,16 @@ _library_ldsoconf()
|
|||||||
"#"*)
|
"#"*)
|
||||||
;;
|
;;
|
||||||
"include "*)
|
"include "*)
|
||||||
|
#remove trailing comments
|
||||||
|
line="${line%#*}"
|
||||||
|
|
||||||
filename="${ldsoconf%/*}/${line#include }"
|
filename="${ldsoconf%/*}/${line#include }"
|
||||||
[ -f "$filename" ] &&
|
[ -f "$filename" ] &&
|
||||||
_library_ldsoconf "$filename"
|
_library_ldsoconf "$filename"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
#remove trailing comments
|
||||||
|
line="${line%#*}"
|
||||||
echo "$line"
|
echo "$line"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user