projects
/
lsb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
723a1a2
)
Strip leading spaces in get_lsb_header_val
author
Philipp Hahn
<hahn@univention.de>
Fri, 25 Nov 2016 15:01:29 +0000
(16:01 +0100)
committer
Didier Raboud
<odyx@debian.org>
Fri, 25 Nov 2016 15:01:29 +0000
(16:01 +0100)
Closes: #837639
init-functions
patch
|
blob
|
history
diff --git
a/init-functions
b/init-functions
index cb8874c9efb995e0e9fe70cbe7a58ea87e91f5ce..a8c9c2c6241dbee2520ca35b239af4b593c9d62e 100644
(file)
--- a/
init-functions
+++ b/
init-functions
@@
-260,7
+260,7
@@
get_lsb_header_val () {
fi
LSB_S="### BEGIN INIT INFO"
LSB_E="### END INIT INFO"
- sed -n "/$LSB_S/,/$LSB_E/ s/# $2: \
(.*\)/\1/p" $1
+ sed -n "/$LSB_S/,/$LSB_E/ s/# $2: \
+\(.*\)/\1/p" "$1"
}
# If the currently running init daemon is upstart, return zero; if the