Subversion Repositories SvarDOS

Rev

Rev 727 | Rev 1599 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 727 Rev 995
Line 8... Line 8...
8
#include <stdlib.h>    /* system() */
8
#include <stdlib.h>    /* system() */
9
#include <string.h>    /* strcpy() */
9
#include <string.h>    /* strcpy() */
10
#include <unistd.h>    /* read() */
10
#include <unistd.h>    /* read() */
11
#include <sys/types.h> /* struct utimbuf */
11
#include <sys/types.h> /* struct utimbuf */
12
 
12
 
13
#include "helpers.h"   /* slash2backslash(), strtolower() */
13
#include "helpers.h"   /* slash2backslash() */
14
#include "fileexst.h"
14
#include "fileexst.h"
15
#include "kprintf.h"
15
#include "kprintf.h"
16
#include "libunzip.h"  /* zip_listfiles()... */
16
#include "libunzip.h"  /* zip_listfiles()... */
17
#include "showinst.h"  /* pkg_loadflist() */
17
#include "showinst.h"  /* pkg_loadflist() */
18
#include "svarlang.lib\svarlang.h"
18
#include "svarlang.lib\svarlang.h"
Line 132... Line 132...
132
  appinfopresence = 0;
132
  appinfopresence = 0;
133
  prevzipnode = NULL;
133
  prevzipnode = NULL;
134
  for (curzipnode = ziplinkedlist; curzipnode != NULL;) {
134
  for (curzipnode = ziplinkedlist; curzipnode != NULL;) {
135
    /* change all slashes to backslashes, and switch into all-lowercase */
135
    /* change all slashes to backslashes, and switch into all-lowercase */
136
    slash2backslash(curzipnode->filename);
136
    slash2backslash(curzipnode->filename);
137
    strtolower(curzipnode->filename);
137
    strlwr(curzipnode->filename);
138
    /* remove 'directory' ZIP entries to avoid false alerts about directory already existing */
138
    /* remove 'directory' ZIP entries to avoid false alerts about directory already existing */
139
    if ((curzipnode->flags & ZIP_FLAG_ISADIR) != 0) {
139
    if ((curzipnode->flags & ZIP_FLAG_ISADIR) != 0) {
140
      curzipnode->filename[0] = 0; /* mark it "empty", will be removed in a short moment */
140
      curzipnode->filename[0] = 0; /* mark it "empty", will be removed in a short moment */
141
    }
141
    }
142
    /* is it a "link file"? skip it - link files are no longer supported */
142
    /* is it a "link file"? skip it - link files are no longer supported */