Skip to content

Commit

Permalink
Merge pull request #11 from yast/fix_killing_12
Browse files Browse the repository at this point in the history
Fix killing 12
  • Loading branch information
jreidinger committed Jan 26, 2015
2 parents cb9d1dd + 063436a commit b64110e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions package/yast2-multipath.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 26 12:26:32 UTC 2015 - jreidinger@suse.com

- fixed \r character lost during conversion to Ruby

-------------------------------------------------------------------
Thu Oct 30 02:30:24 UTC 2014 - nwang@suse.com

Expand Down
4 changes: 2 additions & 2 deletions src/include/multipath/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ def rm_quotes(value)
str_end = Ops.subtract(str_len, 1)
while Ops.less_than(str_start, str_len)
cur_char = Builtins.substring(value, str_start, 1)
if cur_char == " " || cur_char == "\t" || cur_char == " " ||
if cur_char == " " || cur_char == "\t" || cur_char == "\r" ||
cur_char == "\n" ||
cur_char == "\""
str_start = Ops.add(str_start, 1)
Expand All @@ -697,7 +697,7 @@ def rm_quotes(value)

while Ops.greater_than(str_end, str_start)
cur_char = Builtins.substring(value, str_end, 1)
if cur_char == " " || cur_char == "\t" || cur_char == " " ||
if cur_char == " " || cur_char == "\t" || cur_char == "\r" ||
cur_char == "\n" ||
cur_char == "\""
str_end = Ops.subtract(str_end, 1)
Expand Down

0 comments on commit b64110e

Please sign in to comment.