Report forwarded to debian-bugs-dist@lists.debian.org, Rob Browning <rlb@defaultvalue.org>:
Bug#117502; Package emacs21.   debian-bugs-dist@lists.debian.orgRob Browning  Subject: Bug#117502: emacs21: ange-ftp doesn't save correctly Reply-To: Sven Fischer , 117502@bugs.debian.org Resent-From: Sven Fischer Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Rob Browning Resent-Date: Mon, 29 Oct 2001 08:48:02 GMT Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 117502 X-Debian-PR-Package: emacs21 X-Debian-PR-Keywords: X-Loop: owner@bugs.debian.org Received: via spool by submit@bugs.debian.org id=B.10043450409095 (code B ref -1); Mon, 29 Oct 2001 08:48:02 GMT Message-Id: Date: Mon, 29 Oct 2001 09:43:27 +0100 (CET) From: Sven Fischer To: submit@bugs.debian.org Bcc: X-Mailer: bug 3.3.7 Delivered-To: submit@bugs.debian.org Package: emacs21 Version: 21.1-1 Severity: normal When using ange-ftp from the emacs21 distribution, I have a problem when saving the files under ange-ftp control. It says, the file would have been changed on disk, even if this is not correct. And if I say to save it anyway, the process fails with an error. I copied the ange-ftp from emacs20.7, it works well. -- System Information Debian Release: testing/unstable Kernel Version: Linux fischer 2.4.13 #4 Fre Okt 26 15:59:42 CEST 2001 i686 unknown Versions of the packages emacs21 depends on: hi dpkg 1.9.16 Package maintenance system for Debian hi emacsen-common 1.4.12 Common facilities for all emacsen. hi libc6 2.2.4-3 GNU C Library: Shared libraries and Timezone hi libjpeg62 6b-1.3 The Independent JPEG Group's JPEG runtime li hi liblockfile1 1.01 Shared library with NFS-safe locking functio hi libncurses5 5.2.20010318-1 Shared libraries for terminal handling hi libpng2 1.0.12-2 PNG library - runtime hi libtiff3g 3.5.5-2 Tag Image File Format library hi libungif4g 4.1-4 shared library for GIF images (runtime lib) hi libxaw6 4.1.0-8 X Athena widget set library (version 6) hi xlibs 4.1.0-1 X Window System client libraries hi zlib1g 1.1.3-15 compression library - runtime   Acknowledgement sent to Sven Fischer <sven@deutaeit.de>:
New Bug report received and forwarded. Copy sent to Rob Browning <rlb@defaultvalue.org>.   -t  From: owner@bugs.debian.org (Debian Bug Tracking System) To: Sven Fischer Subject: Bug#117502: Acknowledgement (emacs21: ange-ftp doesn't save correctly) Message-ID: In-Reply-To: References: X-Debian-PR-Message: ack 117502 Reply-To: 117502@bugs.debian.org Thank you for the problem report you have sent regarding Debian. This is an automatically generated reply, to let you know your message has been received. It is being forwarded to the developers mailing list for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): Rob Browning If you wish to submit further information on your problem, please send it to 117502@bugs.debian.org (and *not* to submit@bugs.debian.org). Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Darren Benham (administrator, Debian Bugs database)   Received: (at submit) by bugs.debian.org; 29 Oct 2001 08:44:00 +0000 From sven@deutaeit.de Mon Oct 29 02:44:00 2001 Return-path: Received: from (eitserver.eitintern.de) [213.168.79.210] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 15y81Y-0002MI-00; Mon, 29 Oct 2001 02:44:00 -0600 Received: from jtripper.eitintern.de ([192.168.2.12] helo=fischer) by eitserver.eitintern.de with esmtp (Exim 3.12 #1 (Debian)) id 15y812-0008Ok-00; Mon, 29 Oct 2001 09:43:28 +0100 Received: by deutaeit.de via sendmail from stdin id (Debian Smail3.2.0.111) for sven@deutaeit.de; Mon, 29 Oct 2001 09:43:27 +0100 (CET) Message-Id: Date: Mon, 29 Oct 2001 09:43:27 +0100 (CET) From: Sven Fischer Subject: emacs21: ange-ftp doesn't save correctly To: submit@bugs.debian.org Bcc: X-Mailer: bug 3.3.7 Delivered-To: submit@bugs.debian.org Package: emacs21 Version: 21.1-1 Severity: normal When using ange-ftp from the emacs21 distribution, I have a problem when saving the files under ange-ftp control. It says, the file would have been changed on disk, even if this is not correct. And if I say to save it anyway, the process fails with an error. I copied the ange-ftp from emacs20.7, it works well. -- System Information Debian Release: testing/unstable Kernel Version: Linux fischer 2.4.13 #4 Fre Okt 26 15:59:42 CEST 2001 i686 unknown Versions of the packages emacs21 depends on: hi dpkg 1.9.16 Package maintenance system for Debian hi emacsen-common 1.4.12 Common facilities for all emacsen. hi libc6 2.2.4-3 GNU C Library: Shared libraries and Timezone hi libjpeg62 6b-1.3 The Independent JPEG Group's JPEG runtime li hi liblockfile1 1.01 Shared library with NFS-safe locking functio hi libncurses5 5.2.20010318-1 Shared libraries for terminal handling hi libpng2 1.0.12-2 PNG library - runtime hi libtiff3g 3.5.5-2 Tag Image File Format library hi libungif4g 4.1-4 shared library for GIF images (runtime lib) hi libxaw6 4.1.0-8 X Athena widget set library (version 6) hi xlibs 4.1.0-1 X Window System client libraries hi zlib1g 1.1.3-15 compression library - runtime   Information forwarded to debian-bugs-dist@lists.debian.org, Rob Browning <rlb@defaultvalue.org>, emacs21@packages.qa.debian.org:
Bug#117502; Package emacs21.   debian-bugs-dist@lists.debian.orgRob Browning emacs21@packages.qa.debian.org  X-Loop: owner@bugs.debian.org Subject: Bug#117502: ange-ftp problem fix Reply-To: raj@colsa.com, 117502@bugs.debian.org Resent-From: Raj Manandhar Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Rob Browning , emacs21@packages.qa.debian.org Resent-Date: Mon, 04 Nov 2002 22:48:12 GMT Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 117502 X-Debian-PR-Package: emacs21 X-Debian-PR-Keywords: Received: via spool by 117502-submit@bugs.debian.org id=B117502.10364499028832 (code B ref 117502); Mon, 04 Nov 2002 22:48:12 GMT Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 4 Nov 2002 16:44:56 -0600 From: Raj Manandhar To: 117502@bugs.debian.org X-Mailer: VM 7.03 under Emacs 21.2.1 Bcc: Delivered-To: 117502@bugs.debian.org X-Spam-Status: No, hits=-1.5 required=5.0 tests=MSG_ID_ADDED_BY_MTA_2,SIGNATURE_SHORT_DENSE, SPAM_PHRASE_00_01 version=2.41 X-Spam-Level: I have the same problem too. It happens when the remote host's clock is ahead of the local clock by at least a few minutes (however long it takes for the user to save the file, make a change, and save it again). Somewhere in ange-ftp-write-region (maybe when the coding-system gets flipped? can't seem to trace through it with edebug), it seems that emacs checks the file's modtime using ange-ftp-file-modtime, and notices that the modtime is newer than the buffer's modtime, so it thinks that someone else has made a change to the file. Of course the real reason this happened is that the remote host's clock is ahead of the local one. This whole modtime system strikes me as broken since there's no guarantee that the two hosts will have synchronized clocks. Therefore, my fix is to disable the modtime by redefining the ange-ftp-file-modtime function (one could edit it in ange-ftp.el and recompile): (defun ange-ftp-file-modtime (file) '(0 0)) -- Raj Manandhar (raj@colsa.com) (256) 922-1512 x2900   Acknowledgement sent to raj@colsa.com:
Extra info received and forwarded to list. Copy sent to Rob Browning <rlb@defaultvalue.org>, emacs21@packages.qa.debian.org.   -t  X-Loop: owner@bugs.debian.org From: owner@bugs.debian.org (Debian Bug Tracking System) To: raj@colsa.com Subject: Bug#117502: Info received (was ange-ftp problem fix) Message-ID: In-Reply-To: References: X-Debian-PR-Message: ack-info 117502 Disabled-Doogie-Reply-To: 117502@bugs.debian.org Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the developer(s) and to the developers mailing list to accompany the original report. Your message has been sent to the package maintainer(s): Rob Browning If you wish to continue to submit further information on your problem, please send it to 117502@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Debian bug tracking system administrator (administrator, Debian Bugs database)   Received: (at 117502) by bugs.debian.org; 4 Nov 2002 22:45:02 +0000 From raj@colsa.com Mon Nov 04 16:45:01 2002 Return-path: Received: from (droid.colsa.com) [12.13.161.222] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 188pxt-0002I8-00; Mon, 04 Nov 2002 16:45:01 -0600 Message-ID: Received: by droid.colsa.com id m188pxo-0003yVC (Debian Smail-3.2.0.114 2001-Aug-6 #2); Mon, 4 Nov 2002 16:44:56 -0600 (CST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 4 Nov 2002 16:44:56 -0600 From: Raj Manandhar To: 117502@bugs.debian.org Subject: ange-ftp problem fix X-Mailer: VM 7.03 under Emacs 21.2.1 Reply-To: raj@colsa.com Bcc: Delivered-To: 117502@bugs.debian.org X-Spam-Status: No, hits=-1.5 required=5.0 tests=MSG_ID_ADDED_BY_MTA_2,SIGNATURE_SHORT_DENSE, SPAM_PHRASE_00_01 version=2.41 X-Spam-Level: I have the same problem too. It happens when the remote host's clock is ahead of the local clock by at least a few minutes (however long it takes for the user to save the file, make a change, and save it again). Somewhere in ange-ftp-write-region (maybe when the coding-system gets flipped? can't seem to trace through it with edebug), it seems that emacs checks the file's modtime using ange-ftp-file-modtime, and notices that the modtime is newer than the buffer's modtime, so it thinks that someone else has made a change to the file. Of course the real reason this happened is that the remote host's clock is ahead of the local one. This whole modtime system strikes me as broken since there's no guarantee that the two hosts will have synchronized clocks. Therefore, my fix is to disable the modtime by redefining the ange-ftp-file-modtime function (one could edit it in ange-ftp.el and recompile): (defun ange-ftp-file-modtime (file) '(0 0)) -- Raj Manandhar (raj@colsa.com) (256) 922-1512 x2900