|
@@ -55,10 +55,10 @@ func (m *ShareManager) injectTdbsamToSmbConfig() error {
|
|
|
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) {
|
|
|
// 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 {
|
|
|
return false, fmt.Errorf("failed to open smb.conf: %v", err)
|
|
|
}
|