public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] utime emulation
@ 2002-08-06 19:01 Wichmann, Mats D
  2002-08-06 20:23 ` David Mosberger
  2002-08-06 20:40 ` Andreas Schwab
  0 siblings, 2 replies; 3+ messages in thread
From: Wichmann, Mats D @ 2002-08-06 19:01 UTC (permalink / raw)
  To: linux-ia64

I'm finding that utime(filename, NULL) doesn't
follow specs - this comes up in plodding through
the LSB certification test suite.

For example, if the process does not own the
file but has write permission, the above
referenced call should succeed but fails with EPERM.

utime() is emulated on Itanium: in the kernel,
fs/open.c doesn't have a sys_utime routine 
if __ia64__ or alpha; the emulation comes from
glibc's sysdeps/unix/utime.c but appears to
be bogus.  The problem is that if the second
argument to utime is NULL the emulation code
does some work to build up a "struct timeval"
array as expected by utimes(), and passes that
off, instead of passing NULL... and so the
proper checks in the NULL case don't get done
by the kernel.

I guess this is a query to see if anyone
on this list knows anything about this code.
Is this just a glibc problem, or should Itanium
go back to providing the non-emulated utime
routine like nearly all the other arch's do
(and so this emulation code is not run).


Mats Wichmann


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-08-06 20:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-06 19:01 [Linux-ia64] utime emulation Wichmann, Mats D
2002-08-06 20:23 ` David Mosberger
2002-08-06 20:40 ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox