OBS User unknown 2007-01-15 23:25:04 +00:00 committed by Git OBS Bridge
commit d7a1fa4c5b
8 changed files with 4244 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,84 @@
--- metamail/metamail.c
+++ metamail/metamail.c 2006-02-23 18:56:04.000000000 +0100
@@ -445,7 +445,7 @@
}
LineBuf = malloc(LINE_BUF_SIZE);
if (!LineBuf) ExitWithError(nomem);
- sprintf(LineBuf, "--%s", boundary);
+ snprintf(LineBuf, LINE_BUF_SIZE, "--%s", boundary);
strcpy(boundary, LineBuf);
boundarylen = strlen(boundary);
if (BoundaryCt >= BoundaryAlloc) {
@@ -1202,9 +1202,9 @@
fprintf(outfp, "Content-type: %s", ContentType);
for (j=0; j<CParamsUsed; ++j) {
fprintf(outfp, " ; ");
- fprintf(outfp, CParams[j]);
+ fprintf(outfp, "%s", CParams[j]);
fprintf(outfp, " = ");
- fprintf(outfp, CParamValues[j]);
+ fprintf(outfp, "%s", CParamValues[j]);
}
fprintf(outfp, "\n\n");
TranslateInputToOutput(InputFP, outfp, EncodingCode, ContentType);
@@ -2022,7 +2022,8 @@
if (lc2strcmp(charset, PrevCharset)) {
char *s2, *charsetinuse;
- strcpy(PrevCharset, charset);
+ strncpy(PrevCharset, charset, sizeof(PrevCharset));
+ PrevCharset[sizeof(PrevCharset) - 1] = '\0';
for (s2=PrevCharset; *s2; ++s2) {
if (isupper((unsigned char) *s2)) *s2 = tolower((unsigned char) *s2);
}
@@ -2032,7 +2033,7 @@
}
}
if (ecode == ENCODING_NONE) {
- printf(txt+1);
+ printf("%s", txt+1);
} else {
/* What follows is REALLY bogus, but all my encoding stuff is pipe-oriented right now... */
MkTmpFileName(TmpFile);
@@ -2115,7 +2116,7 @@
if (boundary[0] == '"') {
boundary=UnquoteString(boundary);
}
- sprintf(LineBuf, "--%s", boundary);
+ snprintf(LineBuf, LINE_BUF_SIZE, "--%s", boundary);
strcpy(boundary, LineBuf);
boundarylen = strlen(boundary);
if (BoundaryCt >= BoundaryAlloc) {
--- metamail/splitmail.c
+++ metamail/splitmail.c 2006-02-23 18:55:01.000000000 +0100
@@ -194,7 +194,7 @@
s = endofheader(from); /* would be index(from, '\n'),
but need to check for continuation lines */
*s = '\0';
- if (ShareThisHeader(from, SubjectBuf, &OrigID)) {
+ if (ShareThisHeader(from, SubjectBuf, sizeof(SubjectBuf), &OrigID)) {
strcat(SharedHeaders, from);
strcat(SharedHeaders, "\n");
}
@@ -339,9 +339,10 @@
NULL
};
-ShareThisHeader(s, SubjectBuf, OrigID)
+ShareThisHeader(s, SubjectBuf, SubjectBufLen, OrigID)
char *s;
char *SubjectBuf;
+size_t SubjectBufLen;
char **OrigID;
{
int i;
@@ -361,7 +362,8 @@
}
if (!ULstrcmp(s, "subject")) {
*colon = ':';
- strcpy(SubjectBuf, ++colon);
+ strncpy(SubjectBuf, ++colon, SubjectBufLen);
+ SubjectBuf[SubjectBufLen - 1] = '\0';
return(0);
}
if (!ULstrcmp(s, "content-type")) {

3748
metamail-2.7-19.dif Normal file

File diff suppressed because it is too large Load Diff

3
metamail-2.7-19.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2f6f74d5f6bda8e73d84498eb876f25277f8a4dfca870ab76bd9be2807e69b1f
size 162101

193
metamail.changes Normal file
View File

@ -0,0 +1,193 @@
-------------------------------------------------------------------
Thu Feb 23 18:57:11 CET 2006 - werner@suse.de
- Fix for buffer overflow (bug #153145)
-------------------------------------------------------------------
Wed Jan 25 21:38:14 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Tue Jan 17 00:11:45 CET 2006 - schwab@suse.de
- Don't strip binaries.
-------------------------------------------------------------------
Fri Jul 1 12:37:19 CEST 2005 - werner@suse.de
- Remove -fsigned-char (bug #93881)
-------------------------------------------------------------------
Fri Jun 10 14:31:16 CEST 2005 - werner@suse.de
- Use declaration from stdio.h for gets(3)
-------------------------------------------------------------------
Thu May 6 16:45:09 CEST 2004 - hmacht@suse.de
- added # norootforbuild in specfile
-------------------------------------------------------------------
Fri Mar 19 14:48:10 CET 2004 - werner@suse.de
- Fix date issue with locale: be always RFC 822 conform (#35828)
-------------------------------------------------------------------
Tue Mar 2 13:20:30 CET 2004 - werner@suse.de
- Fix security fix: sizeof(char*) is not equal to sizeof(char[250])
-------------------------------------------------------------------
Mon Feb 9 16:16:52 CET 2004 - werner@suse.de
- Security fix format-string bug and buffer overflow (bug #34369)
-------------------------------------------------------------------
Fri Jan 23 17:17:44 CET 2004 - werner@suse.de
- Fix declarations of the stuff to make gcc happy
-------------------------------------------------------------------
Fri Jun 13 11:06:38 CEST 2003 - coolo@suse.de
- use BuildRoot
- really package mgrep (not just the man page :)
- use %_mandir
-------------------------------------------------------------------
Tue Dec 17 16:39:20 CET 2002 - werner@suse.de
- New: mgrep which does similar to zgrep on mimencoded data
-------------------------------------------------------------------
Tue Sep 17 17:34:28 CEST 2002 - ro@suse.de
- removed bogus self-provides
-------------------------------------------------------------------
Sat Jul 13 23:07:40 CEST 2002 - schwab@suse.de
- mmencode: don't change mode of stdout.
-------------------------------------------------------------------
Mon Oct 1 16:55:41 CEST 2001 - schwab@suse.de
- Fix quoting in shell scripts.
-------------------------------------------------------------------
Tue May 22 12:29:28 CEST 2001 - werner@suse.de
- Remove space after ?= closing phrase
-------------------------------------------------------------------
Wed Mar 7 17:09:27 CET 2001 - uli@suse.de
- added xf86 to neededforbuild
-------------------------------------------------------------------
Wed Mar 7 12:39:54 CET 2001 - werner@suse.de
- Be sure that font directory exists
-------------------------------------------------------------------
Fri Dec 22 15:36:06 CET 2000 - werner@suse.de
- If terminal attributes will be restored then do this immediately
-------------------------------------------------------------------
Fri Dec 22 13:17:35 CET 2000 - werner@suse.de
- Declare standard functions
- Use putenv of glibc
- Print commando is lpr
- Use limits.h
- Use termios interface of glibc
-------------------------------------------------------------------
Mon Nov 27 14:58:43 CET 2000 - sndirsch@suse.de
- removed /usr/X11R6/lib/X11/fonts/misc/heb8x13B.pcf.gz
from filelist (font already included in xf86 package)
-------------------------------------------------------------------
Fri Nov 17 13:06:18 CET 2000 - kukuk@suse.de
- fix Requires: sharutil -> sharutils
-------------------------------------------------------------------
Mon Nov 13 10:42:50 CET 2000 - ro@suse.de
- don't redeclare killpg
-------------------------------------------------------------------
Wed Oct 11 18:09:34 CEST 2000 - werner@suse.de
- Fix bug within metasend (bug# 4099)
-------------------------------------------------------------------
Wed Jun 7 15:46:21 CEST 2000 - ro@suse.de
- doc relocation
-------------------------------------------------------------------
Thu Mar 2 18:30:26 CET 2000 - werner@suse.de
- /usr/man -> /usr/share/man
-------------------------------------------------------------------
Tue Oct 19 23:59:02 MEST 1999 - werner@suse.de
- If -o is used for mmencoding the file permissions should
be the same as the input file
- Use Fopen within mmencode.c
- sendmail is stored in /usr/sbin/
- MAILCAPDIR is /etc
- showexternal: check for broken arguments
- mailto.c: don't be fooled by newlines
- Use RPM_OPT_FLAGS
-------------------------------------------------------------------
Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
-------------------------------------------------------------------
Tue Aug 24 19:15:17 MEST 1999 - uli@suse.de
- added -fsigned-char to CFLAGS (PPC)
----------------------------------------------------------------------------
Fri Jul 17 14:25:28 MET DST 1998 - werner@suse.de
- Add C source fixes of RedHat against temp exploits
- Make sh and shell scripts using mktemp for temp files
- Use PAGER if set
- Use -o of uudecode to avoid attacks over net
----------------------------------------------------------------------------
Tue May 27 20:03:59 MEST 1997 - florian@suse.de
- fix shell script "audiosend"
----------------------------------------------------------------------------
Sat Apr 26 19:14:59 MEST 1997 - florian@suse.de
- update to new version 2.7-19 from debian
----------------------------------------------------------------------------
Tue Oct 22 22:14:08 MEST 1996 - florian@suse.de
- Bisherige Anpassungen mit der neusten debian-Version vergleichen
und zusammenbringen.
- Die extra Fonts sind momentan nicht mehr dabei,
sollten aber auch nicht fehlen...

192
metamail.spec Normal file
View File

@ -0,0 +1,192 @@
#
# spec file for package metamail (Version 2.7.19)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: metamail
BuildRequires: xorg-x11 xorg-x11-devel
License: BSD, Other License(s), see package
Group: Productivity/Networking/Email/Utilities
Requires: sharutils
Autoreqprov: on
Version: 2.7.19
Release: 1038
Summary: MIME Mail Handler
Source: metamail-2.7-19.tar.gz
Patch: metamail-2.7-19.dif
Patch1: metamail-2.7-19-security.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Metamail is required for reading multimedia mail messages (such as
those using the Andrew toolkit) with elm.
%prep
%setup -n metamail-2.7-19
%patch -P 1 -b .security
%patch -P 0
%build
make
make -C fonts
%install
mkdir -p $RPM_BUILD_ROOT/usr/bin $RPM_BUILD_ROOT%_mandir/man{1,4}
make INSTROOT=$RPM_BUILD_ROOT/usr INSTALL=install install-all
# mkdir -p $RPM_BUILD_ROOT/usr/X11R6/lib/X11/fonts/misc
# install -m 444 fonts/heb8x13B.pcf $RPM_BUILD_ROOT/usr/X11R6/lib/X11/fonts/misc/
# gzip -9f $RPM_BUILD_ROOT/usr/X11R6/lib/X11/fonts/misc/heb8x13B.pcf
%files
%defattr(-,root,root)
%doc README mailers.txt
#/usr/X11R6/lib/X11/fonts/misc/heb8x13B.pcf.gz
/usr/bin/audiocompose
/usr/bin/audiosend
/usr/bin/extcompose
/usr/bin/getfilename
/usr/bin/mailserver
/usr/bin/mailto
/usr/bin/mailto-hebrew
/usr/bin/metamail
/usr/bin/metasend
/usr/bin/mimeit
/usr/bin/mimencode
/usr/bin/mmencode
/usr/bin/mgrep
/usr/bin/patch-metamail
/usr/bin/rcvAppleSingle
/usr/bin/richtext
/usr/bin/richtoatk
/usr/bin/showaudio
/usr/bin/showexternal
/usr/bin/shownonascii
/usr/bin/showpartial
/usr/bin/showpicture
/usr/bin/sndAppleSingle
/usr/bin/splitmail
/usr/bin/sun-audio-file
/usr/bin/sun-message
/usr/bin/sun-message.csh
/usr/bin/sun-to-mime
/usr/bin/sun2mime
/usr/bin/uudepipe
/usr/bin/uuenpipe
%doc %{_mandir}/man1/audiocompose.1.gz
%doc %{_mandir}/man1/audiosend.1.gz
%doc %{_mandir}/man1/extcompose.1.gz
%doc %{_mandir}/man1/getfilename.1.gz
%doc %{_mandir}/man1/mailto-hebrew.1.gz
%doc %{_mandir}/man1/mailto.1.gz
%doc %{_mandir}/man1/metamail.1.gz
%doc %{_mandir}/man1/metasend.1.gz
%doc %{_mandir}/man1/mgrep.1.gz
%doc %{_mandir}/man1/mime.1.gz
%doc %{_mandir}/man1/mimencode.1.gz
%doc %{_mandir}/man1/mmencode.1.gz
%doc %{_mandir}/man1/patch-metamail.1.gz
%doc %{_mandir}/man1/richtext.1.gz
%doc %{_mandir}/man1/showaudio.1.gz
%doc %{_mandir}/man1/showexternal.1.gz
%doc %{_mandir}/man1/shownonascii.1.gz
%doc %{_mandir}/man1/showpartial.1.gz
%doc %{_mandir}/man1/showpicture.1.gz
%doc %{_mandir}/man1/splitmail.1.gz
%doc %{_mandir}/man4/mailcap.4.gz
%changelog -n metamail
* Thu Feb 23 2006 - werner@suse.de
- Fix for buffer overflow (bug #153145)
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Jan 17 2006 - schwab@suse.de
- Don't strip binaries.
* Fri Jul 01 2005 - werner@suse.de
- Remove -fsigned-char (bug #93881)
* Fri Jun 10 2005 - werner@suse.de
- Use declaration from stdio.h for gets(3)
* Thu May 06 2004 - hmacht@suse.de
- added # norootforbuild in specfile
* Fri Mar 19 2004 - werner@suse.de
- Fix date issue with locale: be always RFC 822 conform (#35828)
* Tue Mar 02 2004 - werner@suse.de
- Fix security fix: sizeof(char*) is not equal to sizeof(char[250])
* Mon Feb 09 2004 - werner@suse.de
- Security fix format-string bug and buffer overflow (bug #34369)
* Fri Jan 23 2004 - werner@suse.de
- Fix declarations of the stuff to make gcc happy
* Fri Jun 13 2003 - coolo@suse.de
- use BuildRoot
- really package mgrep (not just the man page :)
- use %%_mandir
* Tue Dec 17 2002 - werner@suse.de
- New: mgrep which does similar to zgrep on mimencoded data
* Tue Sep 17 2002 - ro@suse.de
- removed bogus self-provides
* Sat Jul 13 2002 - schwab@suse.de
- mmencode: don't change mode of stdout.
* Mon Oct 01 2001 - schwab@suse.de
- Fix quoting in shell scripts.
* Tue May 22 2001 - werner@suse.de
- Remove space after ?= closing phrase
* Wed Mar 07 2001 - uli@suse.de
- added xf86 to neededforbuild
* Wed Mar 07 2001 - werner@suse.de
- Be sure that font directory exists
* Fri Dec 22 2000 - werner@suse.de
- If terminal attributes will be restored then do this immediately
* Fri Dec 22 2000 - werner@suse.de
- Declare standard functions
- Use putenv of glibc
- Print commando is lpr
- Use limits.h
- Use termios interface of glibc
* Mon Nov 27 2000 - sndirsch@suse.de
- removed /usr/X11R6/lib/X11/fonts/misc/heb8x13B.pcf.gz
from filelist (font already included in xf86 package)
* Fri Nov 17 2000 - kukuk@suse.de
- fix Requires: sharutil -> sharutils
* Mon Nov 13 2000 - ro@suse.de
- don't redeclare killpg
* Wed Oct 11 2000 - werner@suse.de
- Fix bug within metasend (bug# 4099)
* Wed Jun 07 2000 - ro@suse.de
- doc relocation
* Thu Mar 02 2000 - werner@suse.de
- /usr/man -> /usr/share/man
* Tue Oct 19 1999 - werner@suse.de
- If -o is used for mmencoding the file permissions should
be the same as the input file
- Use Fopen within mmencode.c
- sendmail is stored in /usr/sbin/
- MAILCAPDIR is /etc
- showexternal: check for broken arguments
- mailto.c: don't be fooled by newlines
- Use RPM_OPT_FLAGS
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Tue Aug 24 1999 - uli@suse.de
- added -fsigned-char to CFLAGS (PPC)
* Fri Jul 17 1998 - werner@suse.de
- Add C source fixes of RedHat against temp exploits
- Make sh and shell scripts using mktemp for temp files
- Use PAGER if set
- Use -o of uudecode to avoid attacks over net
* Tue May 27 1997 - florian@suse.de
- fix shell script "audiosend"
* Sat Apr 26 1997 - florian@suse.de
- update to new version 2.7-19 from debian
* Thu Jan 02 1997 - florian@suse.de
- Bisherige Anpassungen mit der neusten debian-Version vergleichen
und zusammenbringen.
- Die extra Fonts sind momentan nicht mehr dabei,
sollten aber auch nicht fehlen...

0
ready Normal file
View File