autofs doesn't handle non-english characters in map files included with +dir option

Bug #1164446 reported by Alexander
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
autofs (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Contents of /run/autofs.d:

$ tail /run/autofs.d/*
==> /run/autofs.d/sda1.autofs <==
/- /run/autofs.d/sda1.direct --timeout=10

==> /run/autofs.d/sda1.direct <==
/mnt/WDC_WD5000BEVT-22ZAT0/sda1 -fstype=ntfs-3g,users,exec :/dev/sda1

==> /run/autofs.d/sda5.autofs <==
/- /run/autofs.d/sda5.direct --timeout=10

==> /run/autofs.d/sda5.direct <==
/mnt/WDC_WD5000BEVT-22ZAT0/sda5 -fstype=auto :/dev/sda5

==> /run/autofs.d/sda7.autofs <==
/- /run/autofs.d/sda7.direct --timeout=10

==> /run/autofs.d/sda7.direct <==
/mnt/WDC_WD5000BEVT-22ZAT0/sda7 -fstype=auto :/dev/sda7

==> /run/autofs.d/sdb2.autofs <==
/- /run/autofs.d/sdb2.direct --timeout=10

==> /run/autofs.d/sdb2.direct <==
/mnt/FUJITSU_MHY2160BH/sdb2_root -fstype=ext4 :/dev/sdb2

==> /run/autofs.d/sdb3.autofs <==
/- /run/autofs.d/sdb3.direct --timeout=10

==> /run/autofs.d/sdb3.direct <==
/mnt/FUJITSU_MHY2160BH/sdb3_Флешка -fstype=ntfs-3g,users,exec :/dev/sdb3

Debug output:

Starting automounter version 5.0.6, master map /etc/autofs/auto.master
using kernel protocol version 5.02
lookup_nss_read_master: reading master file /etc/autofs/auto.master
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_nss_read_master: reading master dir /run/autofs.d
lookup_read_master: lookup(dir): scandir: /run/autofs.d
include_file: lookup(dir): include: /run/autofs.d/sda1.autofs
lookup_nss_read_master: reading master file /run/autofs.d/sda1.autofs
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
include_file: lookup(dir): include: /run/autofs.d/sda5.autofs
lookup_nss_read_master: reading master file /run/autofs.d/sda5.autofs
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
include_file: lookup(dir): include: /run/autofs.d/sda7.autofs
lookup_nss_read_master: reading master file /run/autofs.d/sda7.autofs
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
include_file: lookup(dir): include: /run/autofs.d/sdb2.autofs
lookup_nss_read_master: reading master file /run/autofs.d/sdb2.autofs
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
include_file: lookup(dir): include: /run/autofs.d/sdb3.autofs
lookup_nss_read_master: reading master file /run/autofs.d/sdb3.autofs
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
master_do_mount: mounting /-
automount_path_to_fifo: fifo name /run/autofs.fifo--
lookup_nss_read_map: reading map file /etc/autofs/auto.smb
parse_init: parse(sun): init gathered global options: (null)
lookup_nss_read_map: reading map file /run/autofs.d/sda1.direct
parse_init: parse(sun): init gathered global options: (null)
lookup_nss_read_map: reading map file /run/autofs.d/sda5.direct
parse_init: parse(sun): init gathered global options: (null)
lookup_nss_read_map: reading map file /run/autofs.d/sda7.direct
parse_init: parse(sun): init gathered global options: (null)
lookup_nss_read_map: reading map file /run/autofs.d/sdb2.direct
parse_init: parse(sun): init gathered global options: (null)
lookup_nss_read_map: reading map file /run/autofs.d/sdb3.direct
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_autofs_direct: mounted trigger /mnt/smb
mounted direct on /mnt/WDC_WD5000BEVT-22ZAT0/sda1 with timeout 10, freq 3 seconds
do_mount_autofs_direct: mounted trigger /mnt/WDC_WD5000BEVT-22ZAT0/sda1
mounted direct on /mnt/WDC_WD5000BEVT-22ZAT0/sda5 with timeout 10, freq 3 seconds
do_mount_autofs_direct: mounted trigger /mnt/WDC_WD5000BEVT-22ZAT0/sda5
mounted direct on /mnt/WDC_WD5000BEVT-22ZAT0/sda7 with timeout 10, freq 3 seconds
do_mount_autofs_direct: mounted trigger /mnt/WDC_WD5000BEVT-22ZAT0/sda7
mounted direct on /mnt/FUJITSU_MHY2160BH/sdb2_root with timeout 10, freq 3 seconds
do_mount_autofs_direct: mounted trigger /mnt/FUJITSU_MHY2160BH/sdb2_root
st_ready: st_ready(): state = 0 path /-

here is no sdb3 mount point!

If I change /run/autofs.d/sdb3.direct to:
/mnt/FUJITSU_MHY2160BH/sdb3_no_non-english -fstype=ntfs-3g,users,exec :/dev/sdb3

everything begins to work:
Starting automounter version 5.0.6, master map /etc/autofs/auto.master
using kernel protocol version 5.02
lookup_nss_read_master: reading master file /etc/autofs/auto.master
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_nss_read_master: reading master dir /run/autofs.d
lookup_read_master: lookup(dir): scandir: /run/autofs.d
include_file: lookup(dir): include: /run/autofs.d/sda1.autofs
lookup_nss_read_master: reading master file /run/autofs.d/sda1.autofs
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
include_file: lookup(dir): include: /run/autofs.d/sda5.autofs
lookup_nss_read_master: reading master file /run/autofs.d/sda5.autofs
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
include_file: lookup(dir): include: /run/autofs.d/sda7.autofs
lookup_nss_read_master: reading master file /run/autofs.d/sda7.autofs
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
include_file: lookup(dir): include: /run/autofs.d/sdb2.autofs
lookup_nss_read_master: reading master file /run/autofs.d/sdb2.autofs
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
include_file: lookup(dir): include: /run/autofs.d/sdb3.autofs
lookup_nss_read_master: reading master file /run/autofs.d/sdb3.autofs
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /-
master_do_mount: mounting /-
automount_path_to_fifo: fifo name /run/autofs.fifo--
lookup_nss_read_map: reading map file /etc/autofs/auto.smb
parse_init: parse(sun): init gathered global options: (null)
lookup_nss_read_map: reading map file /run/autofs.d/sda1.direct
parse_init: parse(sun): init gathered global options: (null)
lookup_nss_read_map: reading map file /run/autofs.d/sda5.direct
parse_init: parse(sun): init gathered global options: (null)
lookup_nss_read_map: reading map file /run/autofs.d/sda7.direct
parse_init: parse(sun): init gathered global options: (null)
lookup_nss_read_map: reading map file /run/autofs.d/sdb2.direct
parse_init: parse(sun): init gathered global options: (null)
lookup_nss_read_map: reading map file /run/autofs.d/sdb3.direct
parse_init: parse(sun): init gathered global options: (null)
mounted direct on /mnt/smb with timeout 300, freq 75 seconds
do_mount_autofs_direct: mounted trigger /mnt/smb
mounted direct on /mnt/WDC_WD5000BEVT-22ZAT0/sda1 with timeout 10, freq 3 seconds
do_mount_autofs_direct: mounted trigger /mnt/WDC_WD5000BEVT-22ZAT0/sda1
mounted direct on /mnt/WDC_WD5000BEVT-22ZAT0/sda5 with timeout 10, freq 3 seconds
do_mount_autofs_direct: mounted trigger /mnt/WDC_WD5000BEVT-22ZAT0/sda5
mounted direct on /mnt/WDC_WD5000BEVT-22ZAT0/sda7 with timeout 10, freq 3 seconds
do_mount_autofs_direct: mounted trigger /mnt/WDC_WD5000BEVT-22ZAT0/sda7
mounted direct on /mnt/FUJITSU_MHY2160BH/sdb2_root with timeout 10, freq 3 seconds
do_mount_autofs_direct: mounted trigger /mnt/FUJITSU_MHY2160BH/sdb2_root
mounted direct on /mnt/FUJITSU_MHY2160BH/sdb3_no_non-english with timeout 10, freq 3 seconds
do_mount_autofs_direct: mounted trigger /mnt/FUJITSU_MHY2160BH/sdb3_no_non-english
st_ready: st_ready(): state = 0 path /-

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: autofs 5.0.6-2ubuntu2
ProcVersionSignature: Ubuntu 3.5.0-22.34~pre201301090400-generic 3.5.7.2
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)

Revision history for this message
Alexander (lxandr) wrote :
Revision history for this message
Alexander (lxandr) wrote :

/etc/default/autofs:

MASTER_MAP_NAME="/etc/autofs/auto.master"
TIMEOUT=300
UMOUNT_WAIT=0
BROWSE_MODE="no"
LOGGING="debug"
USE_MISC_DEVICE="yes"

/etc/autofs/auto.master:

/- /etc/autofs/auto.smb --timeout=300
/mnt/ftp /etc/autofs/auto.ftp --timeout=60
+dir:/run/autofs.d

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in autofs (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.