summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/Makefile.in2
-rwxr-xr-xsource3/script/installman.sh2
-rw-r--r--source3/smbd/oplock.c3
3 files changed, 3 insertions, 4 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in
index 05238b868d..73931ef651 100644
--- a/source3/Makefile.in
+++ b/source3/Makefile.in
@@ -440,7 +440,7 @@ revert:
@$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(PROGS) $(SCRIPTS)
installman:
- @$(SHELL) $(srcdir)/script/installman.sh $(MANDIR) $(srcdir) @ROFF@
+ @$(SHELL) $(srcdir)/script/installman.sh $(MANDIR) $(srcdir) "@ROFF@"
uninstall: uninstallman uninstallbin uninstallscripts uninstallcp
diff --git a/source3/script/installman.sh b/source3/script/installman.sh
index 12e49fcda3..b3422e5b3d 100755
--- a/source3/script/installman.sh
+++ b/source3/script/installman.sh
@@ -29,7 +29,7 @@ for sect in 1 5 7 8 ; do
if (rm -f $FNAME && touch $FNAME); then
rm $FNAME
- if [ ! "$GROFF" ] ; then
+ if [ x$GROFF = x ] ; then
cp $s $m # Copy raw nroff
else
echo "\t$FNAME" # groff'ing can be slow, give the user
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index e0e1658a78..19a3afa998 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -1048,8 +1048,7 @@ void check_kernel_oplocks(void)
set_process_capability(KERNEL_OPLOCK_CAPABILITY,True);
set_inherited_process_capability(KERNEL_OPLOCK_CAPABILITY,True);
- slprintf( tmpname, sizeof(tmpname)-1, "/tmp/ot.%d.XXXXXX", (unsigned int)getpid());
- mktemp(tmpname);
+ slprintf(tmpname,sizeof(tmpname)-1, "%/koplock.%d", lp_lockdir(), (int)getpid());
if(pipe(pfd) != 0) {
DEBUG(0,("check_kernel_oplocks: Unable to create pipe. Error was %s\n",