diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1996-06-12 07:58:42 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1996-06-12 07:58:42 +0000 |
commit | 9f6ba003da70a0b1f4eeb3f1fedb36339fb6da8e (patch) | |
tree | 655a4dcf234644058d251863fe71a3f0f8f9e802 /bin/mt | |
parent | d43c0a46c10cc6eabd16994c732db55a6e624fa7 (diff) |
ok, so I didn't think of it last night
Diffstat (limited to 'bin/mt')
-rw-r--r-- | bin/mt/mt.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/mt/mt.c b/bin/mt/mt.c index fbc282e5fed..0e4e0768897 100644 --- a/bin/mt/mt.c +++ b/bin/mt/mt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mt.c,v 1.6 1996/06/11 11:20:22 downsj Exp $ */ +/* $OpenBSD: mt.c,v 1.7 1996/06/12 07:58:41 downsj Exp $ */ /* $NetBSD: mt.c,v 1.14.2.1 1996/05/27 15:12:11 mrg Exp $ */ /* @@ -221,7 +221,6 @@ opendev(path, flags, mode, realpath) { int fd; static char namebuf[256]; - const char *parts = "abcdefgh"; /* enough for now */ *realpath = path; @@ -230,7 +229,7 @@ opendev(path, flags, mode, realpath) if (path[0] != '/') { /* first try raw partition (for removable drives) */ (void)snprintf(namebuf, sizeof(namebuf), "%sr%s%c", - _PATH_DEV, path, parts[RAW_PART]); + _PATH_DEV, path, 'a' + RAW_PART); fd = open(namebuf, flags, mode); if ((fd < 0) && (errno == ENOENT)) { |