#228 joe does not preserve timestamps of backup files

closed
nobody
None
5
2008-10-30
2008-10-30
Jari Aalto
No

Cf. Debian bug http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=356267

Package: joe
Version: 3.1-0.2

Upon saving a modified file, joe 3.1-0.2, as well as joe 3.3-2,
retains the original file as file~, but sets its timestamp to that
of the newly edited file:

# ls -l
-rw-r--r-- 1 root root 276 Dec 31 1999 test
# jstar test
# ls -l
-rw-r--r-- 1 root root 552 Mar 10 16:40 test
-rw-r--r-- 1 root root 276 Mar 10 16:40 test~

That way, information on when the original file was created will be
lost. This bug / feature was not present in older versions of joe,
e.g. joe 2.8-20.

If it is a new feature, please consider making it configurable for
those of us who rather like the old way of preserving timestamps of
backup files.

Discussion

  • Joe Allen

    Joe Allen - 2008-10-30

    This is fixed in CVS. Older versions of JOE made the backup file by basically 'mv'ing them, so the timestamp was preserved- but this caused other issues (for example with links). So more recent versions of JOE make the backup file by copying which, like "cp", puts the current mod_time on the file. Anyway, now in CVS, the backup files are still made by copying, but then the timestamp is modified to the original with utime().

    JOE also now tries to preserve the setuid bit of the original file.

     
  • Joe Allen

    Joe Allen - 2008-10-30
    • status: open --> closed
     
  • Joe Allen

    Joe Allen - 2008-10-30

    It's fixed in JOE 3.6.

     
  • Jari Aalto

    Jari Aalto - 2008-10-30

    Thank you, Debian BTS now updated.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks