unbreak sort; from Marcello Morsello <morsello@gmail.com> via Douglas Santos

This commit is contained in:
pvalchev 2005-11-13 17:32:26 +00:00
parent 178d9ae305
commit 990290a561
2 changed files with 21 additions and 1 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.2 2005/10/08 08:13:21 pvalchev Exp $
# $OpenBSD: Makefile,v 1.3 2005/11/13 17:32:26 pvalchev Exp $
COMMENT= "Squid Analysis Report Generator"
DISTNAME= sarg-2.0.9
PKGNAME= ${DISTNAME}p0
CATEGORIES= www
HOMEPAGE= http://sarg.sourceforge.net/

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-index_c,v 1.1 2005/11/13 17:32:27 pvalchev Exp $
--- index.c.orig Thu Aug 4 19:32:44 2005
+++ index.c Fri Nov 4 17:06:04 2005
@@ -113,11 +113,11 @@ void geraindex()
(void)closedir( dirp );
if(strcmp(IndexSortOrder,"A") == 0)
-// sprintf(html,"sort -t';' -k 7,7 %s -o %s", wdir_tmp, wdir_tmp2);
- sprintf(html,"sort -t';' +6.5n +6.2M +6.0n '%s' -o '%s'", wdir_tmp, wdir_tmp2);
+ sprintf(html,"sort -t';' -k 7,7 %s -o %s", wdir_tmp, wdir_tmp2);
+// sprintf(html,"sort -t';' +6.5n +6.2M +6.0n '%s' -o '%s'", wdir_tmp, wdir_tmp2);
else
-// sprintf(html,"sort -t';' -r -k 7,7 %s -o %s", wdir_tmp, wdir_tmp2);
- sprintf(html,"sort -t';' +6.5nr +6.2Mr +6.0nr '%s' -o '%s'", wdir_tmp, wdir_tmp2);
+ sprintf(html,"sort -t';' -r -k 7,7 %s -o %s", wdir_tmp, wdir_tmp2);
+// sprintf(html,"sort -t';' +6.5nr +6.2Mr +6.0nr '%s' -o '%s'", wdir_tmp, wdir_tmp2);
system(html);