]> Dogcows Code - chaz/tar/blobdiff - src/rmt.h
*** empty log message ***
[chaz/tar] / src / rmt.h
index c97e3b25a943a398fad8a1a66caa17101ee7c89e..678e042e8d5202b92a350a16857a41a5aff20139 100644 (file)
--- a/src/rmt.h
+++ b/src/rmt.h
@@ -23,7 +23,7 @@
 #ifdef __MSDOS__
 #include <io.h>
 #else /* !__MSDOS__ */
-extern off_t lseek ();
+extern off_t lseek();
 #endif /* __MSDOS__ */
 #endif /* _POSIX_VERSION */
 
@@ -59,10 +59,10 @@ extern char *__rmt_path;
 #include <string.h>
 #define index strchr
 #else
-extern char *index ();
+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))
@@ -91,6 +91,6 @@ int __rmt_open ();
 int __rmt_close ();
 int __rmt_read ();
 int __rmt_write ();
-long __rmt_lseek ();
+long __rmt_lseek();
 int __rmt_ioctl ();
 #endif /* !NO_REMOTE */
This page took 0.021743 seconds and 4 git commands to generate.