From: "Pawel Dziepak" <hryssta@gmail.com>
To: "Jan Engelhardt" <jengelh@computergmbh.de>
Cc: linux-fsdevel@vger.kernel.org,
"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
hirofumi@mail.parknet.co.jp
Subject: Re: utimes() with vfat is problematic
Date: Tue, 10 Jul 2007 12:18:17 +0200 [thread overview]
Message-ID: <ec870ced0707100318g87f22f8wcaa6a715c064338@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0707101142270.11053@fbirervta.pbzchgretzou.qr>
2007/7/10, Jan Engelhardt <jengelh@computergmbh.de>:
> I am not sure how this could be dealt with besides passing -o quiet to
> mount.vfat. Any ideas?
The problem is in the function utimes. I have mounted vfat partition
as a root, then changed permissions to 777 for all files. However, I
wasn't be able to touch any file (changing date to the past) as a
normal user. utimes() should check write permission instead of uid/
I didn't read 'touch' source code and it is probably caused by it's
procedures that I was able to change modification date to the current
date.
Single UNIX Specification says crealy that to do utimes on a file user
have to had write permissions or be a file owner.
Pawel
next prev parent reply other threads:[~2007-07-10 10:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-10 9:47 utimes() with vfat is problematic Jan Engelhardt
2007-07-10 10:18 ` Pawel Dziepak [this message]
2007-07-10 16:38 ` Jan Engelhardt
2007-07-10 16:54 ` Pawel Dziepak
[not found] <8Fkwa-6BT-29@gated-at.bofh.it>
2007-07-11 11:49 ` Bodo Eggert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ec870ced0707100318g87f22f8wcaa6a715c064338@mail.gmail.com \
--to=hryssta@gmail.com \
--cc=hirofumi@mail.parknet.co.jp \
--cc=jengelh@computergmbh.de \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).