From 78a6abbc5851b374f2e7bd27af208b1f391d2ab8 Mon Sep 17 00:00:00 2001 From: nbd Date: Mon, 12 Feb 2007 16:35:23 +0000 Subject: fix for multiple lock/unlock operations in 'lock' command (found by framer99) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6286 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/busybox/patches/340-lock_util.patch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'package/busybox/patches/340-lock_util.patch') diff --git a/package/busybox/patches/340-lock_util.patch b/package/busybox/patches/340-lock_util.patch index a92fa3e04..c1197e24e 100644 --- a/package/busybox/patches/340-lock_util.patch +++ b/package/busybox/patches/340-lock_util.patch @@ -39,7 +39,7 @@ diff -ruN busybox-1.3.1-old/miscutils/Kbuild busybox-1.3.1/miscutils/Kbuild diff -ruN busybox-1.3.1-old/miscutils/lock.c busybox-1.3.1/miscutils/lock.c --- busybox-1.3.1-old/miscutils/lock.c 1970-01-01 01:00:00.000000000 +0100 +++ busybox-1.3.1/miscutils/lock.c 2006-12-28 03:11:36.000000000 +0100 -@@ -0,0 +1,136 @@ +@@ -0,0 +1,135 @@ +/* + * Copyright (C) 2006 Felix Fietkau + * @@ -73,7 +73,6 @@ diff -ruN busybox-1.3.1-old/miscutils/lock.c busybox-1.3.1/miscutils/lock.c +static void exit_unlock(int sig) +{ + flock(fd, LOCK_UN); -+ unlink(file); + exit(0); +} + -- cgit v1.2.3