rpms/unix2dos/devel unix2dos-strcpy.patch, NONE, 1.1 unix2dos.spec, 1.13, 1.14
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Tue Apr 12 13:53:45 UTC 2005
Update of /cvs/dist/rpms/unix2dos/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv25599
Modified Files:
unix2dos.spec
Added Files:
unix2dos-strcpy.patch
Log Message:
* Tue Apr 12 2005 Tim Waugh <twaugh at redhat.com>
- Removed inappropriate strcpy (bug #153079). Patch from Neil Horman.
unix2dos-strcpy.patch:
unix2dos.c | 1 -
1 files changed, 1 deletion(-)
--- NEW FILE unix2dos-strcpy.patch ---
--- unix2dos-2.2/unix2dos.c.orig 2005-04-01 07:33:18.311710051 -0500
+++ unix2dos-2.2/unix2dos.c 2005-04-01 07:33:26.975537555 -0500
@@ -250,7 +250,6 @@ int ConvertUnixToDosNewFile(char *ipInFN
if ((ipFlag->KeepDate) && stat(ipInFN, &StatBuf))
RetVal = -1;
- strcpy (TempPath, "./u2dtmpXXXXXX");
if((fd = MakeTempFileFrom (ipOutFN, &TempPath)) < 0) {
perror("Can't open output temp file");
RetVal = -1;
Index: unix2dos.spec
===================================================================
RCS file: /cvs/dist/rpms/unix2dos/devel/unix2dos.spec,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- unix2dos.spec 4 Mar 2005 03:40:58 -0000 1.13
+++ unix2dos.spec 12 Apr 2005 13:53:42 -0000 1.14
@@ -10,6 +10,7 @@
Patch2: unix2dos-2.2-manpage.patch
Patch3: unix2dos-2.2-mode.patch
Patch4: unix2dos-2.2-tmppath.patch
+Patch5: unix2dos-strcpy.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: perl
@@ -20,6 +21,7 @@
%patch2 -p1 -b .man
%patch3 -p1 -b .mode
%patch4 -p1 -b .tmppath
+%patch5 -p1 -b .strcpy
perl -pi -e "s/^#endif.*/#endif/g;s/^#else.*/#else/g" *.[ch]
%description
@@ -45,6 +47,9 @@
%changelog
+* Tue Apr 12 2005 Tim Waugh <twaugh at redhat.com>
+- Removed inappropriate strcpy (bug #153079). Patch from Neil Horman.
+
* Thu Mar 3 2005 Mike A. Harris <mharris at redhat.com> 2.2-25
- Rebuild with gcc 4 for FC4
More information about the fedora-cvs-commits
mailing list