diff options
author | Eloy Paris <peloy@samba.org> | 2003-06-01 04:30:13 +0000 |
---|---|---|
committer | Eloy Paris <peloy@samba.org> | 2003-06-01 04:30:13 +0000 |
commit | 72cc0c82c415c872e270d924c795d6ac907a32fb (patch) | |
tree | dd0b7cb81c75fe123179988c264e445383eb25ed /packaging/Debian/debian/patches/smbstatus-locking.patch | |
parent | dbd4a83c7ffbf7043e085c5382f55cf336daf27e (diff) | |
download | samba-72cc0c82c415c872e270d924c795d6ac907a32fb.tar.gz samba-72cc0c82c415c872e270d924c795d6ac907a32fb.tar.bz2 samba-72cc0c82c415c872e270d924c795d6ac907a32fb.zip |
Bringing packaging/Debian/ up to date with the current Samba package
in Debian unstable. The stuff here was ages old...
(This used to be commit 5646df8bfb327d74f9c07fc219023a5aecdbc70d)
Diffstat (limited to 'packaging/Debian/debian/patches/smbstatus-locking.patch')
-rw-r--r-- | packaging/Debian/debian/patches/smbstatus-locking.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/packaging/Debian/debian/patches/smbstatus-locking.patch b/packaging/Debian/debian/patches/smbstatus-locking.patch new file mode 100644 index 0000000000..fe720c8187 --- /dev/null +++ b/packaging/Debian/debian/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 +@@ -635,6 +635,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); |