rpms/fuse-encfs/devel encfs-1.5-const.patch, NONE, 1.1 fuse-encfs.spec, 1.27, 1.28

Caolan McNamara caolanm at fedoraproject.org
Tue Mar 3 15:04:07 UTC 2009


Author: caolanm

Update of /cvs/pkgs/rpms/fuse-encfs/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv18842

Modified Files:
	fuse-encfs.spec 
Added Files:
	encfs-1.5-const.patch 
Log Message:
constify ret of strchr(const char*)

encfs-1.5-const.patch:

--- NEW FILE encfs-1.5-const.patch ---
diff -ru encfs-1.5.orig/encfs/NameIO.cpp encfs-1.5/encfs/NameIO.cpp
--- encfs-1.5.orig/encfs/NameIO.cpp	2009-03-03 14:56:44.000000000 +0000
+++ encfs-1.5/encfs/NameIO.cpp	2009-03-03 14:57:02.000000000 +0000
@@ -190,7 +190,7 @@
 	} else
 	{
 	    bool isDotFile = (*path == '.');
-	    char *next = strchr( path, '/' );
+	    const char *next = strchr( path, '/' );
 	    int len = next ? next - path : strlen( path );
 
 	    // at this point we know that len > 0


Index: fuse-encfs.spec
===================================================================
RCS file: /cvs/pkgs/rpms/fuse-encfs/devel/fuse-encfs.spec,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- fuse-encfs.spec	24 Feb 2009 18:52:46 -0000	1.27
+++ fuse-encfs.spec	3 Mar 2009 15:03:36 -0000	1.28
@@ -1,12 +1,13 @@
 Name:		fuse-encfs
 Version:	1.5
-Release:	5%{?dist}
+Release:	6%{?dist}
 Summary:	Encrypted pass-thru filesystem in userspace
 License:	GPLv3+
 Group:		System Environment/Kernel
 Url:		http://www.arg0.net/encfs
 Source0:	http://encfs.googlecode.com/files/encfs-%{version}-2.tgz
 Source1:	http://encfs.googlecode.com/files/encfs-%{version}-2.tgz.asc
+Patch0:		encfs-1.5-const.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires:	fuse >= 2.6
 Provides:	encfs = %{version}
@@ -25,6 +26,7 @@
 
 %prep
 %setup -q -n encfs-%{version}
+%patch0 -p1 -b .const
 
 %build
 %configure --disable-static --with-boost-libdir=%{_libdir}
@@ -52,6 +54,9 @@
 %{_mandir}/man1/*
 
 %changelog
+* Tue Mar 03 2009 Caolán McNamara <caolanm at redhat.com> - 1.5-6
+- constify ret of strchr(const char*)
+
 * Tue Feb 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.5-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list