diff options
Diffstat (limited to 'debianutils/which.c')
-rw-r--r-- | debianutils/which.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/debianutils/which.c b/debianutils/which.c index 590d50683..1f8c1a538 100644 --- a/debianutils/which.c +++ b/debianutils/which.c | |||
@@ -70,8 +70,7 @@ int which_main(int argc UNUSED_PARAM, char **argv) | |||
70 | #if !ENABLE_PLATFORM_MINGW32 | 70 | #if !ENABLE_PLATFORM_MINGW32 |
71 | if (strchr(*argv, '/')) { | 71 | if (strchr(*argv, '/')) { |
72 | #else | 72 | #else |
73 | if (strchr(*argv, '/') || strchr(*argv, '\\') || | 73 | if (has_path(*argv)) { |
74 | has_dos_drive_prefix(*argv)) { | ||
75 | if ((p=auto_win32_extension(*argv)) != NULL) { | 74 | if ((p=auto_win32_extension(*argv)) != NULL) { |
76 | missing = 0; | 75 | missing = 0; |
77 | puts(bs_to_slash(p)); | 76 | puts(bs_to_slash(p)); |