* [PATCH 0/1] shadown: backport a patch to make newgrp work
@ 2013-08-20 5:26 rongqing.li
2013-08-20 5:26 ` [PATCH 1/1] " rongqing.li
0 siblings, 1 reply; 4+ messages in thread
From: rongqing.li @ 2013-08-20 5:26 UTC (permalink / raw)
To: openembedded-core
From: "Roy.Li" <rongqing.li@windriver.com>
The following changes since commit 02e6f25c210b0628dc4ee4482474b0e6ce5606e4:
sstate.bbclass: fix parallel building issue (2013-08-13 15:16:29 +0800)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib roy/mewgrp
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=roy/mewgrp
Roy.Li (1):
shadown: backport a patch to make newgrp work
.../shadow/files/fix-etc-gshadow-reading.patch | 36 ++++++++++++++++++++
meta/recipes-extended/shadow/shadow_4.1.4.3.bb | 1 +
2 files changed, 37 insertions(+)
create mode 100644 meta/recipes-extended/shadow/files/fix-etc-gshadow-reading.patch
--
1.7.10.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] shadown: backport a patch to make newgrp work
2013-08-20 5:26 [PATCH 0/1] shadown: backport a patch to make newgrp work rongqing.li
@ 2013-08-20 5:26 ` rongqing.li
2013-08-20 6:44 ` Saul Wold
0 siblings, 1 reply; 4+ messages in thread
From: rongqing.li @ 2013-08-20 5:26 UTC (permalink / raw)
To: openembedded-core
From: "Roy.Li" <rongqing.li@windriver.com>
Signed-off-by: Roy.Li <rongqing.li@windriver.com>
---
.../shadow/files/fix-etc-gshadow-reading.patch | 36 ++++++++++++++++++++
meta/recipes-extended/shadow/shadow_4.1.4.3.bb | 1 +
2 files changed, 37 insertions(+)
create mode 100644 meta/recipes-extended/shadow/files/fix-etc-gshadow-reading.patch
diff --git a/meta/recipes-extended/shadow/files/fix-etc-gshadow-reading.patch b/meta/recipes-extended/shadow/files/fix-etc-gshadow-reading.patch
new file mode 100644
index 0000000..80ebdc2
--- /dev/null
+++ b/meta/recipes-extended/shadow/files/fix-etc-gshadow-reading.patch
@@ -0,0 +1,36 @@
+shadow: Fix parsing of gshadow entries
+
+Upstream-Status: Backport [http://anonscm.debian.org/viewvc/pkg-shadow?view=revision&revision=3096]
+
+newgrp command does not function properly.
+Even with the valid password, it outputs: "'Invalid password'"
+
+Signed-off-by: Roy.Li <rongqing.li@windriver.com>
+
+2010-02-14 Michael Bunk <mb@computer-leipzig.com>
+
+ * NEWS, lib/gshadow.c: Fix parsing of gshadow entries.
+
+diff -urpN a/lib/gshadow.c b/lib/gshadow.c
+--- a/lib/gshadow.c 2013-07-11 10:18:15.745450428 +0800
++++ b/lib/gshadow.c 2013-07-11 10:17:30.465450280 +0800
+@@ -222,6 +222,7 @@ void endsgent (void)
+ if (NULL == buf) {
+ return NULL;
+ }
++ buflen = BUFSIZ;
+ }
+
+ if (NULL == fp) {
+@@ -229,9 +230,9 @@ void endsgent (void)
+ }
+
+ #ifdef USE_NIS
+- while (fgetsx (buf, (int) sizeof buf, fp) == buf)
++ while (fgetsx (buf, (int) buflen, fp) == buf)
+ #else
+- if (fgetsx (buf, (int) sizeof buf, fp) == buf)
++ if (fgetsx (buf, (int) buflen, fp) == buf)
+ #endif
+ {
+ while ( ((cp = strrchr (buf, '\n')) == NULL)
diff --git a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb
index af67339..31cef20 100644
--- a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb
+++ b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb
@@ -24,6 +24,7 @@ SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \
file://shadow-update-pam-conf.patch \
file://shadow_fix_for_automake-1.12.patch \
file://slackware_fix_for_glib-2.17_crypt.patch \
+ file://fix-etc-gshadow-reading.patch \
"
SRC_URI[md5sum] = "b8608d8294ac88974f27b20f991c0e79"
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] shadown: backport a patch to make newgrp work
2013-08-20 5:26 ` [PATCH 1/1] " rongqing.li
@ 2013-08-20 6:44 ` Saul Wold
2013-08-20 6:45 ` Rongqing Li
0 siblings, 1 reply; 4+ messages in thread
From: Saul Wold @ 2013-08-20 6:44 UTC (permalink / raw)
To: rongqing.li; +Cc: openembedded-core
Do you mean Shadow?
Please correct the spelling
Thanks
Sau!
On 08/19/2013 10:26 PM, rongqing.li@windriver.com wrote:
> From: "Roy.Li" <rongqing.li@windriver.com>
>
> Signed-off-by: Roy.Li <rongqing.li@windriver.com>
> ---
> .../shadow/files/fix-etc-gshadow-reading.patch | 36 ++++++++++++++++++++
> meta/recipes-extended/shadow/shadow_4.1.4.3.bb | 1 +
> 2 files changed, 37 insertions(+)
> create mode 100644 meta/recipes-extended/shadow/files/fix-etc-gshadow-reading.patch
>
> diff --git a/meta/recipes-extended/shadow/files/fix-etc-gshadow-reading.patch b/meta/recipes-extended/shadow/files/fix-etc-gshadow-reading.patch
> new file mode 100644
> index 0000000..80ebdc2
> --- /dev/null
> +++ b/meta/recipes-extended/shadow/files/fix-etc-gshadow-reading.patch
> @@ -0,0 +1,36 @@
> +shadow: Fix parsing of gshadow entries
> +
> +Upstream-Status: Backport [http://anonscm.debian.org/viewvc/pkg-shadow?view=revision&revision=3096]
> +
> +newgrp command does not function properly.
> +Even with the valid password, it outputs: "'Invalid password'"
> +
> +Signed-off-by: Roy.Li <rongqing.li@windriver.com>
> +
> +2010-02-14 Michael Bunk <mb@computer-leipzig.com>
> +
> + * NEWS, lib/gshadow.c: Fix parsing of gshadow entries.
> +
> +diff -urpN a/lib/gshadow.c b/lib/gshadow.c
> +--- a/lib/gshadow.c 2013-07-11 10:18:15.745450428 +0800
> ++++ b/lib/gshadow.c 2013-07-11 10:17:30.465450280 +0800
> +@@ -222,6 +222,7 @@ void endsgent (void)
> + if (NULL == buf) {
> + return NULL;
> + }
> ++ buflen = BUFSIZ;
> + }
> +
> + if (NULL == fp) {
> +@@ -229,9 +230,9 @@ void endsgent (void)
> + }
> +
> + #ifdef USE_NIS
> +- while (fgetsx (buf, (int) sizeof buf, fp) == buf)
> ++ while (fgetsx (buf, (int) buflen, fp) == buf)
> + #else
> +- if (fgetsx (buf, (int) sizeof buf, fp) == buf)
> ++ if (fgetsx (buf, (int) buflen, fp) == buf)
> + #endif
> + {
> + while ( ((cp = strrchr (buf, '\n')) == NULL)
> diff --git a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb
> index af67339..31cef20 100644
> --- a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb
> +++ b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb
> @@ -24,6 +24,7 @@ SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \
> file://shadow-update-pam-conf.patch \
> file://shadow_fix_for_automake-1.12.patch \
> file://slackware_fix_for_glib-2.17_crypt.patch \
> + file://fix-etc-gshadow-reading.patch \
> "
>
> SRC_URI[md5sum] = "b8608d8294ac88974f27b20f991c0e79"
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] shadown: backport a patch to make newgrp work
2013-08-20 6:44 ` Saul Wold
@ 2013-08-20 6:45 ` Rongqing Li
0 siblings, 0 replies; 4+ messages in thread
From: Rongqing Li @ 2013-08-20 6:45 UTC (permalink / raw)
To: Saul Wold; +Cc: openembedded-core
On 08/20/2013 02:44 PM, Saul Wold wrote:
>
> Do you mean Shadow?
>
> Please correct the spelling
>
> Thanks
> Sau!
Sorry, I will fix it
Thanks
-Roy
>
>
> On 08/19/2013 10:26 PM, rongqing.li@windriver.com wrote:
>> From: "Roy.Li" <rongqing.li@windriver.com>
>>
>> Signed-off-by: Roy.Li <rongqing.li@windriver.com>
>> ---
>> .../shadow/files/fix-etc-gshadow-reading.patch | 36
>> ++++++++++++++++++++
>> meta/recipes-extended/shadow/shadow_4.1.4.3.bb | 1 +
>> 2 files changed, 37 insertions(+)
>> create mode 100644
>> meta/recipes-extended/shadow/files/fix-etc-gshadow-reading.patch
>>
>> diff --git
>> a/meta/recipes-extended/shadow/files/fix-etc-gshadow-reading.patch
>> b/meta/recipes-extended/shadow/files/fix-etc-gshadow-reading.patch
>> new file mode 100644
>> index 0000000..80ebdc2
>> --- /dev/null
>> +++ b/meta/recipes-extended/shadow/files/fix-etc-gshadow-reading.patch
>> @@ -0,0 +1,36 @@
>> +shadow: Fix parsing of gshadow entries
>> +
>> +Upstream-Status: Backport
>> [http://anonscm.debian.org/viewvc/pkg-shadow?view=revision&revision=3096]
>> +
>> +newgrp command does not function properly.
>> +Even with the valid password, it outputs: "'Invalid password'"
>> +
>> +Signed-off-by: Roy.Li <rongqing.li@windriver.com>
>> +
>> +2010-02-14 Michael Bunk <mb@computer-leipzig.com>
>> +
>> + * NEWS, lib/gshadow.c: Fix parsing of gshadow entries.
>> +
>> +diff -urpN a/lib/gshadow.c b/lib/gshadow.c
>> +--- a/lib/gshadow.c 2013-07-11 10:18:15.745450428 +0800
>> ++++ b/lib/gshadow.c 2013-07-11 10:17:30.465450280 +0800
>> +@@ -222,6 +222,7 @@ void endsgent (void)
>> + if (NULL == buf) {
>> + return NULL;
>> + }
>> ++ buflen = BUFSIZ;
>> + }
>> +
>> + if (NULL == fp) {
>> +@@ -229,9 +230,9 @@ void endsgent (void)
>> + }
>> +
>> + #ifdef USE_NIS
>> +- while (fgetsx (buf, (int) sizeof buf, fp) == buf)
>> ++ while (fgetsx (buf, (int) buflen, fp) == buf)
>> + #else
>> +- if (fgetsx (buf, (int) sizeof buf, fp) == buf)
>> ++ if (fgetsx (buf, (int) buflen, fp) == buf)
>> + #endif
>> + {
>> + while ( ((cp = strrchr (buf, '\n')) == NULL)
>> diff --git a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb
>> b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb
>> index af67339..31cef20 100644
>> --- a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb
>> +++ b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb
>> @@ -24,6 +24,7 @@ SRC_URI =
>> "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \
>> file://shadow-update-pam-conf.patch \
>> file://shadow_fix_for_automake-1.12.patch \
>> file://slackware_fix_for_glib-2.17_crypt.patch \
>> + file://fix-etc-gshadow-reading.patch \
>> "
>>
>> SRC_URI[md5sum] = "b8608d8294ac88974f27b20f991c0e79"
>>
>
>
--
Best Reagrds,
Roy | RongQing Li
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-08-20 6:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-20 5:26 [PATCH 0/1] shadown: backport a patch to make newgrp work rongqing.li
2013-08-20 5:26 ` [PATCH 1/1] " rongqing.li
2013-08-20 6:44 ` Saul Wold
2013-08-20 6:45 ` Rongqing Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox