master
Daniel Kolesa 2015-09-14 01:31:50 +01:00
parent 1600b3860d
commit 79914d4e76
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ int main(int argc, char **argv) {
while ((ac = getopt(argc, argv, "C:f:hj:")) >= 0) {
switch (ac) {
case 'C':
if (chdir(optarg) < 0)
if (!ostd::directory_change(optarg))
return os.error(1, "failed changing directory: %s", optarg);
break;
case 'f':