Fix ps.c SIAL sample script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

the attached patch for http://people.redhat.com/anderson/extensions/ps.c
fixes the 'sps' command on recent kernels.

Could you please integrate it?


Regards,
Bernhard
diff -Nurp sial-scripts-2008-02-08.orig//ps.c sial-scripts-2008-02-08/ps.c
--- sial-scripts-2008-02-08.orig//ps.c	2010-03-12 19:59:03.227788951 +0100
+++ sial-scripts-2008-02-08/ps.c	2010-03-12 19:59:16.690665574 +0100
@@ -192,7 +192,11 @@ string cmd;
 
 	printf("%p %7d %7d %7d 0x%02x 0x%08x %5d:%-5d %s\n"
 		, t
+#if LINUX_RELEASE > 0x02061d
+		, t->real_cred->uid
+#else
 		, t->uid
+#endif
 		, t->pid
 #if LINUX_2_6_X
 		, t->parent->pid
--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility

[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux