]> git.zerfleddert.de Git - usb-driver/commitdiff
emulate access function, too. now even the device node /dev/windrvr6 is
authormichael <michael>
Sun, 25 Feb 2007 10:51:28 +0000 (10:51 +0000)
committermichael <michael>
Sun, 25 Feb 2007 10:51:28 +0000 (10:51 +0000)
no longer needed

usb-driver.c

index 75a1bc5255a11ef64f1c2b1423f85edef351bc43..692208ecd2f4b166135086533da3bed09ad78d2f 100644 (file)
@@ -719,4 +719,17 @@ int fclose(FILE *fp) {
        
        return (*func)(fp);
 }
        
        return (*func)(fp);
 }
+
+int access(const char *pathname, int mode) {
+       static int (*func) (const char*, int);
+
+       if (!func)
+               func = (int (*) (const char*, int)) dlsym(REAL_LIBC, "access");
+       
+       if (!strcmp(pathname, "/dev/windrvr6")) {
+               return 0;
+       } else {
+               return (*func)(pathname, mode);
+       }
+}
 #endif
 #endif
Impressum, Datenschutz