]> Dogcows Code - chaz/tar/blobdiff - src/rmt.h
*** empty log message ***
[chaz/tar] / src / rmt.h
index 6260c0855ecf1bf904f3369e58904b25360fcda8..678e042e8d5202b92a350a16857a41a5aff20139 100644 (file)
--- a/src/rmt.h
+++ b/src/rmt.h
@@ -62,7 +62,7 @@ extern char *__rmt_path;
 extern char *index();
 #endif
 
-#define _remdev(path)  (!f_force_local && (__rmt_path=index(path, ':')))
+#define _remdev(path)  ((__rmt_path=index(path, ':')) && strncmp(__rmt_path, ":/dev/", 6)==0)
 #define _isrmt(fd)             ((fd) >= __REM_BIAS)
 
 #define rmtopen(path,oflag,mode) (_remdev(path) ? __rmt_open(path, oflag, mode, __REM_BIAS) : open(path, oflag, mode))
This page took 0.020059 seconds and 4 git commands to generate.