[PATCH] make path to eject flexible

David Zeuthen david at fubar.dk
Mon Mar 26 13:27:32 PDT 2007


On Mon, 2007-03-26 at 21:54 +0200, Danny Kukawka wrote:
> Hi,
> 
> could we change the handling of the eject call in tools/hal-storage-shared.c 
> to let g_spawn_sync() find the correct path? The reason is SUSE has eject 
> since ages in /bin/eject and not /usr/bin/eject (Maybe for the academic 
> reason that /usr can be unavailable). 
> 
> I hope the attached patch work also on other distributions than SUSE.

No can do. In Fedora, I actually patch the file to use /usr/sbin/eject
to avoid SELinux issues because /usr/bin/eject is a symlink to
consolehelper. A patch that provides a configure option (that defaults
to /usr/bin/eject) would be OK though. Thanks.

     David




More information about the hal mailing list