Bug 637767 - cntlm looks for nonexisting default config file
Summary: cntlm looks for nonexisting default config file
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: cntlm
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Matt Domsch
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-27 10:56 UTC by Michal Ambroz
Modified: 2010-09-27 16:22 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-09-27 14:20:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michal Ambroz 2010-09-27 10:56:48 UTC
Description of problem:
Hello, 
cntlm looks for non-existing default config file /usr/local/etc/cntlm.conf when issued from commandline and not as service.
Instead it should be looking for /etc/cntlm.conf

Version-Release number of selected component (if applicable):
cntlm-0.35.1-4.fc13.i686

How reproducible:
100%


Steps to Reproduce:
1. strace cntlm -I -v 2>&1 |grep open
  
Actual results:
open("/usr/local/etc/cntlm.conf", O_RDONLY) = -1 ENOENT (No such file or directory)


Expected results:
open("/etc/cntlm.conf", O_RDONLY) = 3

Additional info:

Comment 1 Matt Domsch 2010-09-27 14:13:11 UTC
The following is now pushed to the master branch of cntlm in Fedora, but not built anywhere.  This resolves it.  You can of course pass -c /etc/cntlm.conf to have it look in the "right" place, which is what the initscript does.  For this reason, I'm going to hold off pushing any update to all branches.  I will build it for rawhide though.

commit f3d22f43b0b83df575527b4dbbef1d7038b38707
Author: Matt Domsch <Matt_Domsch>
Date:   Mon Sep 27 09:09:46 2010 -0500

    set SYSCONFDIR during build.  Fixes https://bugzilla.redhat.com/show_bug.cgi?id=637767

diff --git a/cntlm.spec b/cntlm.spec
index 2a44cb1..9414d0d 100644
--- a/cntlm.spec
+++ b/cntlm.spec
@@ -31,7 +31,7 @@ contains detailed information.

 %build
 %configure
-make %{?_smp_mflags}
+make %{?_smp_mflags} SYSCONFDIR=%{_sysconfdir}

 %install
 rm -rf %{buildroot}

Comment 2 Matt Domsch 2010-09-27 14:20:10 UTC
Built in koji for rawhide (F15).
http://koji.fedoraproject.org/koji/taskinfo?taskID=2491651

Closing.

Comment 3 Michal Ambroz 2010-09-27 16:22:57 UTC
Thanks anyway. I hope it will get to updates with some further change.


Note You need to log in before you can comment on or make changes to this bug.