15 if (
stat(gisdbase, &s) != 0) {
16 fprintf(stderr,
"\n** %s not found **\n", gisdbase);
19 if (!(s.st_mode & S_IFDIR)) {
20 fprintf(stderr,
"\n** %s is not a directory **\n", gisdbase);
25 if (access(gisdbase, 2) == 0)
28 fprintf(stderr,
"\nNote\n");
30 " You don't have permission under %s to create a new location\n",
33 if ((pwd = getpwuid(s.st_uid)))
34 fprintf(stderr,
" See user %s about creating location %s\n",
35 pwd->pw_name, location);
int can_make_location(char *gisdbase, char *location)