Bug 44695 - sysvol-sync.sh stops working if homedir for Samba/AD DCs is not /dev/null (4.1)
sysvol-sync.sh stops working if homedir for Samba/AD DCs is not /dev/null (4.1)
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 4.1
Other Linux
: P5 normal (vote)
: ---
Assigned To: Stefan Gohmann
Arvid Requate
:
Depends on: 44694
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-24 18:33 CEST by Arvid Requate
Modified: 2018-11-27 09:54 CET (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.143
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2017052321000387
Bug group (optional):
Max CVSS v3 score:
requate: Patch_Available+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2017-05-24 18:33:18 CEST
We should also fix this in UCS 4.1-4

+++ This bug was initially created as a clone of Bug #44694 +++

sysvol-sync.sh stops working if homedir for Samba/AD DCs in not /dev/null.
In that case it never synchronizes anything from that DC.

The sed expression used in the check_if_need_sync function suffers from a sed feature called "Relentness" here: http://sed.sourceforge.net/sedfaq3.html#s3.3

It's surprisingly difficult to create a sed expression for this use case.
The attached patch avoids sed at this point.
Comment 1 Stefan Gohmann univentionstaff 2018-11-27 09:54:13 CET
UCS 4.1 is out of maintenance.