unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* copy-file broken
@ 2003-08-30 11:18 Andre Spiegel
  2003-08-30 14:18 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Andre Spiegel @ 2003-08-30 11:18 UTC (permalink / raw)


When I use copy-file with the keep-time option, the resulting file is
dated 1970-01-01.  I already reported this on this list a few days ago,
but there has been no response yet.  Myself, I'm not sufficiently
familiar with fileio.c to debug this.

I'm seeing the problem under Debian GNU/Linux, 2.4.21, Emacs CVS HEAD.
The problem may be related to Ken Raeburn's change in fileio.c from
2002-07-15 (version 1.454) -- at least, that's the most recent change in
the code that seems to handle keep-time.

Would somebody who knows his way around there please have a look?

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

* Re: copy-file broken
  2003-08-30 11:18 copy-file broken Andre Spiegel
@ 2003-08-30 14:18 ` Eli Zaretskii
  2003-08-30 21:51   ` Andre Spiegel
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2003-08-30 14:18 UTC (permalink / raw)
  Cc: emacs-devel

> From: Andre Spiegel <spiegel@gnu.org>
> Date: Sat, 30 Aug 2003 13:18:12 +0200
> 
> When I use copy-file with the keep-time option, the resulting file is
> dated 1970-01-01.  I already reported this on this list a few days ago,
> but there has been no response yet.  Myself, I'm not sufficiently
> familiar with fileio.c to debug this.
> 
> I'm seeing the problem under Debian GNU/Linux, 2.4.21, Emacs CVS HEAD.

I cannot reproduce this with today's CVS HEAD on fencepost.gnu.org
which claims to be

  Linux fencepost 2.4.20-19.9smp #1 SMP Tue Jul 15 17:04:18 EDT 2003 i686 unknown

is it possible that this is some library bug?  Emacs calls `utimes'
to set the file's times (see sysdep.c:set_file_times).

> The problem may be related to Ken Raeburn's change in fileio.c from
> 2002-07-15 (version 1.454) -- at least, that's the most recent change in
> the code that seems to handle keep-time.

I looked at the code both in Fcopy_file and in set_file_times, and
couldn't spot anything unusual or suspicious there.

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

* Re: copy-file broken
  2003-08-30 14:18 ` Eli Zaretskii
@ 2003-08-30 21:51   ` Andre Spiegel
  2003-08-31  6:42     ` Simon Josefsson
  0 siblings, 1 reply; 4+ messages in thread
From: Andre Spiegel @ 2003-08-30 21:51 UTC (permalink / raw)
  Cc: Simon Josefsson, emacs-devel

On Sat, 2003-08-30 at 16:18, Eli Zaretskii wrote:

> I cannot reproduce this with today's CVS HEAD on fencepost.gnu.org
> which claims to be
> 
>   Linux fencepost 2.4.20-19.9smp #1 SMP Tue Jul 15 17:04:18 EDT 2003 i686 unknown
> 
> is it possible that this is some library bug?  Emacs calls `utimes'
> to set the file's times (see sysdep.c:set_file_times).

I'm seeing the error with today's HEAD, libc6 2.3.2-2 (debian package),
doing

  (copy-file (expand-file-name "~/.emacs") 
             (expand-file-name "~/new") nil 'keep-time)

The file ~/new has date 1970-01-01 after this.

libc6 on fencepost is 2.2.5-11.5, so this might indeed be the reason.

Simon, could you tell us which version of the C library you've been
using?

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

* Re: copy-file broken
  2003-08-30 21:51   ` Andre Spiegel
@ 2003-08-31  6:42     ` Simon Josefsson
  0 siblings, 0 replies; 4+ messages in thread
From: Simon Josefsson @ 2003-08-31  6:42 UTC (permalink / raw)
  Cc: Eli Zaretskii, emacs-devel

Andre Spiegel <spiegel@gnu.org> writes:

> On Sat, 2003-08-30 at 16:18, Eli Zaretskii wrote:
>
>> I cannot reproduce this with today's CVS HEAD on fencepost.gnu.org
>> which claims to be
>> 
>>   Linux fencepost 2.4.20-19.9smp #1 SMP Tue Jul 15 17:04:18 EDT 2003 i686 unknown
>> 
>> is it possible that this is some library bug?  Emacs calls `utimes'
>> to set the file's times (see sysdep.c:set_file_times).
>
> I'm seeing the error with today's HEAD, libc6 2.3.2-2 (debian package),
> doing
>
>   (copy-file (expand-file-name "~/.emacs") 
>              (expand-file-name "~/new") nil 'keep-time)
>
> The file ~/new has date 1970-01-01 after this.
>
> libc6 on fencepost is 2.2.5-11.5, so this might indeed be the reason.
>
> Simon, could you tell us which version of the C library you've been
> using?

I'm using 2.3.2-4 (debiab unstable).  Sounds like a libc problem.

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

end of thread, other threads:[~2003-08-31  6:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-30 11:18 copy-file broken Andre Spiegel
2003-08-30 14:18 ` Eli Zaretskii
2003-08-30 21:51   ` Andre Spiegel
2003-08-31  6:42     ` Simon Josefsson

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).