[Patches] some minor onces...

Stefan Metzmacher metze at samba.org
Wed Jan 11 12:46:13 UTC 2017


Hi,

here're some minor cleanups...

Please review and push:-)

Thanks!
metze
-------------- next part --------------
From bedd72c82f477e6a8d2309df81c681ad0d106094 Mon Sep 17 00:00:00 2001
From: Stefan Metzmacher <metze at samba.org>
Date: Tue, 10 Jan 2017 15:08:48 +0100
Subject: [PATCH 1/3] nsswitch: remove unused TALLOC_* defines in pam_winbind.h

Signed-off-by: Stefan Metzmacher <metze at samba.org>
---
 nsswitch/pam_winbind.h | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/nsswitch/pam_winbind.h b/nsswitch/pam_winbind.h
index 6b65c46..d468efb 100644
--- a/nsswitch/pam_winbind.h
+++ b/nsswitch/pam_winbind.h
@@ -216,10 +216,4 @@ struct pwb_context {
 	struct wbcContext *wbc_ctx;
 };
 
-#ifndef TALLOC_FREE
-#define TALLOC_FREE(ctx) do { talloc_free(ctx); ctx=NULL; } while(0)
-#endif
-#define TALLOC_ZERO_P(ctx, type) (type *)_talloc_zero(ctx, sizeof(type), #type)
-#define TALLOC_P(ctx, type) (type *)talloc_named_const(ctx, sizeof(type), #type)
-
 #endif /* _NSSWITCH_PAM_WINBIND_H_ */
-- 
1.9.1


From 1c8403ca674a43759b80bc322d36fd51d803f876 Mon Sep 17 00:00:00 2001
From: Stefan Metzmacher <metze at samba.org>
Date: Tue, 10 Jan 2017 13:07:33 +0100
Subject: [PATCH 2/3] lib/tevent: remove unused release-script.sh

Signed-off-by: Stefan Metzmacher <metze at samba.org>
---
 lib/tevent/release-script.sh | 48 --------------------------------------------
 1 file changed, 48 deletions(-)
 delete mode 100755 lib/tevent/release-script.sh

diff --git a/lib/tevent/release-script.sh b/lib/tevent/release-script.sh
deleted file mode 100755
index 077f562..0000000
--- a/lib/tevent/release-script.sh
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/bash
-
-if [ "$1" = "" ]; then
-    echo "Please provide version string, eg: 1.2.0"
-    exit 1
-fi
-
-if [ ! -d "lib/tevent" ]; then
-    echo "Run this script from the samba base directory."
-    exit 1
-fi
-
-git clean -f -x -d lib/tevent
-git clean -f -x -d lib/replace
-
-curbranch=`git-branch |grep "^*" | tr -d "* "`
-
-version=$1
-strver=`echo ${version} | tr "." "-"`
-
-# Checkout the release tag
-git branch -f tevent-release-script-${strver} tevent-${strver}
-if [ ! "$?" = "0" ];  then
-    echo "Unable to checkout tevent-${strver} release"
-    exit 1
-fi
-
-git checkout tevent-release-script-${strver}
-
-# Test configure agrees with us
-confver=`grep "^AC_INIT" lib/tevent/configure.ac | tr -d "AC_INIT(tevent, " | tr -d ")"`
-if [ ! "$confver" = "$version" ]; then
-    echo "Wrong version, requested release for ${version}, found ${confver}"
-    exit 1
-fi
-
-# Now build tarball
-cp -a lib/tevent tevent-${version}
-cp -a lib/replace tevent-${version}/libreplace
-pushd tevent-${version}
-./autogen.sh
-popd
-tar cvzf tevent-${version}.tar.gz tevent-${version}
-rm -fr tevent-${version}
-
-#Clean up
-git checkout $curbranch
-git branch -d tevent-release-script-${strver}
-- 
1.9.1


From 49a90f2c0005c5e1895282405f2efdfb8c4f1773 Mon Sep 17 00:00:00 2001
From: Stefan Metzmacher <metze at samba.org>
Date: Tue, 10 Jan 2017 12:43:54 +0100
Subject: [PATCH 3/3] wscript: remove executable bits for all wscript* files

These files should not be executable.

