diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/sysdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 6d24b7fa2b1..dd0062b6f04 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -274,8 +274,8 @@ get_current_dir_name_or_unreachable (void) | |||
| 274 | sometimes a nicer name, and using it may avoid a fatal error if a | 274 | sometimes a nicer name, and using it may avoid a fatal error if a |
| 275 | parent directory is searchable but not readable. */ | 275 | parent directory is searchable but not readable. */ |
| 276 | if (pwd | 276 | if (pwd |
| 277 | && (IS_DIRECTORY_SEP (*pwd) || (*pwd && IS_DEVICE_SEP (pwd[1]))) | ||
| 278 | && (pwdlen = strlen (pwd)) < bufsize_max | 277 | && (pwdlen = strlen (pwd)) < bufsize_max |
| 278 | && IS_DIRECTORY_SEP (pwd[pwdlen && IS_DEVICE_SEP (pwd[1]) ? 2 : 0]) | ||
| 279 | && stat (pwd, &pwdstat) == 0 | 279 | && stat (pwd, &pwdstat) == 0 |
| 280 | && stat (".", &dotstat) == 0 | 280 | && stat (".", &dotstat) == 0 |
| 281 | && dotstat.st_ino == pwdstat.st_ino | 281 | && dotstat.st_ino == pwdstat.st_ino |