author | Alberto Bertogli
<albertito@gmail.com> 2004-04-30 13:11:26 UTC |
committer | Alberto Bertogli
<albertito@gmail.com> 2007-07-15 12:43:37 UTC |
parent | 41617337b5f7a55191b670eb76a513c513bd6005 |
libjio.c | +1 | -6 |
diff --git a/libjio.c b/libjio.c index 84a79bd..17f9eac 100644 --- a/libjio.c +++ b/libjio.c @@ -481,12 +481,7 @@ int jopen(struct jfs *fs, const char *name, int flags, int mode, int jflags) return -1; snprintf(jlockfile, PATH_MAX, "%s/%s", jdir, "lock"); - if (access(jlockfile, F_OK) != 0) { - /* file doesn't exists, create it */ - jfd = open(jlockfile, O_RDWR | O_CREAT | O_SYNC, 0600); - } else { - jfd = open(jlockfile, O_RDWR | O_SYNC, 0600); - } + jfd = open(jlockfile, O_RDWR | O_CREAT, 0600); if (jfd < 0) return -1;