aboutsummaryrefslogtreecommitdiffstats
path: root/package/busybox/patches/140-unlink-passwd.patch
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2006-12-30 19:35:58 +0000
committerNicolas Thill <nico@openwrt.org>2006-12-30 19:35:58 +0000
commita64b16df644f81e98ac5f66db26ea1cb037b3240 (patch)
tree2c471d0a952c48a01875824e4774b8e369fcb144 /package/busybox/patches/140-unlink-passwd.patch
parentc8fea8d38011ede78e3f86d774886e32272973bb (diff)
downloadupstream-a64b16df644f81e98ac5f66db26ea1cb037b3240.tar.gz
upstream-a64b16df644f81e98ac5f66db26ea1cb037b3240.tar.bz2
upstream-a64b16df644f81e98ac5f66db26ea1cb037b3240.zip
update busybox to v1.3.1, i was too lazy to update patch 320, feel free to do so
SVN-Revision: 5941
Diffstat (limited to 'package/busybox/patches/140-unlink-passwd.patch')
-rw-r--r--package/busybox/patches/140-unlink-passwd.patch32
1 files changed, 0 insertions, 32 deletions
diff --git a/package/busybox/patches/140-unlink-passwd.patch b/package/busybox/patches/140-unlink-passwd.patch
deleted file mode 100644
index 07b6767e6e..0000000000
--- a/package/busybox/patches/140-unlink-passwd.patch
+++ /dev/null
@@ -1,32 +0,0 @@
---- busybox-1.00.old/loginutils/passwd.c 2004-09-15 04:39:09.000000000 +0200
-+++ busybox-1.00/loginutils/passwd.c 2005-03-23 15:31:07.000000000 +0100
-@@ -54,11 +54,12 @@
- snprintf(filename, sizeof filename, "%s", bb_path_passwd_file);
- }
-
-- if (((fp = fopen(filename, "r+")) == 0) || (fstat(fileno(fp), &sb))) {
-+ if (((fp = fopen(filename, "r")) == 0) || (fstat(fileno(fp), &sb))) {
- /* return 0; */
- return 1;
- }
-
-+#if 0
- /* Lock the password file before updating */
- lock.l_type = F_WRLCK;
- lock.l_whence = SEEK_SET;
-@@ -69,6 +70,7 @@
- return 1;
- }
- lock.l_type = F_UNLCK;
-+#endif
-
- snprintf(buf, sizeof buf, "%s-", filename);
- if (create_backup(buf, fp)) {
-@@ -119,6 +121,7 @@
- fclose(fp);
- return 1;
- }
-+ unlink(filename);
- if (rename(buf, filename) < 0) {
- fcntl(fileno(fp), F_SETLK, &lock);
- fclose(fp);