Signed-off-by: Stefan Metzmacher <metze at samba.org>
---
 auth/credentials/wscript_build                      | 0
 auth/gensec/wscript_build                           | 0
 auth/kerberos/wscript_build                         | 0
 buildtools/wafsamba/wscript                         | 0
 dynconfig/wscript                                   | 0
 lib/addns/wscript_build                             | 0
 lib/krb5_wrap/wscript_build                         | 0
 lib/ldb/wscript                                     | 0
 lib/tevent/wscript                                  | 0
 lib/util/wscript_build                              | 0
 libcli/auth/wscript_build                           | 0
 libcli/dns/wscript_build                            | 0
 libcli/nbt/wscript_build                            | 0
 libcli/smb/wscript                                  | 0
 source3/rpc_server/wscript_build                    | 0
 source3/wscript_build                               | 0
 source4/auth/gensec/wscript_build                   | 0
 source4/auth/kerberos/wscript_build                 | 0
 source4/dsdb/samdb/ldb_modules/wscript_build        | 0
 source4/dsdb/samdb/ldb_modules/wscript_build_server | 0
 source4/dsdb/wscript_build                          | 0
 source4/heimdal_build/wscript_configure             | 0
 source4/kdc/wscript_build                           | 0
 source4/libcli/wscript_build                        | 0
 source4/librpc/wscript_build                        | 0
 source4/rpc_server/wscript_build                    | 0
 source4/torture/wscript_build                       | 0
 27 files changed, 0 insertions(+), 0 deletions(-)
 mode change 100755 => 100644 auth/credentials/wscript_build
 mode change 100755 => 100644 auth/gensec/wscript_build
 mode change 100755 => 100644 auth/kerberos/wscript_build
 mode change 100755 => 100644 buildtools/wafsamba/wscript
 mode change 100755 => 100644 dynconfig/wscript
 mode change 100755 => 100644 lib/addns/wscript_build
 mode change 100755 => 100644 lib/krb5_wrap/wscript_build
 mode change 100755 => 100644 lib/ldb/wscript
 mode change 100755 => 100644 lib/tevent/wscript
 mode change 100755 => 100644 lib/util/wscript_build
 mode change 100755 => 100644 libcli/auth/wscript_build
 mode change 100755 => 100644 libcli/dns/wscript_build
 mode change 100755 => 100644 libcli/nbt/wscript_build
 mode change 100755 => 100644 libcli/smb/wscript
 mode change 100755 => 100644 source3/rpc_server/wscript_build
 mode change 100755 => 100644 source3/wscript_build
 mode change 100755 => 100644 source4/auth/gensec/wscript_build
 mode change 100755 => 100644 source4/auth/kerberos/wscript_build
 mode change 100755 => 100644 source4/dsdb/samdb/ldb_modules/wscript_build
 mode change 100755 => 100644 source4/dsdb/samdb/ldb_modules/wscript_build_server
 mode change 100755 => 100644 source4/dsdb/wscript_build
 mode change 100755 => 100644 source4/heimdal_build/wscript_configure
 mode change 100755 => 100644 source4/kdc/wscript_build
 mode change 100755 => 100644 source4/libcli/wscript_build
 mode change 100755 => 100644 source4/librpc/wscript_build
 mode change 100755 => 100644 source4/rpc_server/wscript_build
 mode change 100755 => 100644 source4/torture/wscript_build

diff --git a/auth/credentials/wscript_build b/auth/credentials/wscript_build
old mode 100755
new mode 100644
diff --git a/auth/gensec/wscript_build b/auth/gensec/wscript_build
old mode 100755
new mode 100644
diff --git a/auth/kerberos/wscript_build b/auth/kerberos/wscript_build
old mode 100755
new mode 100644
diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript
old mode 100755
new mode 100644
diff --git a/dynconfig/wscript b/dynconfig/wscript
old mode 100755
new mode 100644
diff --git a/lib/addns/wscript_build b/lib/addns/wscript_build
old mode 100755
new mode 100644
diff --git a/lib/krb5_wrap/wscript_build b/lib/krb5_wrap/wscript_build
old mode 100755
new mode 100644
diff --git a/lib/ldb/wscript b/lib/ldb/wscript
old mode 100755
new mode 100644
diff --git a/lib/tevent/wscript b/lib/tevent/wscript
old mode 100755
new mode 100644
diff --git a/lib/util/wscript_build b/lib/util/wscript_build
old mode 100755
new mode 100644
diff --git a/libcli/auth/wscript_build b/libcli/auth/wscript_build
old mode 100755
new mode 100644
diff --git a/libcli/dns/wscript_build b/libcli/dns/wscript_build
old mode 100755
new mode 100644
diff --git a/libcli/nbt/wscript_build b/libcli/nbt/wscript_build
old mode 100755
new mode 100644
diff --git a/libcli/smb/wscript b/libcli/smb/wscript
old mode 100755
new mode 100644
diff --git a/source3/rpc_server/wscript_build b/source3/rpc_server/wscript_build
old mode 100755
new mode 100644
diff --git a/source3/wscript_build b/source3/wscript_build
old mode 100755
new mode 100644
diff --git a/source4/auth/gensec/wscript_build b/source4/auth/gensec/wscript_build
old mode 100755
new mode 100644
diff --git a/source4/auth/kerberos/wscript_build b/source4/auth/kerberos/wscript_build
old mode 100755
new mode 100644
diff --git a/source4/dsdb/samdb/ldb_modules/wscript_build b/source4/dsdb/samdb/ldb_modules/wscript_build
old mode 100755
new mode 100644
diff --git a/source4/dsdb/samdb/ldb_modules/wscript_build_server b/source4/dsdb/samdb/ldb_modules/wscript_build_server
old mode 100755
new mode 100644
diff --git a/source4/dsdb/wscript_build b/source4/dsdb/wscript_build
old mode 100755
new mode 100644
diff --git a/source4/heimdal_build/wscript_configure b/source4/heimdal_build/wscript_configure
old mode 100755
new mode 100644
diff --git a/source4/kdc/wscript_build b/source4/kdc/wscript_build
old mode 100755
new mode 100644
diff --git a/source4/libcli/wscript_build b/source4/libcli/wscript_build
old mode 100755
new mode 100644
diff --git a/source4/librpc/wscript_build b/source4/librpc/wscript_build
old mode 100755
new mode 100644
diff --git a/source4/rpc_server/wscript_build b/source4/rpc_server/wscript_build
old mode 100755
new mode 100644
diff --git a/source4/torture/wscript_build b/source4/torture/wscript_build
old mode 100755
new mode 100644
-- 
1.9.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170111/7bb86fb6/signature.sig>


More information about the samba-technical mailing list