← Commit list

c85bfcad5

Denis Vlasenko
Denis Vlasenko
2008-02-03
FAILED Duration: 18s

Subject

ps: fixlet to disabled compat code

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

procps/ps.c+2 -2
@@ -4,7 +4,7 @@
*
* Copyright (C) 1999-2004 by Erik Andersen <[email protected]>
* Fix for SELinux Support:(c)2007 Hiroshi Shinji <[email protected]>
- (c)2007 Yuichi Nakamura <[email protected]>
+ * (c)2007 Yuichi Nakamura <[email protected]>
*
* Licensed under the GPL version 2, see the file LICENSE in this tarball.
*/
@@ -168,7 +168,7 @@ static void func_user(char *buf, int size, const procps_status_t *ps)
* as _right-justified_ IDs. Is it worth fixing? */
const char *user = get_cached_username(ps->uid);
if (strlen(user) <= size)
- safe_strncpy(buf, get_cached_username(ps->uid), size+1);
+ safe_strncpy(buf, user, size+1);
else
sprintf(buf, "%*u", size, (unsigned)ps->uid);
#endif