Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8549 - /etc/init.d/hdparm has wrong permissions.
Summary: /etc/init.d/hdparm has wrong permissions.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 8582 8764 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-09-29 17:57 UTC by walt
Modified: 2003-02-04 19:42 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description walt 2002-09-29 17:57:44 UTC
sys-apps/hdparm-5.2-r3 installs its init file with no
execute permissions.  Hence, the startup script gives
an error message during bootup and fails to work.
Comment 1 SpanKY gentoo-dev 2002-09-29 19:09:26 UTC
i know -r2 had this problem and -r3 was supposed to *fix* this ... 
can you make sure you dont just have some ._cfg0000_hdparm file laying about ? 
 
root@rux0r hdparm # ebuild hdparm-5.2-r3.ebuild install 
>>> md5 ;-) hdparm-5.2.tar.gz 
>>> Unpacking source... 
>>> Unpacking hdparm-5.2.tar.gz 
>>> Source unpacked. 
... stuff ... 
>>> Completed installing into /var/tmp/portage/hdparm-5.2-r3/image/ 
 
root@rux0r hdparm # ls -al 
/var/tmp/portage/hdparm-5.2-r3/image/etc/init.d/hdparm 
-rwxr-xr-x    1 root     root          387 Sep 29 20:07 
/var/tmp/portage/hdparm-5.2-r3/image/etc/init.d/hdparm 
Comment 2 Todd Geders 2002-09-29 22:43:34 UTC
I can confirm this bug, permissions were not set properly.  Should be an easy fix.
Comment 3 SpanKY gentoo-dev 2002-09-30 00:13:09 UTC
can you confirm my 2nd comment ?
that you dont have some ._cfg000_ file laying around ? and/or deleted it ?
Comment 4 SpanKY gentoo-dev 2002-09-30 00:46:21 UTC
ok, it looks like -r2 installed the original /etc/init.d/hdparm script, without 
execute permissions

if you emerge -r3, it doesnt overwrite the file or install a ._cfg0000_hdparm 
file ... that is quite odd ...

if you remove /etc/init.d/hdparm and then emerge -r3, your problem will be fixed
Comment 5 SpanKY gentoo-dev 2002-09-30 14:27:32 UTC
*** Bug 8582 has been marked as a duplicate of this bug. ***
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-30 14:37:05 UTC
Well, -r2 did not install it correctly, which is one of the issues -r3
addresses .. check the ChangLog ....

It do not just overwrite /etc/init.d/hdparm (-r3), due to CONFIG_PROTECT.
Thus just do the "normal thing with ._cfg*" files, and move the updated
file over the old, which should resolve the issue.

  # mv /etc/init.d/._cfg0000_hdparm /etc/init.d/hdparm

Comment 7 SpanKY gentoo-dev 2002-09-30 15:51:25 UTC
as i noted in comment #4, it doesnt seem to install a ._cfg0000_ file like it 
should ... 
Comment 8 SpanKY gentoo-dev 2002-10-05 14:16:10 UTC
*** Bug 8764 has been marked as a duplicate of this bug. ***