2002-11-29 15:59:47 -05:00
|
|
|
$OpenBSD: patch-rmt_rmt_c,v 1.3 2002/11/29 20:59:47 naddy Exp $
|
|
|
|
--- rmt/rmt.c.orig Sun Nov 24 13:35:47 2002
|
|
|
|
+++ rmt/rmt.c Fri Nov 29 21:28:59 2002
|
|
|
|
@@ -146,9 +146,9 @@ main(argc, argv)
|
2002-05-30 19:27:48 -04:00
|
|
|
* don't contribute work and don't give support, they are causing extra
|
|
|
|
* work for me and this way slow down the development.
|
2001-05-06 17:52:45 -04:00
|
|
|
*/
|
|
|
|
- if (defltopen("/etc/default/rmt") < 0) {
|
|
|
|
+ if (defltopen(SYSCONFDIR "/srmt.conf") < 0) {
|
|
|
|
if (geteuid() == 0) {
|
|
|
|
- rmterror("Remote configuration error: Cannot open /etc/default/rmt");
|
|
|
|
+ rmterror("Remote configuration error: Cannot open " SYSCONFDIR "/srmt.conf");
|
|
|
|
exit(EX_BAD);
|
|
|
|
}
|
|
|
|
} else {
|