autofs doesn't handle non-english characters in map files included with +dir option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autofs (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Contents of /run/autofs.d:
$ tail /run/autofs.d/*
==> /run/autofs.
/- /run/autofs.
==> /run/autofs.
/mnt/WDC_
==> /run/autofs.
/- /run/autofs.
==> /run/autofs.
/mnt/WDC_
==> /run/autofs.
/- /run/autofs.
==> /run/autofs.
/mnt/WDC_
==> /run/autofs.
/- /run/autofs.
==> /run/autofs.
/mnt/FUJITSU_
==> /run/autofs.
/- /run/autofs.
==> /run/autofs.
/mnt/FUJITSU_
Debug output:
Starting automounter version 5.0.6, master map /etc/autofs/
using kernel protocol version 5.02
lookup_
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
lookup_read_master: lookup(file): read entry /mnt/ftp
lookup_read_master: lookup(file): read entry +dir:/run/autofs.d
lookup_
lookup_read_master: lookup(dir): scandir: /run/autofs.d
include_file: lookup(dir): include: /run/autofs.
lookup_
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
include_file: lookup(dir): include: /run/autofs.
lookup_
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
include_file: lookup(dir): include: /run/autofs.
lookup_
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
include_file: lookup(dir): include: /run/autofs.
lookup_
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
include_file: lookup(dir): include: /run/autofs.
lookup_
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
master_do_mount: mounting /-
automount_
lookup_
parse_init: parse(sun): init gathered global options: (null)
lookup_
parse_init: parse(sun): init gathered global options: (null)
lookup_
parse_init: parse(sun): init gathered global options: (null)
lookup_
parse_init: parse(sun): init gathered global options: (null)
lookup_
parse_init: parse(sun): init gathered global options: (null)
lookup_
parse_init: parse(sun): init gathered global options: (null)
sdb3 is getting parsed, but:
mounted direct on /mnt/smb with timeout 300, freq 75 seconds
do_mount_
mounted direct on /mnt/WDC_
do_mount_
mounted direct on /mnt/WDC_
do_mount_
mounted direct on /mnt/WDC_
do_mount_
mounted direct on /mnt/FUJITSU_
do_mount_
st_ready: st_ready(): state = 0 path /-
here is no sdb3 mount point!
If I change /run/autofs.
/mnt/FUJITSU_
everything begins to work:
Starting automounter version 5.0.6, master map /etc/autofs/
using kernel protocol version 5.02
lookup_
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
lookup_read_master: lookup(file): read entry /mnt/ftp
lookup_read_master: lookup(file): read entry +dir:/run/autofs.d
lookup_
lookup_read_master: lookup(dir): scandir: /run/autofs.d
include_file: lookup(dir): include: /run/autofs.
lookup_
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
include_file: lookup(dir): include: /run/autofs.
lookup_
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
include_file: lookup(dir): include: /run/autofs.
lookup_
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
include_file: lookup(dir): include: /run/autofs.
lookup_
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
include_file: lookup(dir): include: /run/autofs.
lookup_
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
master_do_mount: mounting /-
automount_
lookup_
parse_init: parse(sun): init gathered global options: (null)
lookup_
parse_init: parse(sun): init gathered global options: (null)
lookup_
parse_init: parse(sun): init gathered global options: (null)
lookup_
parse_init: parse(sun): init gathered global options: (null)
lookup_
parse_init: parse(sun): init gathered global options: (null)
lookup_
parse_init: parse(sun): init gathered global options: (null)
mounted direct on /mnt/smb with timeout 300, freq 75 seconds
do_mount_
mounted direct on /mnt/WDC_
do_mount_
mounted direct on /mnt/WDC_
do_mount_
mounted direct on /mnt/WDC_
do_mount_
mounted direct on /mnt/FUJITSU_
do_mount_
mounted direct on /mnt/FUJITSU_
do_mount_
st_ready: st_ready(): state = 0 path /-
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: autofs 5.0.6-2ubuntu2
ProcVersionSign
Uname: Linux 3.5.0-22-generic x86_64
ApportVersion: 2.6.1-0ubuntu3
Architecture: amd64
Date: Thu Apr 4 14:44:21 2013
InstallationMedia: Xubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.1)
SourcePackage: autofs
UpgradeStatus: No upgrade log present (probably fresh install)
/etc/default/ autofs:
MASTER_ MAP_NAME= "/etc/autofs/ auto.master" DEVICE= "yes"
TIMEOUT=300
UMOUNT_WAIT=0
BROWSE_MODE="no"
LOGGING="debug"
USE_MISC_
/etc/autofs/ auto.master:
/- /etc/autofs/ auto.smb --timeout=300 auto.ftp --timeout=60
/mnt/ftp /etc/autofs/
+dir:/run/autofs.d