-
Problem report
-
Resolution: Unresolved
-
Major
-
None
-
6.0.17
-
None
-
ubuntu 22.04
Steps to reproduce:
- Run zabbix-agent2 on a computer with a filesystem having a space in the label
Result:
With `DebugLevel=4`, we get this message in the log:
2023/05/21 09:02:41.003619 [VfsFs] cannot discern stats for the mount /tmp/_-_-One\040Touch: no such file or directory
Here's `/proc/mounts` (note that the space is escaped as `\040`):
/dev/sdg2 /media/me/One\040Touch exfat rw,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,iocharset=utf8,errors=remount-ro 0 0
Here's the output of `mount` (note that the actual mountpoint has a space):
/dev/sdg2 on /media/me/One Touch type exfat (rw,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,iocharset=utf8,errors=remount-ro)
The kernel escapes problematic characters such as " " (ASCII 32) in mountpoint names from `/proc/mounts` (aka `/etc/mtab`)