From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- package/util-linux/patches/patch-mount_mntent_c | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 package/util-linux/patches/patch-mount_mntent_c (limited to 'package/util-linux/patches/patch-mount_mntent_c') diff --git a/package/util-linux/patches/patch-mount_mntent_c b/package/util-linux/patches/patch-mount_mntent_c new file mode 100644 index 000000000..7445e1bf4 --- /dev/null +++ b/package/util-linux/patches/patch-mount_mntent_c @@ -0,0 +1,30 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- util-linux-2.12r.orig/mount/mntent.c 2004-10-13 22:57:34.000000000 +0200 ++++ util-linux-2.12r/mount/mntent.c 2008-10-16 12:00:45.000000000 +0200 +@@ -6,7 +6,7 @@ + */ + + #include +-#include /* for index */ ++#include /* for strchr */ + #include /* for isdigit */ + #include /* for umask */ + #include "mntent.h" +@@ -158,7 +158,7 @@ my_getmntent (mntFILE *mfp) { + return NULL; + + mfp->mntent_lineno++; +- s = index (buf, '\n'); ++ s = strchr (buf, '\n'); + if (s == NULL) { + /* Missing final newline? Otherwise extremely */ + /* long line - assume file was corrupted */ +@@ -166,7 +166,7 @@ my_getmntent (mntFILE *mfp) { + fprintf(stderr, _("[mntent]: warning: no final " + "newline at the end of %s\n"), + mfp->mntent_file); +- s = index (buf, 0); ++ s = strchr (buf, 0); + } else { + mfp->mntent_errs = 1; + goto err; -- cgit v1.2.3