projects
/
glocate.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdd5ab2
)
Newer ZFS has different octalize rule
v0.1.0
author
Sergey Matveev <stargrave@stargrave.org>
Sun, 7 May 2023 19:15:03 +0000 (22:15 +0300)
committer
Sergey Matveev <stargrave@stargrave.org>
Sun, 7 May 2023 19:15:03 +0000 (22:15 +0300)
names.go
patch
|
blob
|
history
diff --git
a/names.go
b/names.go
index c5a5809f5ed96f4fa99a1fcee861fd1cf301788fee60dc824a84c6d53744ce23..707108bda3a9b95e08cace3a9f64bedae76187fb6762226ef20de498f84d5f8d 100644
(file)
--- a/
names.go
+++ b/
names.go
@@
-95,12
+95,12
@@
func deoctalize(s string) string {
chars := make([]byte, 0, len(s))
for i := 0; i < len(s); i++ {
if s[i] == '\\' {
- b, err := strconv.ParseUint(
"0"+s[i+1:i+1+3
], 0, 8)
+ b, err := strconv.ParseUint(
s[i+1:i+1+4
], 0, 8)
if err != nil {
log.Fatalln(err)
}
chars = append(chars, byte(b))
- i +=
3
+ i +=
4
} else {
chars = append(chars, s[i])
}