Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix for 64bit OS #2

Closed
wants to merge 2 commits into from

2 participants

@kron4eg

No description provided.

@bogolt

for some reason line of code
init_time = time(NULL);
seemed to create new variable instance instead of already existing global one declared above. On 32 bits - int and time_t was the same size, so it was working fine.
Making init_time static and moving it's initialization to the place it is declared fix the problem on 64bit os.

@kron4eg kron4eg closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 2, 2011
  1. @kron4eg

    fixed bug on 64bit OSes

    kron4eg authored
Commits on Sep 13, 2011
  1. @kron4eg
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 8 deletions.
  1. +8 −8 ext/fusefs_lib.c
View
16 ext/fusefs_lib.c
@@ -27,7 +27,7 @@
/* init_time
*
* All files will have a modified time equal to this. */
-time_t init_time;
+static time_t init_time;
/* opened_file
*
@@ -585,13 +585,13 @@ rf_open(const char *path, struct fuse_file_info *fi) {
debug("rf_open(%s)\n", path);
/* Make sure it's not already open. */
- debug(" Checking if it's already open ...");
- if (file_openedP(path)) {
- debug(" yes.\n");
- return -EACCES;
- }
- debug(" no.\n");
-
+ /* debug(" Checking if it's already open ..."); */
+ /* if (file_openedP(path)) { */
+ /* debug(" yes.\n"); */
+ /* return -EACCES; */
+ /* } */
+ /* debug(" no.\n"); */
+
debug("Checking if an editor file is requested...");
switch (editor_fileP(path)) {
case 2:
Something went wrong with that request. Please try again.