Skip to contentSkip to conversation

bug : sm-notify path is hardcoded into statd

DISCUSSION Gabriel Barazer 2 participants 2 messages Jul 23, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

Just found another which happens when nfs utilities are not installed in /usr/sbin (e.g. because it's installed in /sbin for a diskless setup), statd can't properly call sm-notify because the path to sm-notify is hardcoded at utils/statd/statd.c:226 (nfs-utils-1.1.0). To preserve consistency with configure switch, we must instead replace it with the sbindir variable. (I can't reliably do a patch because I don't know enough how to deal with the autotools).

Thanks,

Gabriel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#1 lore raw
Quoted 7 lines · Gabriel Barazer

Just found another which happens when nfs utilities are not installed in /usr/sbin (e.g. because it's installed in /sbin for a diskless setup), statd can't properly call sm-notify because the path to sm-notify is hardcoded at utils/statd/statd.c:226 (nfs-utils-1.1.0). To preserve consistency with configure switch, we must instead replace it with the sbindir variable. (I can't reliably do a patch because I don't know enough how to deal with the autotools).

FWIW, in Debian we simply change it to /sbin. A proper patch upstream would probably be preferable, though -- smaller delta from upstream to distributions is always good.

/* Steinar */

Signature · 10 lines
Homepage: http://www.sesse.net/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs