SQLite Archiver
Artifact Content
Not logged in

Artifact 864e9759e5dadd566584f669fb50f7d322f0b8ec:

Ticket change [864e9759e5] - New ticket [9dafc30484] sqlar tosses file mod times. by anonymous 2017-12-14 06:03:37.
D 2017-12-14T06:03:37.925
J foundin tip\sas\sof\stoday
J icomment sqlar.c,\sas\sof\scheck-in\s[4a0ed63dae]\sat\s2017-12-02\s19:15:43\son\sbranch\strunk,\sin\sits\swrite_file()\sfunction,\sdoes\snothing\swith\sthe\smtime\sargument.\sUpon\srestoration\sout\sof\san\sarchive,\sall\sfiles\shave\sthe\ssame,\snearly\suseless\stimestamp.\r\n\r\nAdding\sthese\slines\sin\sthe\sright\splaces\sfixes\sthis\sdeficiency:\r\n\s\s#include\s<utime.h>\s//\snear\ssqlar.c\stop\r\n...\r\n\s\sstruct\sutimbuf\stb\s=\s{\smtime,\smtime\s};\s//\snear\swrite_file\stop\r\n...\r\n\s\src\s=\sutime(zFilename,\s&tb);\s\s//\sat\swrite_file\sbottom\r\n\s\sif(\src\s)\serrorMsg("cannot\sset\stimestamps:\s%s\\n",\szFilename);\r\n\r\nI'm\ssure\sthat\sincluding\smtime\sin\sthe\sschema\swas\swell\smotivated,\sso\sI\scite\sthat\sin\slieu\sof\san\sargument\sfor\sactually\spreserving\sthe\scorresponding\sfile\sattribute.
J login anonymous
J mimetype text/x-fossil-plain
J private_contact a3f9bb81e58d0893fc9338b98ddc62e27a349b16
J severity Important
J status Open
J title sqlar\stosses\sfile\smod\stimes
J type Feature_Request
K 9dafc304842267ed73268d3fc43497ef64891144
U anonymous
Z 6365b7a1c27abcda34fa1d5646d48c68