Package: wget Version: 1.10.2-2 Severity: grave hi,
according to manual, -N should stand for 'check time-stamp', which means (w)get and replace if newer than local copy. It turns out instead that wget checks just the size, regardless of timestamp: # ls -l rubricaXrX -rw-r--r-- 1 root root 3887 2007-04-17 14:34 rubricaXrX # LANG=C wget -N -v http://comix/rubriche/rubricaXrX --14:35:14-- http://comix/rubriche/rubricaXrX => `rubricaXrX' Resolving comix... 192.168.0.2 Connecting to comix|192.168.0.2|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 3,757 (3.7K) [text/plain] The sizes do not match (local 3887) -- retrieving. --14:35:14-- http://comix/rubriche/rubricaXrX => `rubricaXrX' Reusing existing connection to comix:80. HTTP request sent, awaiting response... 200 OK Length: 3,757 (3.7K) [text/plain] 100%[=======================================>] 3,757 --.--K/s 14:35:14 (127.96 MB/s) - `rubricaXrX' saved [3757/3757] # ls -l rubricaXrX -rw-r--r-- 1 root root 3757 2004-10-12 17:27 rubricaXrX while http server sends proper headers: # lynx -mime_header http://comix/rubriche/rubricaXrX|sed '/^\r$/q' HTTP/1.0 200 OK Date: Tue, 17 Apr 2007 12:39:22 GMT Server: Boa/0.94.11 Connection: close Content-Length: 3757 Last-Modified: Tue, 12 Oct 2004 15:27:32 GMT Content-Type: text/plain Bug leads to overwriting of local newer files; that's "data loss", hence the 'grave' tag. thanks -- paolo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]