Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109463 - /etc/init.d/halt.sh doesn't remove all temporary device-saving files
Summary: /etc/init.d/halt.sh doesn't remove all temporary device-saving files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-16 05:27 UTC by Marek Szuba (RETIRED)
Modified: 2005-10-16 06:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
halt.sh-rmtmpfiles.diff (halt.sh-rmtmpfiles.diff,595 bytes, patch)
2005-10-16 05:27 UTC, Marek Szuba (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Szuba (RETIRED) archtester gentoo-dev 2005-10-16 05:27:19 UTC
This issue appeared in baselayout some versions ago and seems to remain present 
in the current version, so I figured it would be worth mentioning. Anyhow, let 
us examine /etc/init.d/halt.sh: lines 27 to 30 cause four temporary files to be 
created in section of the file (lines 24-73), but lines 64-69 show it is 
possible for at least one of them not to be removed by the end of the script:
 - if ${devices_totar} is not empty, two of the files will be deleted and one 
will hopefully be renamed to a non-temporary name, but ${devices_totar} itself 
will remain;
 - otherwise, ALL FOUR temporary files will remain.

The attached patch fixes the problem.
Comment 1 Marek Szuba (RETIRED) archtester gentoo-dev 2005-10-16 05:27:45 UTC
Created attachment 70788 [details, diff]
halt.sh-rmtmpfiles.diff
Comment 2 Marek Szuba (RETIRED) archtester gentoo-dev 2005-10-16 06:54:49 UTC
Great, I've just run upgrade and it turns out this HAS been fixed recently, some 
time between the time I patched my script and the time I managed to find a while 
to post it... Sorry about the fuss.