Merge lp:~mvo/snappy/15.04-fix-off-by-one into lp:~snappy-dev/snappy/15.04-deprecated

Proposed by Michael Vogt
Status: Merged
Approved by: Sergio Schvezov
Approved revision: 473
Merged at revision: 477
Proposed branch: lp:~mvo/snappy/15.04-fix-off-by-one
Merge into: lp:~snappy-dev/snappy/15.04-deprecated
Prerequisite: lp:~mvo/snappy/15.04-watchdog-config
Diff against target: 27 lines (+3/-3)
2 files modified
coreconfig/config.go (+1/-1)
coreconfig/config_test.go (+2/-2)
To merge this branch: bzr merge lp:~mvo/snappy/15.04-fix-off-by-one
Reviewer Review Type Date Requested Status
Sergio Schvezov Approve
Review via email: mp+270627@code.launchpad.net

This proposal supersedes a proposal from 2015-09-10.

Commit message

Fix off-by-one error in the path handlng

Description of the change

Fix off-by-one error in the path handlng

To post a comment you must log in.
Revision history for this message
Sergio Schvezov (sergiusens) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'coreconfig/config.go'
--- coreconfig/config.go 2015-09-10 06:29:34 +0000
+++ coreconfig/config.go 2015-09-10 06:29:34 +0000
@@ -281,7 +281,7 @@
281 return err281 return err
282 }282 }
283 pc = append(pc, passthroughConfig{283 pc = append(pc, passthroughConfig{
284 Name: path[len(rootDir)+1:],284 Name: path[len(rootDir):],
285 Content: string(content),285 Content: string(content),
286 })286 })
287 return nil287 return nil
288288
=== modified file 'coreconfig/config_test.go'
--- coreconfig/config_test.go 2015-09-10 06:29:34 +0000
+++ coreconfig/config_test.go 2015-09-10 06:29:34 +0000
@@ -79,8 +79,8 @@
79 return nil79 return nil
80 }80 }
8181
82 networkRoot = c.MkDir()82 networkRoot = c.MkDir() + "/"
83 pppRoot = c.MkDir()83 pppRoot = c.MkDir() + "/"
84 watchdogConfigPath = filepath.Join(c.MkDir(), "watchdog-config")84 watchdogConfigPath = filepath.Join(c.MkDir(), "watchdog-config")
85 watchdogStartupPath = filepath.Join(c.MkDir(), "watchdog-startup")85 watchdogStartupPath = filepath.Join(c.MkDir(), "watchdog-startup")
86}86}

Subscribers

People subscribed via source and target branches