diff options
author | Mark Lumsden <lum@cvs.openbsd.org> | 2015-09-28 11:56:18 +0000 |
---|---|---|
committer | Mark Lumsden <lum@cvs.openbsd.org> | 2015-09-28 11:56:18 +0000 |
commit | 693cf6935ed8d6513a66e176e160849ab45d046f (patch) | |
tree | 14e3bdc71ebe14b43c7ddc861321aba667efc561 /usr.bin/mg | |
parent | 0dc463a53bd0316f9adb83486bfcf4c9e76c07c8 (diff) |
Make dired mode treat a double '/' in a path like fundamental mode.
Problem reported by jasper@ and ok jasper@
Diffstat (limited to 'usr.bin/mg')
-rw-r--r-- | usr.bin/mg/dired.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/dired.c b/usr.bin/mg/dired.c index e6854ca9359..4d943d49f34 100644 --- a/usr.bin/mg/dired.c +++ b/usr.bin/mg/dired.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dired.c,v 1.76 2015/09/26 21:51:58 jasper Exp $ */ +/* $OpenBSD: dired.c,v 1.77 2015/09/28 11:56:17 lum Exp $ */ /* This file is in the public domain. */ @@ -802,7 +802,7 @@ dired_(char *dname) int i; size_t len; - if ((dname = adjustname(dname, FALSE)) == NULL) { + if ((dname = adjustname(dname, TRUE)) == NULL) { dobeep(); ewprintf("Bad directory name"); return (NULL); |