diff options
author | 2015-09-28 11:56:17 +0000 | |
---|---|---|
committer | 2015-09-28 11:56:17 +0000 | |
commit | bbb28a0d629c2e83f56fd7c3a275d12ec0213a45 (patch) | |
tree | be59893075f5c284d23e50b1d6f263b46ee43e3e | |
parent | remove duplicate entry caused by the "Quanta Transcode" device (diff) | |
download | wireguard-openbsd-bbb28a0d629c2e83f56fd7c3a275d12ec0213a45.tar.xz wireguard-openbsd-bbb28a0d629c2e83f56fd7c3a275d12ec0213a45.zip |
Make dired mode treat a double '/' in a path like fundamental mode.
Problem reported by jasper@ and ok jasper@
-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); |