Bug 1251693 - etc file f22-kde-theme.sh file is hardlinked
Summary: etc file f22-kde-theme.sh file is hardlinked
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: f22-kde-theme
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-08 20:36 UTC by Martin B.
Modified: 2015-08-08 20:51 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-08 20:51:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
proposed fix of specfile (764 bytes, patch)
2015-08-08 20:41 UTC, Martin B.
no flags Details | Diff

Description Martin B. 2015-08-08 20:36:12 UTC
Description of problem
======================

Package f22-kde-theme contains file which is hardlinked into 2 places within
/etc. I'm not sure whether hardlinking in /etc is considered a good practice.

Version-Release number of selected component
============================================

f22-kde-theme-22.3-4.fc22.noarch

Steps to Reproduce
==================

1. Install f22-kde-theme
2. Check the following /etc files:

 * /etc/xdg/plasma-workspace/env/f22-kde-theme.sh
 * /etc/xdg/plasma-workspace/shutdown/f22-kde-theme.sh

Actual results
==============

The file is a hard link:

~~~
# ls -l /etc/xdg/plasma-workspace/env/f22-kde-theme.sh 
-rw-r--r--. 2 root root 744 Jun 12 17:39 /etc/xdg/plasma-workspace/env/f22-kde-theme.sh
# ls -l /etc/xdg/plasma-workspace/shutdown/f22-kde-theme.sh
-rw-r--r--. 2 root root 744 Jun 12 17:39 /etc/xdg/plasma-workspace/shutdown/f22-kde-theme.sh
~~~

~~~
# rpm -qf /etc/xdg/plasma-workspace/env/f22-kde-theme.sh
f22-kde-theme-22.3-4.fc22.noarch
# rpm -qf /etc/xdg/plasma-workspace/shutdown/f22-kde-theme.sh
f22-kde-theme-22.3-4.fc22.noarch
~~~

Expected results
================

File f22-kde-theme.sh is not packaged as a hardlink.

Additional info
===============

On my system, all the other files in /etc/xdg/plasma-workspace/env/ are not
hardlinked:

~~~
# ls -l /etc/xdg/plasma-workspace/env
total 20
-rw-r--r--. 1 root root 346 Aug  6  2014 env.sh
-rw-r--r--. 2 root root 744 Jun 12 17:39 f22-kde-theme.sh
-rw-r--r--. 1 root root 644 Mar  3 20:29 gtk2_rc_files.sh
-rw-r--r--. 1 root root 175 Jun 16 22:31 gtk3_scrolling.sh
-rw-r--r--. 1 root root  52 Jun 26 17:09 ksshaskpass.sh
~~~

Comment 1 Martin B. 2015-08-08 20:41:23 UTC
Created attachment 1060660 [details]
proposed fix of specfile

Comment 2 Rex Dieter 2015-08-08 20:51:57 UTC
There's no harm in these being hardlinked (that I'm aware of)

Please correct me if I'm wrong.


Note You need to log in before you can comment on or make changes to this bug.