Update fixed path in Pre182 legacy-config
* Fix copy-paste errors in legacy-config comments
RELEASE_NOTES=n/a
* Update fixed path in Pre182 legacy-config
RELEASE_NOTES=[BUGFIX] Restore path-removal from old config-format
@@ -67,7 +67,7 @@ func (c *Pre193) Config() *Config {
return cfg
}
-// Pre182 is the current config struct
+// Pre182 is the gopass config structure before version 1.8.2
type Pre182 struct {
Path string `yaml:"-"`
Root *Pre182StoreConfig `yaml:"root"`
@@ -103,7 +103,7 @@ func (c *Pre182) CheckOverflow() error {
return checkOverflow(c.XXX)
}
-// Config converts the Pre140 config to the current config struct
+// Config converts the Pre182 config to the current config struct
func (c *Pre182) Config() *Config {
cfg := &Config{
AutoClip: c.Root.AutoClip,
@@ -118,7 +118,7 @@ func (c *Pre182) Config() *Config {
Mounts: make(map[string]string, len(c.Mounts)),
}
if p, err := pathFromURL(c.Root.Path); err == nil {
- c.Path = p
+ cfg.Path = p
}
for k, v := range c.Mounts {
p, err := pathFromURL(v.Path)
