]> Dogcows Code - chaz/tar/commitdiff
(_remdev): Look for / anywhere in Path.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 13 Jan 2001 05:59:29 +0000 (05:59 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 13 Jan 2001 05:59:29 +0000 (05:59 +0000)
src/rmt.h

index a01a630b6bfd9d58ae33e5aee0a9fb1031155afd..b85104596138f92f1da2bacf648433b43fa9d2b2 100644 (file)
--- 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)
This page took 0.023324 seconds and 4 git commands to generate.