commit | 25ebe46ce23d6db0dd2623bcc798d2f6a9bc6163 | [log] [tgz] |
---|---|---|
author | Dmitry V. Levin <ldv@altlinux.org> | Sat Dec 13 16:02:22 2014 +0000 |
committer | Dmitry V. Levin <ldv@altlinux.org> | Mon Dec 15 23:54:37 2014 +0000 |
tree | 2c3df8f70a8e5860dfe4030fb580b988de02d216 | |
parent | c55bfb0045094c38a158d22666bea78682df1716 [diff] [blame] |
util.c: move printuid to uid.c This will make further uid/gid fixes simpler. * util.c (printuid): Move * uid.c: ... here.
diff --git a/uid.c b/uid.c index 0991074..0a1a2ee 100644 --- a/uid.c +++ b/uid.c
@@ -75,3 +75,12 @@ } return 0; } + +void +printuid(const char *text, const unsigned int uid) +{ + if ((unsigned int) -1 == uid) + tprintf("%s-1", text); + else + tprintf("%s%u", text, uid); +}