|
39 | 39 | * Portions Copyright (c) 1994, Regents of the University of California |
40 | 40 | * Portions taken from FreeBSD. |
41 | 41 | * |
42 | | - * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.49 2004/08/11 23:28:54 tgl Exp $ |
| 42 | + * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.50 2004/08/16 15:44:03 momjian Exp $ |
43 | 43 | * |
44 | 44 | *------------------------------------------------------------------------- |
45 | 45 | */ |
@@ -2234,7 +2234,12 @@ main(int argc, char *argv[]) |
2234 | 2234 | share_path=xmalloc(MAXPGPATH); |
2235 | 2235 | get_share_path(backend_exec,share_path); |
2236 | 2236 | } |
2237 | | - |
| 2237 | +elseif (!is_absolute_path(share_path)) |
| 2238 | +{ |
| 2239 | +fprintf(stderr,_("%s: input file location must be an absolute path\n"),progname); |
| 2240 | +exit(1); |
| 2241 | +} |
| 2242 | + |
2238 | 2243 | canonicalize_path(share_path); |
2239 | 2244 |
|
2240 | 2245 | if ((short_version=get_short_version())==NULL) |
|