The Samba-Bugzilla – Attachment 12630 Details for
Bug 12407
Scripts in /etc/ctdb do not calculate CTDB_BASE correctly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patches for v4-5
BZ12407-v4-5.patch (text/plain), 2.46 KB, created by
Amitay Isaacs
on 2016-11-03 13:35:49 UTC
(
hide
)
Description:
Patches for v4-5
Filename:
MIME Type:
Creator:
Amitay Isaacs
Created:
2016-11-03 13:35:49 UTC
Size:
2.46 KB
patch
obsolete
>From 5fd433e9d1a94c97542122227b293d531bf1b67e Mon Sep 17 00:00:00 2001 >From: Amitay Isaacs <amitay@gmail.com> >Date: Thu, 3 Nov 2016 16:03:24 +1100 >Subject: [PATCH] ctdb-scripts: Fix calculation of CTDB_BASE > >This is a regression introduced in f227c26178c2eaf3fae49f32a90ec905f85005f4. > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=12407 > >Signed-off-by: Amitay Isaacs <amitay@gmail.com> >Reviewed-by: Martin Schwenke <martin@meltin.net> > >Autobuild-User(master): Martin Schwenke <martins@samba.org> >Autobuild-Date(master): Thu Nov 3 10:10:31 CET 2016 on sn-devel-144 > >(cherry picked from commit 9c6f0dc69bd9eb2ca2bc1ca18c81762791958f88) >--- > ctdb/config/ctdb-crash-cleanup.sh | 2 +- > ctdb/config/debug-hung-script.sh | 2 +- > ctdb/config/debug_locks.sh | 2 +- > ctdb/config/statd-callout | 2 +- > 4 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/ctdb/config/ctdb-crash-cleanup.sh b/ctdb/config/ctdb-crash-cleanup.sh >index bcecbfe..22b0ce8 100755 >--- a/ctdb/config/ctdb-crash-cleanup.sh >+++ b/ctdb/config/ctdb-crash-cleanup.sh >@@ -5,7 +5,7 @@ > # > > [ -n "$CTDB_BASE" ] || \ >- CTDB_BASE=$(d=$(dirname "$0") ; cd -P "$d" ; dirname "$PWD") >+ CTDB_BASE=$(d=$(dirname "$0") ; cd -P "$d" ; echo "$PWD") > > . "${CTDB_BASE}/functions" > >diff --git a/ctdb/config/debug-hung-script.sh b/ctdb/config/debug-hung-script.sh >index cdf1657..da988c2 100755 >--- a/ctdb/config/debug-hung-script.sh >+++ b/ctdb/config/debug-hung-script.sh >@@ -4,7 +4,7 @@ > # for other operating systems. > > [ -n "$CTDB_BASE" ] || \ >- CTDB_BASE=$(d=$(dirname "$0") ; cd -P "$d" ; dirname "$PWD") >+ CTDB_BASE=$(d=$(dirname "$0") ; cd -P "$d" ; echo "$PWD") > > . "${CTDB_BASE}/functions" > >diff --git a/ctdb/config/debug_locks.sh b/ctdb/config/debug_locks.sh >index 8c9b466..f678724 100755 >--- a/ctdb/config/debug_locks.sh >+++ b/ctdb/config/debug_locks.sh >@@ -8,7 +8,7 @@ > # rather than mutex locks. > > [ -n "$CTDB_BASE" ] || \ >- CTDB_BASE=$(d=$(dirname "$0") ; cd -P "$d" ; dirname "$PWD") >+ CTDB_BASE=$(d=$(dirname "$0") ; cd -P "$d" ; echo "$PWD") > > . "${CTDB_BASE}/functions" > >diff --git a/ctdb/config/statd-callout b/ctdb/config/statd-callout >index 4ac354e..3f2dd39 100755 >--- a/ctdb/config/statd-callout >+++ b/ctdb/config/statd-callout >@@ -9,7 +9,7 @@ > # STATD_HOSTNAME="myhostname -H /etc/ctdb/statd-callout" > > [ -n "$CTDB_BASE" ] || \ >- CTDB_BASE=$(d=$(dirname "$0") ; cd -P "$d" ; dirname "$PWD") >+ CTDB_BASE=$(d=$(dirname "$0") ; cd -P "$d" ; echo "$PWD") > > . "${CTDB_BASE}/functions" > >-- >2.7.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
martins
:
review+
Actions:
View
Attachments on
bug 12407
: 12630