Re: [bugzilla-daemon@gentoo.org: [Bug 93671] mount uses wrong default umask for fat filesystem]

From: OGAWA Hirofumi
Date: Mon Jun 27 2005 - 11:07:47 EST


Karel Kulhavy <clock@xxxxxxxxxxxxx> writes:

> ------- Additional Comments From stian@xxxxxxxx 2005-06-26 16:36 PDT -------
> This is not a mount bug, but a kernel-bug. umask=nnn is passed along other
> user-flags to the mount syscall as a string, and the kernel-filesystem driver
> parses the string and denies the syscall if a syntax-error occures. Not all
> filesystems supports umask, so umask is not sent unless spesified. If the mount
> man-page claims that umask is defaulted to the current shell umask setting, the
> kernel-driver needs to take this into account when umask isn't found in the
> string it receives from user-space. Just my 5 cent about this bug

Look util-linux-2.12q... hm, mount command is reseting the umask in main().
--
OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/