Bug 146440

Summary: files saved by wget to /tmp or /var/tmp are deleted on next tmpwatch
Product: [Fedora] Fedora Reporter: Tomasz Ostrowski <tometzky+redhat>
Component: wgetAssignee: Karsten Hopp <karsten>
Status: CLOSED RAWHIDE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 3   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-01-31 13:00:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tomasz Ostrowski 2005-01-28 10:20:52 UTC
Description of problem:
Wget sets last access time of downloaded file to it's modify time. If
a file is saved to /tmp or /var/tmp then next tmpwatch cron job will
delete just downloaded files. This can cause the waste of bandwidth
and, in some cases, loss of data - it is supposed that a file will
stay in /tmp for 10 days and in /var/tmp for 30.

Version-Release number of selected component (if applicable):
wget-1.9.1-17
tmpwatch-2.9.1-1

How reproducible:
Always

Steps to Reproduce:
cd /tmp
wget
http://download.fedora.redhat.com/pub/fedora/linux/core/3/i386/iso/MD5SUM
su -
/etc/cron.daily/tmpwatch
ls -gG /tmp/MD5SUM

Actual results:
ls: /tmp/MD5SUM: No such file or directory

Expected results:
-rw-r--r--  1 791 Nov  4 00:00 /tmp/MD5SUM

Additional info:
I've stepped on this wget I set downloading Fedora Core 3 iso's to
/var/tmp last night and found out today that the files are missing.

I think wget should only change modify time on downloaded files, not
access time.

Comment 1 Karsten Hopp 2005-01-31 13:00:22 UTC
Please try wget-1.9.1-19 from Rawhide