|
|
@ -2,7 +2,7 @@ |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Filename: package/.../busybox/dietlibc.patch
|
|
|
|
# Filename: package/.../busybox/dietlibc.patch
|
|
|
|
# Copyright (C) 2007 The OpenSDE Project
|
|
|
|
# Copyright (C) 2007 - 2008 The OpenSDE Project
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# More information can be found in the files COPYING and README.
|
|
|
|
# More information can be found in the files COPYING and README.
|
|
|
|
#
|
|
|
|
#
|
|
|
@ -37,3 +37,23 @@ |
|
|
|
|
|
|
|
|
|
|
|
char *pw_encrypt(const char *clear, const char *salt)
|
|
|
|
char *pw_encrypt(const char *clear, const char *salt)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
--- ./util-linux/umount.c.orig 2008-02-14 14:44:01.000000000 +0000
|
|
|
|
|
|
|
|
+++ ./util-linux/umount.c 2008-02-14 14:44:29.000000000 +0000
|
|
|
|
|
|
|
|
@@ -21,6 +21,17 @@
|
|
|
|
|
|
|
|
#define OPT_REMOUNT (1 << 4)
|
|
|
|
|
|
|
|
#define OPT_ALL (ENABLE_FEATURE_UMOUNT_ALL ? (1 << 5) : 0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+#if defined(__dietlibc__)
|
|
|
|
|
|
|
|
+/* 16.12.2006, Sampo Kellomaki (sampo@iki.fi)
|
|
|
|
|
|
|
|
+ * dietlibc-0.30 does not have implementation of getmntent_r() */
|
|
|
|
|
|
|
|
+static struct mntent *getmntent_r(FILE* stream, struct mntent* result, char* buffer, int bufsize)
|
|
|
|
|
|
|
|
+{
|
|
|
|
|
|
|
|
+ struct mntent* ment = getmntent(stream);
|
|
|
|
|
|
|
|
+ memcpy(result, ment, sizeof(struct mntent));
|
|
|
|
|
|
|
|
+ return result;
|
|
|
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
int umount_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
|
|
|
|
|
|
|
|
int umount_main(int argc, char **argv)
|
|
|
|
|
|
|
|
{
|
|
|
|