* fusernew - this will be the new fuser once it gets tested on
those strange setups folks out there have
* Completed change from Flask to SELinux, thanks to Benno Schulenberg
+ * pstree works better with uClibc, thanks Mike Frysinger
Changes in 21.6
===============
{
const CHILD *walk;
+ if (!current)
+ return;
+
if (current->uid == uid)
{
if (dumped)
{
memset(comm, '\0', COMM_LEN+1);
tmpptr = strrchr(readbuf, ')'); /* find last ) */
- *tmpptr = '\0';
/* We now have readbuf with pid and cmd, and tmpptr+2
* with the rest */
/*printf("readbuf: %s\n", readbuf);*/
- if (sscanf(readbuf, "%*d (%15c", comm) == 1)
+ if (sscanf(readbuf, "%*d (%15[^)]", comm) == 1)
{
/*printf("tmpptr: %s\n", tmpptr+2);*/
if (sscanf(tmpptr+2, "%*c %d", &ppid) == 1)