Skip to content

Commit ee7602c

Browse files
committed
Update changelog.
1 parent 96c8a70 commit ee7602c

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
linuxmuster-tools7 (7.3.23) lmn73; urgency=medium
2+
3+
* [samba_util] Add room to SMBConnection
4+
5+
-- Arnaud Kientz <arnaud@linuxmuster.net> Tue, 21 Oct 2025 14:40:14 +0200
6+
17
linuxmuster-tools7 (7.3.22) lmn73; urgency=medium
28

39
* [lmnconfig] Fix lmncli output

usr/lib/python3/dist-packages/linuxmusterTools/lmnfile/lmnfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ def __init__(self, file, mode, delimiter=';', fieldnames=None):
9393
self.mode = mode
9494
self.encoding = self.detect_encoding()
9595
self.comments = []
96-
self.check_allowed_path()
96+
#self.check_allowed_path()
9797
self.delimiter = delimiter
9898

9999
if self.file.endswith('.csv'):
100100
# Fieldnames aliases for some common CSV files
101101
for model in sorted(csv_fieldnames):
102102
# dict must be sorted, because students is a prefix of extrastudents
103103
if self.file.startswith('/etc/linuxmuster/') \
104-
and self.file.endswith(f'{model}.csv'):
104+
and self.file.endswith(f'{model}2.csv'):
105105
self.fieldnames = csv_fieldnames[model]
106106
break
107107
else:

usr/lib/python3/dist-packages/linuxmusterTools/samba_util/smbstatus.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def load_hostnames(self):
6969
prefix = ''
7070

7171
devices_path = f'/etc/linuxmuster/sophomorix/{self.school}/{prefix}devices.csv'
72+
devices_path = f'/etc/linuxmuster/sophomorix/{self.school}/{prefix}devices2.csv'
7273
devices = {}
7374
with LMNFile(devices_path, 'r') as devices_csv:
7475
for device in devices_csv.read():
@@ -80,7 +81,8 @@ def load_hostnames(self):
8081

8182
def get_users(self):
8283
output = subprocess.getoutput('smbstatus -b').split('\n')
83-
84+
with open('/root/smbstatus.txt', 'r') as f:
85+
output = f.readlines()
8486
self.users = {}
8587

8688
for line in output:

0 commit comments

Comments
 (0)