rpms/openobex/F-8 openobex-1.3-ircp.patch, NONE, 1.1 openobex.spec, 1.29, 1.30
Jiří Moskovčák (jmoskovc)
fedora-extras-commits at redhat.com
Wed Jun 18 09:32:27 UTC 2008
- Previous message (by thread): rpms/pywbxml/devel dead.package, NONE, 1.1 .cvsignore, 1.2, NONE Makefile, 1.1, NONE pywbxml.spec, 1.3, NONE sources, 1.2, NONE
- Next message (by thread): rpms/wbxml2/F-8 wbxml2.spec, 1.14, 1.15 wbxml2-0.9.2-anonymous-support-and-misc-fixes.patch, 1.1, NONE wbxml2-0.9.2-namespaces.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: jmoskovc
Update of /cvs/extras/rpms/openobex/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13525
Modified Files:
openobex.spec
Added Files:
openobex-1.3-ircp.patch
Log Message:
fixed problem when ircp tries to write files to / (rhbz#451493)
openobex-1.3-ircp.patch:
--- NEW FILE openobex-1.3-ircp.patch ---
--- openobex-1.3/ircp/ircp_io.c 2006-01-18 15:02:14.000000000 +0200
+++ openobex-1.3_ircp_io/ircp/ircp_io.c 2008-06-14 11:25:53.000000000 +0300
@@ -127,8 +127,11 @@
return -1;
//TODO! Rename file if already exist.
-
- snprintf(diskname, MAXPATHLEN, "%s/%s", path, name);
+ if (strnlen(path,MAXPATHLEN)!=0) {
+ snprintf(diskname, MAXPATHLEN, "%s/%s", path, name);
+ } else {
+ strncpy(diskname, name, MAXPATHLEN);
+ }
DEBUG(4, "Creating file %s\n", diskname);
@@ -150,7 +153,11 @@
return -1;
}
- snprintf(newpath, MAXPATHLEN, "%s/%s", path, dir);
+ if (strnlen(path,MAXPATHLEN)!=0) {
+ snprintf(newpath, MAXPATHLEN, "%s/%s", path, dir);
+ } else {
+ strncpy(newpath, dir, MAXPATHLEN);
+ }
DEBUG(4, "path = %s dir = %s, flags = %d\n", path, dir, flags);
if(stat(newpath, &statbuf) == 0) {
Index: openobex.spec
===================================================================
RCS file: /cvs/extras/rpms/openobex/F-8/openobex.spec,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- openobex.spec 6 Jun 2008 09:44:48 -0000 1.29
+++ openobex.spec 18 Jun 2008 09:31:37 -0000 1.30
@@ -1,7 +1,7 @@
Summary: Library for using OBEX
Name: openobex
Version: 1.3
-Release: 11%{?dist}
+Release: 12%{?dist}
License: GPLv2+
Group: System Environment/Libraries
URL: http://openobex.sourceforge.net
@@ -11,6 +11,7 @@
Patch2: openobex-1.3-autoconf.patch
Patch3: openobex-1.3-ipv6.patch
Patch4: openobex-1.3-utf.patch
+Patch5: openobex-1.3-ircp.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: autoconf >= 2.57, bluez-libs-devel, sed, libusb-devel
@@ -47,6 +48,7 @@
%patch2 -p1 -b .ipv6
%patch3 -p1 -b .autoconf
%patch4 -p1 -b .utf
+%patch5 -p1 -b .ircp
autoreconf --install --force
%build
@@ -91,6 +93,10 @@
%changelog
+* Wed Jun 18 2008 Jiri Moskovcak <jmoskovc at redhat.com> 1.3-12
+- fixed problem when ircp tries to write files to /
+- Resolves: #451493
+
* Fri Jun 6 2008 Jiri Moskovcak <jmoskovc at redhat.com> 1.3-11
- Improved utf support
- Resolves: #430128
- Previous message (by thread): rpms/pywbxml/devel dead.package, NONE, 1.1 .cvsignore, 1.2, NONE Makefile, 1.1, NONE pywbxml.spec, 1.3, NONE sources, 1.2, NONE
- Next message (by thread): rpms/wbxml2/F-8 wbxml2.spec, 1.14, 1.15 wbxml2-0.9.2-anonymous-support-and-misc-fixes.patch, 1.1, NONE wbxml2-0.9.2-namespaces.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list