Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Nov 2009 19:09:13 +0800 (CST)
From:      Denny Lin <dennylin93@cnmc32.hs.ntnu.edu.tw>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/140566: [PATCH] Change path of configuration file for net/nload
Message-ID:  <20091115110913.AF2B26FC450@mx.hs.ntnu.edu.tw>
Resent-Message-ID: <200911151110.nAFBA1Zq034549@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         140566
>Category:       ports
>Synopsis:       [PATCH] Change path of configuration file for net/nload
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 15 11:10:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Denny Lin
>Release:        FreeBSD 7.2-RELEASE-p4 amd64
>Organization:
>Environment:
System: FreeBSD cnmc32.hs.ntnu.edu.tw 7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #0: Mon Oct 26 19:41:45 CST 2009 root@cnmc32.hs.ntnu.edu.tw:/usr/obj/usr/src/sys/CNMC32 amd64


	
>Description:
I'm not really sure if these patches are useful, but I sent them anyway.

The default configuration file for net/nload is /etc/nload.conf, but this is a Linuxism. I modified the path to /usr/local/etc/nload.conf in the source and man page. This keeps it consistent with ports.
	
>How-To-Repeat:
	
>Fix:

	

--- patch-docs-nload.1.in begins here ---
--- docs/nload.1.in.orig	2009-11-15 18:56:47.000000000 +0800
+++ docs/nload.1.in	2009-11-15 18:57:12.000000000 +0800
@@ -164,7 +164,7 @@
 .SH FILES
 
 .TP
-.I /etc/nload.conf
+.I /usr/local/etc/nload.conf
 System-wide configuration file.
 
 .TP
--- patch-docs-nload.1.in ends here ---

--- patch-src-main.cpp begins here ---
--- src/main.cpp.orig	2009-11-15 18:56:58.000000000 +0800
+++ src/main.cpp	2009-11-15 18:57:42.000000000 +0800
@@ -413,7 +413,7 @@
                             SettingStore::writeToFile(homeDir + "/.nload");
                             break;
                         case KEY_F(6):
-                            SettingStore::readFromFile("/etc/nload.conf");
+                            SettingStore::readFromFile("/usr/local/etc/nload.conf");
                             SettingStore::readFromFile(homeDir + "/.nload");
                             break;
                         case 'q':
--- patch-src-main.cpp ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091115110913.AF2B26FC450>