From a19097f3e6bbfbbd56a92d3e1a66ebb9149c91fa Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 13 Jan 2001 05:59:29 +0000 Subject: [PATCH] (_remdev): Look for / anywhere in Path. --- src/rmt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rmt.h b/src/rmt.h index a01a630..b851045 100644 --- a/src/rmt.h +++ b/src/rmt.h @@ -1,5 +1,5 @@ /* Definitions for communicating with a remote tape drive. - Copyright (C) 1988, 1992, 1996, 1997 Free Software Foundation, Inc. + Copyright 1988, 1992, 1996, 1997, 2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -32,7 +32,7 @@ int rmt_ioctl__ PARAMS ((int, int, char *)); #define _remdev(Path) \ (!force_local_option && (rmt_path__ = strchr (Path, ':')) \ - && rmt_path__ > (Path) && rmt_path__[-1] != '/') + && rmt_path__ > (Path) && ! memchr (Path, rmt_path__ - (Path), '/')) #define _isrmt(Fd) \ ((Fd) >= __REM_BIAS) -- 2.45.2