Subversion Repositories SvarDOS

Rev

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

Rev 263 Rev 268
Line 1... Line 1...
1
/*
1
/*
2
 * This file is part of pkginst (SvarDOS)
2
 * This file is part of pkg (SvarDOS)
3
 * Copyright (C) 2012-2021 Mateusz Viste
3
 * Copyright (C) 2012-2021 Mateusz Viste
4
 */
4
 */
5
 
5
 
6
#include <ctype.h>     /* toupper() */
6
#include <ctype.h>     /* toupper() */
7
#include <stdio.h>
7
#include <stdio.h>
Line 13... Line 13...
13
#include "helpers.h"   /* slash2backslash(), strtolower() */
13
#include "helpers.h"   /* slash2backslash(), strtolower() */
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
 
18
#include "pkginst.h"   /* include self for control */
19
#include "pkginst.h"   /* include self for control */
19
#include "version.h"
-
 
20
 
20
 
21
 
21
 
22
/* validate a filename (8+3, no weird characters, etc). returns 0 on success,
22
/* validate a filename (8+3, no weird characters, etc). returns 0 on success,
23
 * nonzero otherwise. */
23
 * nonzero otherwise. */
24
static int validfilename(const char *fname) {
24
static int validfilename(const char *fname) {