[Bug 210652] Fix path for per-user nsmb.conf file in nsmb.conf(5)
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Jun 28 08:18:07 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210652
Bug ID: 210652
Summary: Fix path for per-user nsmb.conf file in nsmb.conf(5)
Product: Documentation
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Documentation
Assignee: freebsd-doc at FreeBSD.org
Reporter: ganael.laplanche at corp.ovh.com
Created attachment 171903
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=171903&action=edit
Patch for nsmb.conf(5)
Hi,
r214387 introduced a wrong path for per-user nsmb.conf file. See
contrib/smbfs/lib/smb/subr.c :
164- home = getenv("HOME");
165- if (home) {
166- fn = malloc(strlen(home) + 20);
167: sprintf(fn, "%s/.nsmbrc", home);
168- error = rc_open(fn, "r", &smb_rc);
169- free(fn);
170- }
171- error = rc_merge(SMB_CFG_FILE, &smb_rc);
The file read is in fact ~/.nsmbrc, as also specified in mount_smbfs(8) :
91-FILES
92: ~/.nsmbrc Keeps static parameters for connections and other
information.
and /etc/nsmb.conf :
3-# smbfs lookups configuration files in next order:
4:# 1. ~/.nsmbrc
5-# 2. /etc/nsmb.conf - if this file found it will
6-# override values with same keys from user files.
Find attached a patch that fixes the path to that file in nsmb.conf(5).
Best regards,
Ganael.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-doc
mailing list