Skip to content

Commit daa0308

Browse files
committed
[paths] missed leading slash for cygdrive
1 parent e01f9c5 commit daa0308

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/base/paths.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@
3333
#include <algorithm>
3434
#endif
3535

36-
#include "paths.hh"
37-
3836
#include <unistd.h>
3937

4038
#include "config.h"
4139
#include "fmt/format.h"
40+
#include "lnav_log.hh"
4241
#include "opt_util.hh"
42+
#include "paths.hh"
4343

4444
namespace lnav::paths {
4545

4646
#ifdef __CYGWIN__
4747
std::string
4848
windows_to_unix_file_path(const std::string& input)
4949
{
50-
static const auto CYGDRIVE = std::filesystem::path("cygdrive");
50+
static const auto CYGDRIVE = std::filesystem::path("/cygdrive");
5151

5252
std::string file_path;
5353
file_path.assign(input);

0 commit comments

Comments
 (0)