]> diplodocus.org Git - nmh/blobdiff - uip/slocal.c
Add code for (and convert world to) the new world lock order.
[nmh] / uip / slocal.c
index f570aaaff2a0082373283e8c4b84eeb76f16f132..ebc2c26b9854ca3abf2e36b1eafce51abb8ef2d2 100644 (file)
@@ -1453,7 +1453,7 @@ suppress_duplicates (int fd, char *file)
                 * This will fail if your Maildelivery file doesn't
                 * exist.
                 */
-               if ((lockfd = lkopen(file, O_RDWR, 0)) == -1) {
+               if ((lockfd = lkopendata(file, O_RDWR, 0)) == -1) {
                    advise (file, "unable to perform file locking on");
                    free (cp);
                    fclose (in);
@@ -1474,7 +1474,7 @@ suppress_duplicates (int fd, char *file)
                }
 
                dbm_close (db);
-               lkclose(lockfd, file);
+               lkclosedata(lockfd, file);
                free (cp);
                fclose (in);
                return result;