Hello community,

here is the log from the commit of package libssh2_org for openSUSE:Factory 
checked in at 2011-12-31 17:19:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libssh2_org (Old)
 and      /work/SRC/openSUSE:Factory/.libssh2_org.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libssh2_org", Maintainer is "crrodrig...@novell.com"

Changes:
--------
--- /work/SRC/openSUSE:Factory/libssh2_org/libssh2_org.changes  2011-10-25 
16:08:54.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.libssh2_org.new/libssh2_org.changes     
2011-12-31 17:19:55.000000000 +0100
@@ -1,0 +2,15 @@
+Tue Dec 27 03:41:32 UTC 2011 - crrodrig...@opensuse.org
+
+- Refresh patches. 
+
+-------------------------------------------------------------------
+Thu Dec  1 03:41:02 UTC 2011 - jeng...@medozas.de
+
+- Remove redundant/unwanted tags/section (cf. specfile guidelines)
+
+-------------------------------------------------------------------
+Thu Dec  1 02:43:46 UTC 2011 - crrodrig...@opensuse.org
+
+- open library file descriptors with O_CLOEXEC 
+
+-------------------------------------------------------------------

New:
----
  libssh2-ocloexec.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libssh2_org.spec ++++++
--- /var/tmp/diff_new_pack.nN1FBm/_old  2011-12-31 17:19:56.000000000 +0100
+++ /var/tmp/diff_new_pack.nN1FBm/_new  2011-12-31 17:19:56.000000000 +0100
@@ -33,6 +33,7 @@
 #for the test suite
 BuildRequires:  openssh
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+Patch:          libssh2-ocloexec.patch
 
 %description
 libssh2 is a library implementing the SSH2 protocol as defined by
@@ -40,10 +41,7 @@
 SECSH-ARCH, SECSH-FILEXFER, SECSH-DHGEX, SECSH-NUMBERS, and
 SECSH-PUBLICKEY.
 
-%define debug_package_requires libssh2-1 = %{version}-%{release}
-
 %package -n libssh2-1
-License:        BSD3c
 Summary:        A library implementing the SSH2 protocol
 Group:          Development/Libraries/C and C++
 
@@ -54,7 +52,6 @@
 SECSH-PUBLICKEY.
 
 %package -n libssh2-devel
-License:        BSD3c
 Summary:        A library implementing the SSH2 protocol
 Group:          Development/Libraries/C and C++
 Requires:       glibc-devel
@@ -68,6 +65,7 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
+%patch -p1
 
 %build
 export CFLAGS="%optflags -DOPENSSL_LOAD_CONF"
@@ -87,9 +85,6 @@
 make check
 %endif
 
-%clean
-rm -rf %{buildroot}
-
 %post -n libssh2-1 -p /sbin/ldconfig
 
 %postun -n libssh2-1 -p /sbin/ldconfig

++++++ libssh2-ocloexec.patch ++++++
>From 33a59a1905feb5d786e9d457f287dd9e81a9f747 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= <crrodrig...@opensuse.org>
Date: Tue, 27 Dec 2011 00:33:28 -0300
Subject: [PATCH] Use O_CLOEXEC where needed

---
 src/agent.c     |    2 +-
 src/knownhost.c |    4 ++--
 src/userauth.c  |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/agent.c b/src/agent.c
index 5a9e81c..af939a1 100644
--- a/src/agent.c
+++ b/src/agent.c
@@ -152,7 +152,7 @@ agent_connect_unix(LIBSSH2_AGENT *agent)
         return _libssh2_error(agent->session, LIBSSH2_ERROR_BAD_USE,
                               "no auth sock variable");
 
-    agent->fd = socket(PF_UNIX, SOCK_STREAM, 0);
+    agent->fd = socket(PF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0);
     if (agent->fd < 0)
         return _libssh2_error(agent->session, LIBSSH2_ERROR_BAD_SOCKET,
                               "failed creating socket");
diff --git a/src/knownhost.c b/src/knownhost.c
index 193bda3..418c08a 100644
--- a/src/knownhost.c
+++ b/src/knownhost.c
@@ -907,7 +907,7 @@ libssh2_knownhost_readfile(LIBSSH2_KNOWNHOSTS *hosts,
                               "Unsupported type of known-host information "
                               "store");
 
-    file = fopen(filename, "r");
+    file = fopen(filename, "re");
     if(file) {
         while(fgets(buf, sizeof(buf), file)) {
             if(libssh2_knownhost_readline(hosts, buf, strlen(buf), type))
@@ -1079,7 +1079,7 @@ libssh2_knownhost_writefile(LIBSSH2_KNOWNHOSTS *hosts,
                               "Unsupported type of known-host information "
                               "store");
 
-    file = fopen(filename, "w");
+    file = fopen(filename, "we");
     if(!file)
         return _libssh2_error(hosts->session, LIBSSH2_ERROR_FILE,
                               "Failed to open file");
diff --git a/src/userauth.c b/src/userauth.c
index 3fcb200..0f48a1d 100644
--- a/src/userauth.c
+++ b/src/userauth.c
@@ -467,7 +467,7 @@ file_read_publickey(LIBSSH2_SESSION * session, unsigned 
char **method,
     _libssh2_debug(session, LIBSSH2_TRACE_AUTH, "Loading public key file: %s",
                    pubkeyfile);
     /* Read Public Key */
-    fd = fopen(pubkeyfile, "r");
+    fd = fopen(pubkeyfile, "re");
     if (!fd) {
         return _libssh2_error(session, LIBSSH2_ERROR_FILE,
                               "Unable to open public key file");
-- 
1.7.7

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to