Package: mount
Version: 2.16.2-0
Severity: important

mount gives a completely wrong error message after the kernel refused to
mount something with ENOMEDIUM.

| # mount /dev/sr0 /mnt/man1 
| mount: you must specify the filesystem type

| execve("/bin/mount", ["mount", "/dev/sr0", "/mnt/man1"], [/* 22 vars */]) = 0
| [...]
| umask(022)                              = 027
| open("/dev/null", O_RDWR)               = 3
| close(3)                                = 0
| getuid()                                = 0
| geteuid()                               = 0
| stat("/dev/sr0", {st_mode=S_IFBLK|0660, st_rdev=makedev(11, 0), ...}) = 0
| readlink("/dev", 0x7fff70e72450, 4096)  = -1 EINVAL (Invalid argument)
| readlink("/dev/sr0", 0x7fff70e72450, 4096) = -1 EINVAL (Invalid argument)
| rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
| open("/dev/sr0", O_RDONLY)              = -1 ENOMEDIUM (No medium found)
| rt_sigprocmask(SIG_BLOCK, [CHLD], ~[TRAP KILL SEGV STOP RTMIN RT_1], 8) = 0
| nanosleep({3, 0}, 0x7fff70e73150)       = 0
| open("/dev/sr0", O_RDONLY)              = -1 ENOMEDIUM (No medium found)
| rt_sigprocmask(SIG_BLOCK, [CHLD], ~[TRAP KILL SEGV STOP RTMIN RT_1], 8) = 0
| nanosleep({3, 0}, 0x7fff70e73150)       = 0
| open("/dev/sr0", O_RDONLY)              = -1 ENOMEDIUM (No medium found)
| rt_sigprocmask(SIG_BLOCK, [CHLD], ~[TRAP KILL SEGV STOP RTMIN RT_1], 8) = 0
| nanosleep({3, 0}, 0x7fff70e73150)       = 0
| open("/dev/sr0", O_RDONLY)              = -1 ENOMEDIUM (No medium found)
| rt_sigprocmask(SIG_BLOCK, [CHLD], ~[TRAP KILL SEGV STOP RTMIN RT_1], 8) = 0
| nanosleep({3, 0}, 0x7fff70e73150)       = 0
| open("/dev/sr0", O_RDONLY)              = -1 ENOMEDIUM (No medium found)
| rt_sigprocmask(SIG_BLOCK, [CHLD], ~[TRAP KILL SEGV STOP RTMIN RT_1], 8) = 0
| nanosleep({3, 0}, 0x7fff70e73150)       = 0
| open("/dev/sr0", O_RDONLY)              = -1 ENOMEDIUM (No medium found)
| open("/etc/filesystems", O_RDONLY)      = -1 ENOENT (No such file or 
directory)
| open("/proc/filesystems", O_RDONLY)     = 3
| [...]
| munmap(0x7f3e7242a000, 4096)            = 0
| open("/usr/share/locale/en_US/LC_MESSAGES/util-linux-ng.mo", O_RDONLY) = -1 
ENOENT (No such file or directory)
| open("/usr/share/locale/en/LC_MESSAGES/util-linux-ng.mo", O_RDONLY) = -1 
ENOENT (No such file or directory)
| write(2, "mount: you must specify the file"..., 43) = 43
| write(2, "\n", 1)                       = 1
| exit_group(32)                          = ?

That it blocks SIGINT during the loop is a different problem.

Bastian

-- 
I'm a soldier, not a diplomat.  I can only tell the truth.
                -- Kirk, "Errand of Mercy", stardate 3198.9



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to