Hello community,
here is the log from the commit of package yast2-samba-server
checked in at Mon Dec 1 18:14:05 CET 2008.
--------
--- yast2-samba-server/yast2-samba-server.changes 2008-11-06 18:06:50.000000000 +0100
+++ /mounts/work_src_done/STABLE/yast2-samba-server/yast2-samba-server.changes 2008-12-01 13:47:08.000000000 +0100
@@ -1,0 +2,7 @@
+Mon Dec 1 13:45:39 CET 2008 - locilka@suse.cz
+
+- Using temporary file for pdbedit calls instead of stdin because
+ pdbedit reads the input several times for one call (bnc #438481).
+- 2.17.6
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
yast2-samba-server-2.17.5.tar.bz2
New:
----
yast2-samba-server-2.17.6.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-samba-server.spec ++++++
--- /var/tmp/diff_new_pack.z17820/_old 2008-12-01 18:13:44.000000000 +0100
+++ /var/tmp/diff_new_pack.z17820/_new 2008-12-01 18:13:44.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-samba-server (Version 2.17.5)
+# spec file for package yast2-samba-server (Version 2.17.6)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -19,12 +19,12 @@
Name: yast2-samba-server
-Version: 2.17.5
+Version: 2.17.6
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-samba-server-2.17.5.tar.bz2
+Source0: yast2-samba-server-2.17.6.tar.bz2
Prefix: /usr
BuildRequires: libsmbclient libsmbclient-devel perl-Crypt-SmbHash perl-X500-DN perl-XML-Writer samba-client update-desktop-files yast2 yast2-devtools yast2-ldap-client yast2-perl-bindings yast2-samba-client yast2-testsuite yast2-users
Requires: perl-Crypt-SmbHash
@@ -54,7 +54,7 @@
Lukas Ocilka
%prep
-%setup -n yast2-samba-server-2.17.5
+%setup -n yast2-samba-server-2.17.6
%build
%{prefix}/bin/y2tool y2autoconf
@@ -88,6 +88,10 @@
/usr/share/YaST2/schema/autoyast/rnc/samba-server.rnc
%doc %{prefix}/share/doc/packages/yast2-samba-server
%changelog
+* Mon Dec 01 2008 locilka@suse.cz
+- Using temporary file for pdbedit calls instead of stdin because
+ pdbedit reads the input several times for one call (bnc #438481).
+- 2.17.6
* Thu Nov 06 2008 locilka@suse.cz
- Using new service:samba-server firewall service (bnc #247344).
- 2.17.5
++++++ yast2-samba-server-2.17.5.tar.bz2 -> yast2-samba-server-2.17.6.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-samba-server-2.17.5/configure new/yast2-samba-server-2.17.6/configure
--- old/yast2-samba-server-2.17.5/configure 2008-11-05 18:38:01.000000000 +0100
+++ new/yast2-samba-server-2.17.6/configure 2008-12-01 14:05:40.000000000 +0100
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.63 for yast2-samba-server 2.17.3.
+# Generated by GNU Autoconf 2.63 for yast2-samba-server 2.17.6.
#
# Report bugs to http://bugs.opensuse.org/.
#
@@ -596,8 +596,8 @@
# Identity of this package.
PACKAGE_NAME='yast2-samba-server'
PACKAGE_TARNAME='yast2-samba-server'
-PACKAGE_VERSION='2.17.3'
-PACKAGE_STRING='yast2-samba-server 2.17.3'
+PACKAGE_VERSION='2.17.6'
+PACKAGE_STRING='yast2-samba-server 2.17.6'
PACKAGE_BUGREPORT='http://bugs.opensuse.org/'
ac_unique_file="RPMNAME"
@@ -1274,7 +1274,7 @@
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures yast2-samba-server 2.17.3 to adapt to many kinds of systems.
+\`configure' configures yast2-samba-server 2.17.6 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1346,7 +1346,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of yast2-samba-server 2.17.3:";;
+ short | recursive ) echo "Configuration of yast2-samba-server 2.17.6:";;
esac
cat <<\_ACEOF
@@ -1426,7 +1426,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-yast2-samba-server configure 2.17.3
+yast2-samba-server configure 2.17.6
generated by GNU Autoconf 2.63
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1440,7 +1440,7 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by yast2-samba-server $as_me 2.17.3, which was
+It was created by yast2-samba-server $as_me 2.17.6, which was
generated by GNU Autoconf 2.63. Invocation command line was
$ $0 $@
@@ -2287,7 +2287,7 @@
# Define the identity of the package.
PACKAGE='yast2-samba-server'
- VERSION='2.17.3'
+ VERSION='2.17.6'
cat >>confdefs.h <<_ACEOF
@@ -2511,7 +2511,7 @@
-VERSION="2.17.3"
+VERSION="2.17.6"
RPMNAME="yast2-samba-server"
MAINTAINER="Lukas Ocilka "
@@ -3452,7 +3452,7 @@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by yast2-samba-server $as_me 2.17.3, which was
+This file was extended by yast2-samba-server $as_me 2.17.6, which was
generated by GNU Autoconf 2.63. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -3502,7 +3502,7 @@
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_version="\\
-yast2-samba-server config.status 2.17.3
+yast2-samba-server config.status 2.17.6
configured by $0, generated by GNU Autoconf 2.63,
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-samba-server-2.17.5/configure.in new/yast2-samba-server-2.17.6/configure.in
--- old/yast2-samba-server-2.17.5/configure.in 2008-11-05 18:37:58.000000000 +0100
+++ new/yast2-samba-server-2.17.6/configure.in 2008-12-01 14:05:37.000000000 +0100
@@ -3,7 +3,7 @@
dnl -- This file is generated by y2autoconf 2.17.6 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-samba-server, 2.17.3, http://bugs.opensuse.org/, yast2-samba-server)
+AC_INIT(yast2-samba-server, 2.17.6, http://bugs.opensuse.org/, yast2-samba-server)
dnl Check for presence of file 'RPMNAME'
AC_CONFIG_SRCDIR([RPMNAME])
@@ -18,7 +18,7 @@
AM_INIT_AUTOMAKE(tar-ustar -Wno-portability)
dnl Important YaST2 variables
-VERSION="2.17.3"
+VERSION="2.17.6"
RPMNAME="yast2-samba-server"
MAINTAINER="Lukas Ocilka "
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-samba-server-2.17.5/src/SambaAccounts.pm new/yast2-samba-server-2.17.6/src/SambaAccounts.pm
--- old/yast2-samba-server-2.17.5/src/SambaAccounts.pm 2008-10-29 11:50:14.000000000 +0100
+++ new/yast2-samba-server-2.17.6/src/SambaAccounts.pm 2008-12-01 13:47:24.000000000 +0100
@@ -3,7 +3,7 @@
# Authors: Stanislav Visnovsky
# Martin Lazar
#
-# $Id: SambaAccounts.pm 22408 2005-03-11 08:32:58Z mlazar $
+# $Id: SambaAccounts.pm 53768 2008-12-01 12:48:08Z locilka $
#
# Representation of the configuration of samba-server.
# Input and output routines.
@@ -23,6 +23,8 @@
BEGIN {
YaST::YCP::Import("SCR");
+YaST::YCP::Import("FileUtils");
+YaST::YCP::Import("Directory");
}
my %Pdb = ();
@@ -41,6 +43,8 @@
BEGIN{$TYPEINFO{Write}=["function","boolean"]}
sub Write {
my $error = 0;
+ my $tmpfile = Directory->tmpdir()."/samba-server-pdbedit-tmpfile";
+
foreach my $user (keys %Pdb) {
my $nthash = $Pdb{$user}{nthash};
$nthash = "X"x32 unless $nthash;
@@ -59,13 +63,23 @@
y2debug("add user '$user'");
my $smbpasswd=sprintf "%s:%d:%s:%s:[%-11s]:LCT-%08X\n", $user, $uid, $lmhash, $nthash, "U", time;
- my $cmd = "echo '$smbpasswd' | pdbedit -i smbpasswd:/dev/stdin";
+
+ y2milestone ("Writing user (".$user.") settings to: ".$tmpfile);
+ SCR->Write (".target.string", $tmpfile, $smbpasswd);
+
+ my $cmd = "pdbedit -i smbpasswd:$tmpfile";
if (SCR->Execute(".target.bash", $cmd)) {
y2error("Failed to execute '$cmd'");
$error = 1;
next;
}
}
+
+ if (FileUtils->Exists ($tmpfile)) {
+ y2milestone ("Removing temporary file: ".$tmpfile);
+ SCR->Execute (".target.remove", $tmpfile);
+ }
+
return $error == 0;
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-samba-server-2.17.5/VERSION new/yast2-samba-server-2.17.6/VERSION
--- old/yast2-samba-server-2.17.5/VERSION 2008-11-06 18:06:55.000000000 +0100
+++ new/yast2-samba-server-2.17.6/VERSION 2008-12-01 13:40:28.000000000 +0100
@@ -1 +1 @@
-2.17.5
+2.17.6
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org