Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111986261
D17243.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
4 KB
Referenced Files
None
Subscribers
None
D17243.diff
View Options
Index: head/etc/Makefile
===================================================================
--- head/etc/Makefile
+++ head/etc/Makefile
@@ -70,7 +70,7 @@
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
${BIN1} ${DESTDIR}/etc; \
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
- master.passwd nsmb.conf ${DESTDIR}/etc;
+ master.passwd ${DESTDIR}/etc;
.if ${MK_TCSH} == "no"
sed -i "" -e 's;/bin/csh;/bin/sh;' ${DESTDIR}/etc/master.passwd
@@ -206,7 +206,7 @@
etc-examples: ${META_DEPS}
cd ${.CURDIR}; ${INSTALL} ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 \
- ${BIN1} ${BIN2} nsmb.conf \
+ ${BIN1} ${BIN2} \
${DESTDIR}${SHAREDIR}/examples/etc
.include <bsd.prog.mk>
Index: head/etc/nsmb.conf
===================================================================
--- head/etc/nsmb.conf
+++ head/etc/nsmb.conf
@@ -1,56 +0,0 @@
-# $FreeBSD$
-#
-# smbfs lookups configuration files in next order:
-# 1. ~/.nsmbrc
-# 2. /etc/nsmb.conf - if this file found it will
-# override values with same keys from user files.
-#
-#
-# This file consist from a set of sections. Each section started by section name
-# surrounded with square brackets:
-# [section_name]
-#
-# End of the section marked either by new section or by the end of file.
-# Each section can contain zero or more parameters:
-# [section_name]
-# key=value
-#
-# where 'key' represents parameter name and 'value' a value assigned
-# to this parameter.
-#
-# SMB library uses next forms of section names (please note that the section
-# name should be in upper case when it refers to server, user or share):
-# A) [default]
-# B) [SERVER]
-# C) [SERVER:USER]
-# D) [SERVER:USER:SHARE]
-#
-# Here is the map of possible keywords:
-#
-# keyword/section A B C D Comment
-#
-# addr - + - - IP address of SMB server
-# charsets + + + + local:remote charset pair
-# nbns + + - - address of NetBIOS name server (WINS)
-# nbscope + + - - NetBIOS scope
-# nbtimeout + + - - timeout for NetBIOS name servers
-# password - - + + a plain text password used to access to the given share
-# retry_count + + - - number of retries before connection marked as broken
-# timeout + + - - SMB request timeout
-# workgroup + + + + name of workgroup
-#
-
-# A simple configuration example:
-
-# First, define a workgroup.
-#[default]
-#workgroup=SALES
-
-# The 'FSERVER' is an NT server.
-#[FSERVER]
-#charsets=koi8-r:cp866
-#addr=fserv.coolcorp.com
-
-#[FSERVER:JOE]
-# use persistent password cache for user 'joe'
-#password=$$1767877DF
Index: head/lib/libsmb/Makefile
===================================================================
--- head/lib/libsmb/Makefile
+++ head/lib/libsmb/Makefile
@@ -2,6 +2,8 @@
.include <src.opts.mk>
+CONFS= nsmb.conf
+CONFSMODE= 600
PACKAGE=lib${LIB}
CONTRIBDIR= ${SRCTOP}/contrib/smbfs
.PATH: ${CONTRIBDIR}/lib/smb
Index: head/lib/libsmb/nsmb.conf
===================================================================
--- head/lib/libsmb/nsmb.conf
+++ head/lib/libsmb/nsmb.conf
@@ -0,0 +1,56 @@
+# $FreeBSD$
+#
+# smbfs lookups configuration files in next order:
+# 1. ~/.nsmbrc
+# 2. /etc/nsmb.conf - if this file found it will
+# override values with same keys from user files.
+#
+#
+# This file consist from a set of sections. Each section started by section name
+# surrounded with square brackets:
+# [section_name]
+#
+# End of the section marked either by new section or by the end of file.
+# Each section can contain zero or more parameters:
+# [section_name]
+# key=value
+#
+# where 'key' represents parameter name and 'value' a value assigned
+# to this parameter.
+#
+# SMB library uses next forms of section names (please note that the section
+# name should be in upper case when it refers to server, user or share):
+# A) [default]
+# B) [SERVER]
+# C) [SERVER:USER]
+# D) [SERVER:USER:SHARE]
+#
+# Here is the map of possible keywords:
+#
+# keyword/section A B C D Comment
+#
+# addr - + - - IP address of SMB server
+# charsets + + + + local:remote charset pair
+# nbns + + - - address of NetBIOS name server (WINS)
+# nbscope + + - - NetBIOS scope
+# nbtimeout + + - - timeout for NetBIOS name servers
+# password - - + + a plain text password used to access to the given share
+# retry_count + + - - number of retries before connection marked as broken
+# timeout + + - - SMB request timeout
+# workgroup + + + + name of workgroup
+#
+
+# A simple configuration example:
+
+# First, define a workgroup.
+#[default]
+#workgroup=SALES
+
+# The 'FSERVER' is an NT server.
+#[FSERVER]
+#charsets=koi8-r:cp866
+#addr=fserv.coolcorp.com
+
+#[FSERVER:JOE]
+# use persistent password cache for user 'joe'
+#password=$$1767877DF
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 12, 5:13 AM (6 m, 51 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17113469
Default Alt Text
D17243.diff (4 KB)
Attached To
Mode
D17243: Move nsmb.conf to lib/libsmb/
Attached
Detach File
Event Timeline
Log In to Comment