* [LTP] [PATCH] ltp: fix typo in testcases/kernel/syscalls/chown/chown03.c
@ 2009-05-27 3:43 Wei Yongjun
2009-05-27 14:23 ` Subrata Modak
0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2009-05-27 3:43 UTC (permalink / raw)
To: ltp-list
Fix typo in testcases/kernel/syscalls/chown/chown03.c,
which use ltpuser->pw_uid in call to setegid() should
be ltpuser->pw_gid.
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
---
testcases/kernel/syscalls/chown/chown03.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/testcases/kernel/syscalls/chown/chown03.c b/testcases/kernel/syscalls/chown/chown03.c
index fde107a..f27cb6f 100644
--- a/testcases/kernel/syscalls/chown/chown03.c
+++ b/testcases/kernel/syscalls/chown/chown03.c
@@ -213,9 +213,9 @@ void setup()
}
ltpuser = getpwnam(nobody_uid);
- if (setegid(ltpuser->pw_uid) == -1) {
+ if (setegid(ltpuser->pw_gid) == -1) {
tst_resm(TINFO, "setegid failed to "
- "to set the effective uid to %d", ltpuser->pw_uid);
+ "to set the effective uid to %d", ltpuser->pw_gid);
perror("setegid");
}
if (seteuid(ltpuser->pw_uid) == -1) {
--
1.6.0.2.530.g67faa
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [LTP] [PATCH] ltp: fix typo in testcases/kernel/syscalls/chown/chown03.c
2009-05-27 3:43 [LTP] [PATCH] ltp: fix typo in testcases/kernel/syscalls/chown/chown03.c Wei Yongjun
@ 2009-05-27 14:23 ` Subrata Modak
0 siblings, 0 replies; 2+ messages in thread
From: Subrata Modak @ 2009-05-27 14:23 UTC (permalink / raw)
To: Wei Yongjun; +Cc: ltp-list
On Wed, 2009-05-27 at 11:43 +0800, Wei Yongjun wrote:
> Fix typo in testcases/kernel/syscalls/chown/chown03.c,
> which use ltpuser->pw_uid in call to setegid() should
> be ltpuser->pw_gid.
>
> Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Thanks.
Regards--
Subrata
> ---
> testcases/kernel/syscalls/chown/chown03.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/testcases/kernel/syscalls/chown/chown03.c b/testcases/kernel/syscalls/chown/chown03.c
> index fde107a..f27cb6f 100644
> --- a/testcases/kernel/syscalls/chown/chown03.c
> +++ b/testcases/kernel/syscalls/chown/chown03.c
> @@ -213,9 +213,9 @@ void setup()
> }
>
> ltpuser = getpwnam(nobody_uid);
> - if (setegid(ltpuser->pw_uid) == -1) {
> + if (setegid(ltpuser->pw_gid) == -1) {
> tst_resm(TINFO, "setegid failed to "
> - "to set the effective uid to %d", ltpuser->pw_uid);
> + "to set the effective uid to %d", ltpuser->pw_gid);
> perror("setegid");
> }
> if (seteuid(ltpuser->pw_uid) == -1) {
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-05-27 14:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-27 3:43 [LTP] [PATCH] ltp: fix typo in testcases/kernel/syscalls/chown/chown03.c Wei Yongjun
2009-05-27 14:23 ` Subrata Modak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox