Subversion Repositories SvarDOS

Rev

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

Rev 614 Rev 1634
Line 1... Line 1...
1
/*
1
/*
2
 * This file is part of pkg (SvarDOS).
2
 * This file is part of pkg (SvarDOS).
3
 * Copyright (C) 2012-2021 Mateusz Viste
3
 * Copyright (C) 2012-2024 Mateusz Viste
4
 */
4
 */
5
 
5
 
6
#include <stdio.h>  /* printf(), fclose(), fopen()... */
6
#include <stdio.h>  /* printf(), fclose(), fopen()... */
7
#include <string.h> /* strcasecmp() */
7
#include <string.h> /* strcasecmp() */
8
#include <stdlib.h> /* malloc(), free() */
8
#include <stdlib.h> /* malloc(), free() */
Line 56... Line 56...
56
      puts("");
56
      puts("");
57
      return(-1);
57
      return(-1);
58
    }
58
    }
59
    /* check for forbidden names */
59
    /* check for forbidden names */
60
    if ((strcasecmp(dirlist->name, "appinfo") == 0) ||
60
    if ((strcasecmp(dirlist->name, "appinfo") == 0) ||
61
        (strcasecmp(dirlist->name, "bin") == 0) ||
-
 
62
        (strcasecmp(dirlist->name, "doc") == 0) ||
61
        (strcasecmp(dirlist->name, "doc") == 0) ||
63
        (strcasecmp(dirlist->name, "help") == 0) ||
62
        (strcasecmp(dirlist->name, "help") == 0) ||
64
        (strcasecmp(dirlist->name, "nls") == 0) ||
63
        (strcasecmp(dirlist->name, "nls") == 0) ||
65
        (strcasecmp(dirlist->name, "packages") == 0)) {
64
        (strcasecmp(dirlist->name, "packages") == 0)) {
66
      kitten_printf(7, 16, dirlist->name); /* "ERROR: custom dir '%s' is a reserved name!" */
65
      kitten_printf(7, 16, dirlist->name); /* "ERROR: custom dir '%s' is a reserved name!" */