]> arthur.barton.de Git - netdata.git/commitdiff
escape octal from filesystem source; fixes #1244
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 19 Nov 2016 09:25:08 +0000 (11:25 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 19 Nov 2016 09:25:08 +0000 (11:25 +0200)
src/proc_self_mountinfo.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index d2708f2..a63f046
@@ -249,7 +249,7 @@ struct mountinfo *mountinfo_read() {
             mi->filesystem = strdupz(procfile_lineword(ff, l, w)); w++;
             mi->filesystem_hash = simple_hash(mi->filesystem);
 
-            mi->mount_source = strdupz(procfile_lineword(ff, l, w)); w++;
+            mi->mount_source = strdupz_decoding_octal(procfile_lineword(ff, l, w)); w++;
             mi->mount_source_hash = simple_hash(mi->mount_source);
 
             mi->super_options = strdupz(procfile_lineword(ff, l, w)); w++;