Compare commits

...

4 Commits
master ... f12

Author SHA1 Message Date
Fedora Release Engineering 32565c1150 dist-git conversion 2010-07-29 13:11:43 +00:00
Ondrej Vasik 61ef746a4c fix buffer overflow for files with names of length 100 chars(#556664) 2010-02-03 12:55:39 +00:00
Bill Nottingham 38660a054f Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:43:48 +00:00
Jesse Keating a149f161c9 Initialize branch F-12 for star 2009-09-29 06:56:41 +00:00
4 changed files with 20 additions and 22 deletions

View File

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: star
# $Id: Makefile,v 1.1 2004/09/09 12:37:41 cvsdist Exp $
NAME := star
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attempt a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View File

@ -0,0 +1,12 @@
diff -urNp star-1.5.1-orig/star/longnames.c star-1.5.1/star/longnames.c
--- star-1.5.1-orig/star/longnames.c 2009-10-16 00:38:55.000000000 +0200
+++ star-1.5.1/star/longnames.c 2010-02-03 13:36:03.000000000 +0100
@@ -155,7 +155,7 @@ name_to_tcb(info, ptb)
if (add)
strcatl(ptb->dbuf.t_name, name, "/", (char *)NULL);
else
- strcpy(ptb->dbuf.t_name, name);
+ strncpy(ptb->dbuf.t_name, name, props.pr_maxsname);
return (TRUE);
}

View File

@ -4,7 +4,7 @@
Summary: An archiving tool with ACL support
Name: star
Version: 1.5
Release: 8%{?dist}
Release: 9%{?dist}
URL: http://cdrecord.berlios.de/old/private/star.html
Source: ftp://ftp.berlios.de/pub/star/%{name}-%{version}.tar.bz2
@ -18,6 +18,8 @@ Patch3: star-1.5-changewarnSegv.patch
Patch4: star-1.5-removenames_c.patch
#do not conflict with glibc stdio functions (#494213)
Patch5: star-1.5-stdioconflict.patch
#Prevent buffer overflow for filenames with length of 100 characters (#556664)
Patch6: star-1.5.1-bufferoverflow.patch
License: CDDL
Group: Applications/Archiving
@ -38,6 +40,7 @@ and can restore individual files from the archive. Star supports ACL.
%patch3 -p1 -b .changewarnSegv
%patch4 -p1 -b .removenames
%patch5 -p1 -b .conflict
%patch6 -p1 -b .namesoverflow
iconv -f iso_8859-1 -t utf-8 AN-1.5 >AN-1.5_utf8
mv AN-1.5_utf8 AN-1.5
cp -a READMEs/README.linux .
@ -113,6 +116,10 @@ rm -rf ${RPM_BUILD_ROOT}
%{_mandir}/man1/ustar.1*
%changelog
* Wed Feb 03 2010 Ondrej Vasik <ovasik@redhat.com> 1.5-9
- fix buffer overflow for files with names of length
100 chars(#556664)
* Thu Aug 27 2009 Ondrej Vasik <ovasik@redhat.com> 1.5-8
- provide symlinked manpage for ustar