Bug 51634 - univention.lib.fstab ignores every entry containing # (e.g. in the comments)
Summary: univention.lib.fstab ignores every entry containing # (e.g. in the comments)
Status: RESOLVED DUPLICATE of bug 27825
Alias: None
Product: UCS
Classification: Unclassified
Component: univention-lib
Version: UCS 5.0
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: UCS maintainers
QA Contact: UCS maintainers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-07 11:01 CEST by Florian Best
Modified: 2020-10-05 13:12 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2020-07-07 11:01:32 CEST
Every entry containing a # is ignored by univention.lib.fstab:
e.g.:
192.168.0.81:/home      /home   nfs     defaults,timeo=21,retrans=9,wsize=8192,rsize=8192,nfsvers=3     1       2       # LDAP
Comment 1 Philipp Hahn univentionstaff 2020-10-05 13:12:42 CEST
Fixed with Bug #27825:

>>> import univention.lib.fstab
>>> f = univention.lib.fstab.File()
>>> f[-1]
univention.lib.fstab.Entry('192.168.0.81:/home', '/home', 'nfs', options='defaults,timeo=21,retrans=9,wsize=8192,rsize=8192,nfsvers=3', freq=1, passno=2, comment='# LDAP')

*** This bug has been marked as a duplicate of bug 27825 ***