diff options
author | Simo Sorce <idra@samba.org> | 2004-05-14 12:42:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:51:35 -0500 |
commit | c32c36d96f3a7863ab8514456e8a0eb9e4839264 (patch) | |
tree | dfc31bfe53dea0b3460f8c5f823d8d9ed65c13ec /packaging/Debian/debian-unstable/patches/smbstatus-locking.patch | |
parent | 400bed7a68ccdeeb8c50326e817788e01b155907 (diff) | |
download | samba-c32c36d96f3a7863ab8514456e8a0eb9e4839264.tar.gz samba-c32c36d96f3a7863ab8514456e8a0eb9e4839264.tar.bz2 samba-c32c36d96f3a7863ab8514456e8a0eb9e4839264.zip |
r730: move the current debian dir to debian-unstable
(This used to be commit 65022f1dde7012a8c8c1872ad87184531973b5c5)
Diffstat (limited to 'packaging/Debian/debian-unstable/patches/smbstatus-locking.patch')
-rw-r--r-- | packaging/Debian/debian-unstable/patches/smbstatus-locking.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/packaging/Debian/debian-unstable/patches/smbstatus-locking.patch b/packaging/Debian/debian-unstable/patches/smbstatus-locking.patch new file mode 100644 index 0000000000..50072c5c26 --- /dev/null +++ b/packaging/Debian/debian-unstable/patches/smbstatus-locking.patch @@ -0,0 +1,20 @@ +diff -uNr samba-2.999+3.0.alpha21.orig/source/utils/status.c samba-2.999+3.0.alpha21/source/utils/status.c +--- samba-2.999+3.0.alpha21.orig/source/utils/status.c 2002-11-26 20:54:22.000000000 -0600 ++++ samba-2.999+3.0.alpha21/source/utils/status.c 2002-12-16 23:37:14.000000000 -0600 +@@ -667,6 +667,16 @@ + if (!shares_only) { + int ret; + ++ tdb = tdb_open_log(lock_path("locking.tdb"), 0, TDB_DEFAULT, O_RDONLY, 0); ++ ++ if (!tdb) { ++ d_printf("%s not initialised\n", lock_path("locking.tdb")); ++ d_printf("This is normal if an SMB client has never connected to your server.\n"); ++ exit(0); ++ } else { ++ tdb_close(tdb); ++ } ++ + if (!locking_init(1)) { + d_printf("Can't initialise locking module - exiting\n"); + exit(1); |