diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-01-17 07:53:16 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-01-17 08:18:04 +0000 |
commit | b234f05497e409034c928db2bbb7486e808d09e5 (patch) | |
tree | 7870a0b601ae6849c8b394ac368c24ad4218cfc8 /main/udev | |
parent | 351f68d924daa25d75d6ac2f7140c52f20162ba9 (diff) | |
download | aports-b234f05497e409034c928db2bbb7486e808d09e5.tar.bz2 aports-b234f05497e409034c928db2bbb7486e808d09e5.tar.xz |
main/udev: fix udev groups too
Diffstat (limited to 'main/udev')
-rw-r--r-- | main/udev/APKBUILD | 8 | ||||
-rw-r--r-- | main/udev/get_pw_r_size.patch | 29 |
2 files changed, 28 insertions, 9 deletions
diff --git a/main/udev/APKBUILD b/main/udev/APKBUILD index a9f0b40212..a0b7deed61 100644 --- a/main/udev/APKBUILD +++ b/main/udev/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=udev pkgver=175 -pkgrel=7 +pkgrel=8 pkgdesc="The userspace dev tools (udev)" url="http://www.kernel.org/pub/linux/utils/kernel/hotplug/" arch="all" @@ -87,19 +87,19 @@ libgudev() { } md5sums="2fc9c1efcbde98e3d73ffee7a77aea47 udev-175.tar.bz2 -41e0d72c64f01735e693be79d11c7e3f get_pw_r_size.patch +d1a116770ca52765f2521bb27c1a093a get_pw_r_size.patch c9de7581099cdfdcd105666cd98a0f0a write_root_link_rule bfc97ba47f6db2b6ae458a65c0b396d5 udev-mount.initd e99c87e62e7cb5acc4c55bf065944a11 udev-postmount.initd c11fb3517a567db9994d5f9dbc88ecae udev.initd" sha256sums="4c7937fe5a1521316ea571188745b9a00a9fdf314228cffc53a7ba9e5968b7ab udev-175.tar.bz2 -1cd343f5f39d13d6ab1a68b9710be6ee5730ca3f1908898e99b9741a0f14087b get_pw_r_size.patch +1298d15ed74a33d283df2de41ef35464f3f71cca8efe3f19760fd2831477b0c0 get_pw_r_size.patch f8cff0e73ef40c6a9f642aba35136eac6e60d4cdfb54027aad59f6b770c01915 write_root_link_rule a9f9befa2d0794c1c114541d58c149f05f4ea82f8e52bb07e518b2e6c814ba16 udev-mount.initd b58cc450ef2963da59cf1d7b9198bd9268c1637b5b6c72b085304a74e52ae3d6 udev-postmount.initd 4292752cf5780124db7e83f782d393ab32a17b6c30add0ce9414559fac888048 udev.initd" sha512sums="1e2b3fd385d2b53b42949c83ecad7bd63244f865b6fa4c6fc96fe62b1c23be305f6d47c9c51cdfef4cb3b290f3dbb46b6fea12dfeedc01700fcd07a319c6a7fd udev-175.tar.bz2 -a3f7dab8a3b2593c33c4b90d025a263f6fb2aceed3e233a7a5c9329cf599f43eea6e04bc6defc23e6b8ae69e47c0351d10f3ea07465fb27cf7268e89f48a7191 get_pw_r_size.patch +68188c54b866cf0d551aa52e9333d34224f8c4b59c225a24d3bdf19e248a89748b8ae39efcd7aa0ce3b41e4b60f6115798d7a1cc678c790623b6296eb559e970 get_pw_r_size.patch f3dc810e41e8123a1004108afb98406aa7f44cb69072a6deb0dce75ed2de1d79304b3cbfc38ca3c3d7289db6695f65f3c87162c83f87a2052b404e901a344703 write_root_link_rule 3f06361d0e97a5f583f802b0fc9fbe1d7bdf8ebf0b649b2b9de84b30cf82229d66efe4c5f3ff2333c7ff8916132e652f935893746a4dbc833a6fa4d75f2667d2 udev-mount.initd 28b862c1f1df03b47299476044d734dfe51f274f8a5f29af9427e783cbdf1811343c9d27b941e566451576cf2263d8799262cc9b5c960df855ebab04c372beaa udev-postmount.initd diff --git a/main/udev/get_pw_r_size.patch b/main/udev/get_pw_r_size.patch index 9ad9f6c978..3462920dfc 100644 --- a/main/udev/get_pw_r_size.patch +++ b/main/udev/get_pw_r_size.patch @@ -1,13 +1,32 @@ ---- ./libudev/libudev-util-private.c -+++ ./libudev/libudev-util-private.c.orig -@@ -133,8 +133,8 @@ +diff --git a/libudev/libudev-util-private.c b/libudev/libudev-util-private.c +index 2d7f8dc..19b67a4 100644 +--- a/libudev/libudev-util-private.c ++++ b/libudev/libudev-util-private.c +@@ -133,8 +133,8 @@ int util_unlink_secure(struct udev *udev, const char *filename) uid_t util_lookup_user(struct udev *udev, const char *user) { char *endptr; - size_t buflen = sysconf(_SC_GETPW_R_SIZE_MAX); - char buf[buflen]; -+ int buflen = sysconf(_SC_GETPW_R_SIZE_MAX); -+ char buf[buflen>0 ? buflen : 1024]; ++ long buflen = sysconf(_SC_GETPW_R_SIZE_MAX); ++ char buf[buflen > 0 ? buflen : 1024]; struct passwd pwbuf; struct passwd *pw; uid_t uid; +@@ -158,12 +158,15 @@ uid_t util_lookup_user(struct udev *udev, const char *user) + gid_t util_lookup_group(struct udev *udev, const char *group) + { + char *endptr; +- size_t buflen = sysconf(_SC_GETGR_R_SIZE_MAX); ++ long buflen = sysconf(_SC_GETGR_R_SIZE_MAX); + char *buf; + struct group grbuf; + struct group *gr; + gid_t gid = 0; + ++ if (buflen < 0) ++ buflen = 1024; ++ + if (strcmp(group, "root") == 0) + return 0; + gid = strtoul(group, &endptr, 10); |