559 |
die("mkid not found."); |
die("mkid not found."); |
560 |
} |
} |
561 |
|
|
562 |
|
/* |
563 |
|
* If the file_list is given, it must be readable file. |
564 |
|
*/ |
565 |
|
if (file_list) { |
566 |
|
if (test("d", file_list)) |
567 |
|
die("'%s' is a directory.", file_list); |
568 |
|
else if (!test("f", file_list)) |
569 |
|
die("'%s' not found.", file_list); |
570 |
|
else if (!test("r", file_list)) |
571 |
|
die("'%s' is not readable.", file_list); |
572 |
|
} |
573 |
if (!getcwd(cwd, MAXPATHLEN)) |
if (!getcwd(cwd, MAXPATHLEN)) |
574 |
die("cannot get current directory."); |
die("cannot get current directory."); |
575 |
canonpath(cwd); |
canonpath(cwd); |