|
@@ -689,11 +689,12 @@ nochange: |
|
|
strcmp(path, ".") == 0 || |
|
|
strcmp(path, ".") == 0 || |
|
|
strchr(path, '/') == NULL) |
|
|
strchr(path, '/') == NULL) |
|
|
goto nochange; |
|
|
goto nochange; |
|
|
if (canopendir(path) == 0) { |
|
|
|
|
|
|
|
|
dir = xdirname(path); |
|
|
|
|
|
if (canopendir(dir) == 0) { |
|
|
|
|
|
free(dir); |
|
|
printwarn(); |
|
|
printwarn(); |
|
|
goto nochange; |
|
|
goto nochange; |
|
|
} |
|
|
} |
|
|
dir = xdirname(path); |
|
|
|
|
|
/* Save history */ |
|
|
/* Save history */ |
|
|
oldpath = path; |
|
|
oldpath = path; |
|
|
path = dir; |
|
|
path = dir; |
|
|