Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 36410
Collapse All | Expand All

(-)index.c (-7 / +27 lines)
Lines 58-68 Link Here
58
         continue;
58
         continue;
59
59
60
      bzero(newname, 512);
60
      bzero(newname, 512);
61
      strncat(newname,direntp->d_name,4);
61
      if(strncmp(df,"e",1) == 0) {
62
      strncpy(month,direntp->d_name+4,3);
62
         strncpy(newname,direntp->d_name+5,4);
63
      conv_month(month);
63
         strncpy(month,direntp->d_name+2,3);
64
      strcat(newname,month);
64
         conv_month(month);
65
      strncat(newname,direntp->d_name+7,2);
65
         strncat(newname,month,2);
66
         strncat(newname,direntp->d_name,2);
67
         strncat(newname,direntp->d_name+15,4);
68
         strncpy(month,direntp->d_name+12,3);
69
         conv_month(month);
70
         strncat(newname,month,2);
71
         strncat(newname,direntp->d_name+10,2);
72
      } else if(strncmp(df,"u",1) == 0) {
73
         strncpy(newname,direntp->d_name,4);
74
         strncpy(month,direntp->d_name+4,3);
75
         conv_month(month);
76
         strncat(newname,month,2);
77
         strncat(newname,direntp->d_name+7,2);
78
         strncat(newname,direntp->d_name+10,4);
79
         strncpy(month,direntp->d_name+14,3);
80
         conv_month(month);
81
         strncat(newname,month,2);
82
         strncat(newname,direntp->d_name+17,2);
83
      }
66
84
67
      obtdate(dirname,direntp->d_name,data);
85
      obtdate(dirname,direntp->d_name,data);
68
      obtuser(dirname,direntp->d_name,tuser);
86
      obtuser(dirname,direntp->d_name,tuser);
Lines 72-77 Link Here
72
      getword(mon,html,' ');
90
      getword(mon,html,' ');
73
      getword(mon,html,' ');
91
      getword(mon,html,' ');
74
      getword(day,html,' ');
92
      getword(day,html,' ');
93
      if(strcmp(day,"") == 0)
94
         getword(day,html,' ');
75
      getword(hour,html,' ');
95
      getword(hour,html,' ');
76
      getword(year,html,' ');
96
      getword(year,html,' ');
77
      getword(year,html,' ');
97
      getword(year,html,' ');
Lines 91-99 Link Here
91
   (void)rewinddir( dirp );
111
   (void)rewinddir( dirp );
92
112
93
   if(strcmp(IndexSortOrder,"A") == 0)
113
   if(strcmp(IndexSortOrder,"A") == 0)
94
      sprintf(html,"sort -t';' -k 7,7 %s -o %s", wdir_tmp, wdir_tmp2);
114
      sprintf(html,"sort -n -t';' -k 7,7 %s -o %s", wdir_tmp, wdir_tmp2);
95
   else
115
   else
96
      sprintf(html,"sort -t';' -r -k 7,7 %s -o %s", wdir_tmp, wdir_tmp2);
116
      sprintf(html,"sort -n -t';' -r -k 7,7 %s -o %s", wdir_tmp, wdir_tmp2);
97
117
98
   system(html);
118
   system(html);
99
119

Return to bug 36410