浏览代码

Added tdbsam switch

aroz 1 年之前
父节点
当前提交
f963341b25
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      mod/fileservers/servers/samba/smbuser.go

+ 2 - 2
mod/fileservers/servers/samba/smbuser.go

@@ -55,10 +55,10 @@ func (m *ShareManager) injectTdbsamToSmbConfig() error {
 	return nil
 	return nil
 }
 }
 
 
-//TdbsamInUse checks if the current smb runtime already using Tdbsam as backend
+// TdbsamInUse checks if the current smb runtime already using Tdbsam as backend
 func (m *ShareManager) TdbsamInUse() (bool, error) {
 func (m *ShareManager) TdbsamInUse() (bool, error) {
 	// Open the smb.conf file for reading
 	// Open the smb.conf file for reading
-	file, err := os.OpenFile(s.SambaConfigPath, os.O_RDWR|os.O_APPEND, 0644)
+	file, err := os.OpenFile(m.SambaConfigPath, os.O_RDWR|os.O_APPEND, 0644)
 	if err != nil {
 	if err != nil {
 		return false, fmt.Errorf("failed to open smb.conf: %v", err)
 		return false, fmt.Errorf("failed to open smb.conf: %v", err)
 	}
 	}