summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2011-January/001895.html
blob: 2063675286232b0ae044ed445e88296d541da051 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-sysadm] [263] PNG is a binary file
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B263%5D%20PNG%20is%20a%20binary%20file&In-Reply-To=%3C1294684948.30856.272.camel%40akroma.ephaone.org%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="001894.html">
   <LINK REL="Next"  HREF="001883.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-sysadm] [263] PNG is a binary file</H1>
    <B>Michael Scherer</B> 
    <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B263%5D%20PNG%20is%20a%20binary%20file&In-Reply-To=%3C1294684948.30856.272.camel%40akroma.ephaone.org%3E"
       TITLE="[Mageia-sysadm] [263] PNG is a binary file">misc at zarb.org
       </A><BR>
    <I>Mon Jan 10 19:42:28 CET 2011</I>
    <P><UL>
        <LI>Previous message: <A HREF="001894.html">[Mageia-sysadm] [263] PNG is a binary file
</A></li>
        <LI>Next message: <A HREF="001883.html">[Mageia-sysadm] [762] fix scenari used in single mail list so now, sysadmin mls should work
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#1895">[ date ]</a>
              <a href="thread.html#1895">[ thread ]</a>
              <a href="subject.html#1895">[ subject ]</a>
              <a href="author.html#1895">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Le lundi 10 janvier 2011 &#224; 20:22 +0200, Thomas Backlund a &#233;crit :
&gt;<i> Maarten Vanraes skrev 10.1.2011 20:16:
</I>&gt;<i> &gt; Op maandag 10 januari 2011 13:41:12 schreef <A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">root at mageia.org</A>:
</I>&gt;<i> &gt;&gt; Revision: 263
</I>&gt;<i> &gt;&gt; Author:   pterjan
</I>&gt;<i> &gt;&gt; Date:     2011-01-10 13:41:12 +0100 (Mon, 10 Jan 2011)
</I>&gt;<i> &gt;&gt; Log Message:
</I>&gt;<i> &gt;&gt; -----------
</I>&gt;<i> &gt;&gt; PNG is a binary file
</I>&gt;<i> &gt;&gt;
</I>&gt;<i> &gt;&gt; Modified Paths:
</I>&gt;<i> &gt;&gt; --------------
</I>&gt;<i> &gt;&gt;      build_system/mgarepo/trunk/RepSys/binrepo.py
</I>&gt;<i> &gt;&gt;
</I>&gt;<i> &gt;&gt; Modified: build_system/mgarepo/trunk/RepSys/binrepo.py
</I>&gt;<i> &gt;&gt; ===================================================================
</I>&gt;<i> &gt;&gt; --- build_system/mgarepo/trunk/RepSys/binrepo.py	2011-01-10 12:12:58 UTC
</I>&gt;<i> &gt;&gt; (rev 262) +++ build_system/mgarepo/trunk/RepSys/binrepo.py	2011-01-10
</I>&gt;<i> &gt;&gt; 12:41:12 UTC (rev 263) @@ -106,7 +106,7 @@
</I>&gt;<i> &gt;&gt;   def is_binary(path):
</I>&gt;<i> &gt;&gt;       raw = config.get(&quot;binrepo&quot;, &quot;upload-match&quot;,
</I>&gt;<i> &gt;&gt;               &quot;\.(7z|Z|bin|bz2|cpio|db|deb|egg|gem|gz|jar|jisp|lzma|&quot;\
</I>&gt;<i> &gt;&gt; -               &quot;pdf|pgn\\.gz|pk3|rpm|rpm|run|sdz|smzip|tar|tbz|&quot;\
</I>&gt;<i> &gt;&gt; +               &quot;pdf|pgn\\.gz|pk3|png|rpm|run|sdz|smzip|tar|tbz|&quot;\
</I>&gt;<i> &gt;&gt;                  &quot;tbz2|tgz|ttf|uqm|wad|war|xar|xpi|xz|zip|wav|mp3|ogg|&quot;\
</I>&gt;<i> &gt;&gt;   	       &quot;jpg|png|gif|avi|mpg|mpeg|rar)$&quot;)
</I>&gt;<i> &gt;&gt;       maxsize = config.getint(&quot;binrepo&quot;, &quot;upload-match-size&quot;, &quot;1048576&quot;) #
</I>&gt;<i> &gt;&gt; 1MiB
</I>&gt;<i> &gt;
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; why is png here twice? (once next to jpg and once next to rpm)
</I>&gt;<i> 
</I>&gt;<i> mistake.
</I>&gt;<i> 
</I>&gt;<i> that list sohuld be kept sorted.
</I>

Or use python-magic to get the mime-types and ban everything that do not
match text/*

-- 
Michael Scherer

</PRE>







<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="001894.html">[Mageia-sysadm] [263] PNG is a binary file
</A></li>
	<LI>Next message: <A HREF="001883.html">[Mageia-sysadm] [762] fix scenari used in single mail list so now, sysadmin mls should work
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#1895">[ date ]</a>
              <a href="thread.html#1895">[ thread ]</a>
              <a href="subject.html#1895">[ subject ]</a>
              <a href="author.html#1895">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-sysadm">More information about the Mageia-sysadm
mailing list</a><br>
</body></html>