diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-02-12 16:35:23 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-02-12 16:35:23 +0000 |
commit | caa2254e97f60075b09c306119c170cd4bb1faca (patch) | |
tree | 9e9daabc063074b960bcf770d51969fd61fa8a4c /package/busybox | |
parent | 3d33ced049ebe65ecfc0001c6496576898023916 (diff) | |
download | upstream-caa2254e97f60075b09c306119c170cd4bb1faca.tar.gz upstream-caa2254e97f60075b09c306119c170cd4bb1faca.tar.bz2 upstream-caa2254e97f60075b09c306119c170cd4bb1faca.zip |
fix for multiple lock/unlock operations in 'lock' command (found by framer99)
SVN-Revision: 6286
Diffstat (limited to 'package/busybox')
-rw-r--r-- | package/busybox/patches/340-lock_util.patch | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/package/busybox/patches/340-lock_util.patch b/package/busybox/patches/340-lock_util.patch index a92fa3e047..c1197e24e1 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 <nbd@openwrt.org> + * @@ -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); +} + |