Bug 7313 - Net conf addshare is not atomic
Net conf addshare is not atomic
Product: Samba 3.5
Classification: Unclassified
Component: Client Tools
Other Linux
: P3 normal
: ---
Assigned To: Karolin Seeger
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2010-03-31 10:24 UTC by Michael Adam
Modified: 2010-03-31 11:03 UTC (History)
0 users

See Also:

Fix from master. (2.60 KB, patch)
2010-03-31 10:26 UTC, Michael Adam
vl: review+

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Adam 2010-03-31 10:24:10 UTC
When net conf addshare is interrupted, it can leave an incomplete share definition in the registry.
Comment 1 Michael Adam 2010-03-31 10:25:22 UTC
reason is that net conf addshare is not protected by a transaction.
Comment 2 Michael Adam 2010-03-31 10:26:23 UTC
Created attachment 5582 [details]
Fix from master.

This fixes the bug by adding a transaction around net conf addshare.
Comment 3 Karolin Seeger 2010-03-31 11:03:56 UTC
Pushed to v3-5-test.
Closing out bug report.