From e3db09cf029f70473cb0b2a6d9e9fb8035a8b5f8 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 20 Apr 2009 16:50:14 +0200 Subject: Do not vasprint stuff where not necessary --- source3/rpc_server/srv_lsa_hnd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/rpc_server/srv_lsa_hnd.c b/source3/rpc_server/srv_lsa_hnd.c index 21b297af2d..d8c48058be 100644 --- a/source3/rpc_server/srv_lsa_hnd.c +++ b/source3/rpc_server/srv_lsa_hnd.c @@ -337,7 +337,7 @@ void *_policy_handle_create(struct pipes_struct *p, struct policy_handle *hnd, *pstatus = NT_STATUS_NO_MEMORY; return NULL; } - talloc_set_name(data, "%s", type); + talloc_set_name_const(data, type); pol = create_policy_hnd_internal(p, hnd, data); if (pol == NULL) { -- cgit From f493755aafacb128cb7b9148898f5ce1d02f6d69 Mon Sep 17 00:00:00 2001 From: John H Terpstra Date: Mon, 20 Apr 2009 10:10:20 -0500 Subject: Added ability to revert to old modules for make revert. --- source3/script/installmodules.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source3/script/installmodules.sh b/source3/script/installmodules.sh index f70db003ed..127091d808 100755 --- a/source3/script/installmodules.sh +++ b/source3/script/installmodules.sh @@ -29,6 +29,11 @@ mtype=`basename $LIBDIR` for p in $*; do p2=`basename $p` name=`echo $p2 | sed -es/${mtype}_//` + echo Preserving old module as $DESTDIR/$LIBDIR/$name.old + if [ -f $DESTDIR/$LIBDIR/$name ]; then + rm -f $DESTDIR/$LIBDIR/$name.old + mv $DESTDIR/$LIBDIR/$name $DESTDIR/$LIBDIR/$name.old + fi echo Installing $p as $DESTDIR/$LIBDIR/$name cp -f $p $DESTDIR/$LIBDIR/$name chmod $INSTALLPERMS $DESTDIR/$LIBDIR/$name -- cgit