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: [email protected]
Reporter: [email protected]
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-doc
To unsubscribe, send any mail to "[email protected]"