projects
/
openwrt
/
staging
/
nbd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d33ced
)
fix for multiple lock/unlock operations in 'lock' command (found by framer99)
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 12 Feb 2007 16:35:23 +0000
(16:35 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 12 Feb 2007 16:35:23 +0000
(16:35 +0000)
SVN-Revision: 6286
package/busybox/patches/340-lock_util.patch
patch
|
blob
|
history
diff --git
a/package/busybox/patches/340-lock_util.patch
b/package/busybox/patches/340-lock_util.patch
index a92fa3e047df79ab03768b8f80484aa496ceee43..c1197e24e14ef6287226b49080508a5231223eb5 100644
(file)
--- 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,13
6
@@
+@@ -0,0 +1,13
5
@@
+/*
+ * 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);
+}
+