packages: udev/udev-uClibc.patch - updated to 168
baggins
baggins at pld-linux.org
Tue Apr 26 00:05:58 CEST 2011
Author: baggins Date: Mon Apr 25 22:05:58 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- updated to 168
---- Files affected:
packages/udev:
udev-uClibc.patch (1.2 -> 1.3)
---- Diffs:
================================================================
Index: packages/udev/udev-uClibc.patch
diff -u packages/udev/udev-uClibc.patch:1.2 packages/udev/udev-uClibc.patch:1.3
--- packages/udev/udev-uClibc.patch:1.2 Tue Apr 20 21:35:30 2010
+++ packages/udev/udev-uClibc.patch Tue Apr 26 00:05:53 2011
@@ -16,27 +16,26 @@
diff -ur udev-150/udev/udevadm-info.c udev-150-uclibc/udev/udevadm-info.c
--- udev-150/udev/udevadm-info.c 2009-12-24 20:40:34.000000000 +0100
+++ udev-150-uclibc/udev/udevadm-info.c 2010-01-19 17:47:00.000000000 +0100
-@@ -43,6 +43,9 @@
- struct stat statbuf;
- const char *value;
- size_t len;
+@@ -203,6 +203,9 @@
+ static void cleanup_dir(DIR *dir, mode_t mask, int depth)
+ {
+ struct dirent *dent;
+#ifdef __UCLIBC__
-+ char filename[UTIL_PATH_SIZE];
++ char filename[UTIL_PATH_SIZE];
+#endif
- if (dent->d_name[0] == '.')
- continue;
-@@ -52,7 +55,12 @@
- if (strcmp(dent->d_name, "dev") == 0)
- continue;
+ if (depth <= 0)
+ return;
+@@ -212,7 +215,12 @@
+ if (dent->d_name[0] == '.')
+ continue;
+#ifdef __UCLIBC__
-+ util_strscpyl(filename, sizeof(filename), udev_device_get_syspath(device), "/", dent->d_name, NULL);
-+ if (lstat(filename, &statbuf) != 0)
++ util_strscpyl(filename, sizeof(filename), udev_device_get_syspath(device), "/", dent->d_name, NULL);
++ if (lstat(filename, &statbuf) != 0)
+#else
- if (fstatat(dirfd(dir), dent->d_name, &statbuf, AT_SYMLINK_NOFOLLOW) != 0)
+ if (fstatat(dirfd(dir), dent->d_name, &stats, AT_SYMLINK_NOFOLLOW) != 0)
+#endif
- continue;
- if (S_ISLNK(statbuf.st_mode))
- continue;
-
+ continue;
+ if ((stats.st_mode & mask) != 0)
+ continue;
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/udev/udev-uClibc.patch?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list