Go to file
Doug Torrance 8c43b61e0d wmhdplop: Find disk device after /run transition
Patch by Andre Beck <beck@ibh.de> to fix Debian bug #657882.

After the recent /run transition, which also finally turned /etc/mtab into
a symlink to /proc/mounts, *hdplop (both incarnations) may fail to find a
single disk device automatically. This is likely due to the root device
now being exposed as mounted on /dev/disk/by-uuid/$UUID whereas the
former /etc/mtab as written by mount still contained a device name as
taken from /etc/fstab, which in my case could be parsed by *hdplop. It's
unclear if this wouldn't have hit other environments earlier depending
on their fstab contents, I just assume for now that I'm one of the
remaining handful of users of this tool ;)

The fundamental issue is of course the rather crude code in devnames.c's
device_id_from_name() which tries to manually resolve device symlinks,
but cannot possibly work with any symlink except those located directly
in /dev - symlinks in subdirectories of /dev will fail.

Impact on wmhdplop: Doesn't start except when called explicitely with
some "-d /dev/sda" or such option.

Impact on gkrellm-hdplop: Starts but is dazed and confused, leaving a
black window in gkrellm. Clicking on the black window will then crash
gkrellm, as it hits an assertion that the device list cannot be empty.

I've prepared a small patch that makes *hdplop work again for me, the
patch replaces the broken manual symlink resolving by a simple call
to realpath(3), hopefully not breaking other stuff. I refrained from
doing any more changes to the code, even though it looks like it needs
some love. Upstream seems to have lost interest five years ago, though...

So, without much further ado, here's my crude fix:

Don't look too closely, specifically on the strncpy(3) stuff, but I felt
this is still better than abusing snprintf(3) like the original code does
some lines above, and as I said, starting to really fix things here looks
like a bottomless pit...

Thanks,
Andre.

https://bugs.debian.org/657882
https://sources.debian.net/src/wmhdplop/0.9.9-5/debian/patches/
  find-disk-device.patch/
2016-11-24 15:43:12 +00:00
AlsaMixer.app Keep mute state from getting out of sync with reality 2014-12-04 10:18:32 +00:00
ascd ascd: Add version 0.13.2 to repository. 2016-08-09 14:44:14 +01:00
libdockapp libdockapp: Bump to version 0.7.2. 2015-10-21 09:07:01 -04:00
Temperature.app Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmacpi wmacpi: Update header file location. 2015-10-21 09:07:01 -04:00
wmacpiload Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmbatteries Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmbattery wmbattery: Bump to version 2.50. 2015-08-30 21:24:10 +01:00
wmbiff wmbiff: Fix typos. 2016-07-20 16:37:37 +01:00
wmbutton Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmcalc wmcalc: Fix reference to config file in manpage. 2016-06-22 07:43:47 +02:00
wmCalClock Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmcalendar Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmcdplay wmcdplay: Bump to version 1.1. 2014-12-18 18:43:10 +00:00
wmckgmail wmckgmail uses libdockapp 2015-08-16 09:41:07 +01:00
wmcliphist wmcliphist: Release version 2.1. 2014-11-23 10:26:23 +00:00
wmclock wmclock: Bump to version 1.0.16. 2015-09-24 10:16:48 +01:00
wmcpufreq wmcpufreq uses libdockapp 2015-08-16 09:41:07 +01:00
wmcpuload wmcpuload: Bump to version 1.1.1. 2016-10-20 15:34:31 +01:00
wmfemon Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmfsm wmfsm: Bump to version 0.36. 2015-08-21 08:24:26 +01:00
wmfu Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmget wmget: Bump to version 0.6.1. 2016-02-07 21:06:01 +05:30
wmhdplop wmhdplop: Find disk device after /run transition 2016-11-24 15:43:12 +00:00
wmifinfo wmifinfo: Bump to version 0.10. 2014-12-09 11:17:56 +00:00
wmifs wmifs: Bump to version 1.8. 2016-04-20 01:01:26 -04:00
wmitime wmitime: Bump to version 0.5. 2015-08-21 08:23:15 +01:00
wmix Allow sound api to be specified in the config file 2015-09-17 03:23:07 +01:00
wmkeys wmkeys uses libdockapp 2015-08-16 09:41:07 +01:00
wmload wmload: Bump to version 0.9.7. 2015-08-24 07:17:16 +01:00
wmMatrix Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmmemload wmmemload: Bump to version 0.1.8. 2015-04-07 08:52:22 +01:00
wmmenu wmmenu: Update header file location. 2015-10-21 09:07:01 -04:00
wmmixer Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmmixer-alsa wmmixer-alsa: Add to repository. 2014-08-06 13:23:10 -06:00
wmmon wmmon uses libdockapp 2015-08-15 09:52:19 +01:00
wmmoonclock Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmmp3 wmmp3: Add version 0.12 to repository. 2016-08-09 14:44:15 +01:00
wmnet wmnet: increase polling delay to 0.1 sec and maxrate to 120kb 2015-01-11 21:31:40 +00:00
wmnotify Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmpager Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmpower Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmppp.app wmppp.app: Bump to version 1.3.2. 2015-08-25 15:38:30 +01:00
wmshutdown wmshutdown: Bump to version 1.4. 2015-06-13 06:02:21 -06:00
wmsm.app wmsm uses libdockapp 2015-08-16 09:41:07 +01:00
wmsmixer Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmSMPmon wmSMPmon uses libdockapp 2015-08-16 09:41:07 +01:00
wmsun wmsun: Bump to version 1.05. 2015-08-25 15:39:34 +01:00
wmsupermon Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmtime wmtime: Bump to version 1.4. 2015-08-24 07:19:12 +01:00
wmtop wmtop: Bump to version 0.85. 2016-02-08 19:17:21 +05:30
wmtv wmtv: Remove define of VERSION in favor of version defined by autoconf. 2016-02-01 15:26:00 +05:30
wmtz wmtz uses libdockapp 2015-08-16 09:41:07 +01:00
wmWeather Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmwifi Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmwlmon Remove trailing whitespace. 2014-10-05 19:18:49 +01:00