1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-samba-1.14.0/root/var/service/smbd/run mezzanine_patched_e-smith-samba-1.14.0/root/var/service/smbd/run |
2 |
--- e-smith-samba-1.14.0/root/var/service/smbd/run 2007-01-04 13:15:31.000000000 -0700 |
3 |
+++ mezzanine_patched_e-smith-samba-1.14.0/root/var/service/smbd/run 2007-01-04 13:14:52.000000000 -0700 |
4 |
@@ -32,5 +32,18 @@ |
5 |
# Delete the printing.tdb file if it exists to force it to rebuild. |
6 |
rm -f /var/cache/samba/printing.tdb |
7 |
|
8 |
+# Backup critical tdb files |
9 |
+for tdb in /etc/samba/secrets \ |
10 |
+ /var/cache/samba/account_policy \ |
11 |
+ /var/cache/samba/group_mapping \ |
12 |
+ /var/cache/samba/ntdrivers \ |
13 |
+ /var/cache/samba/ntforms \ |
14 |
+ /var/cache/samba/ntprinters \ |
15 |
+ /var/cache/samba/registry \ |
16 |
+ /var/cache/samba/share_info |
17 |
+do |
18 |
+ [ -r "$tdb.tdb" ] && tdbbackup "$tdb.tdb" .bak |
19 |
+done |
20 |
+ |
21 |
exec 2>&1 |
22 |
exec $smbd -F |