From: Paul Eggert Date: Tue, 3 Aug 2004 06:27:33 +0000 (+0000) Subject: (main): Print uids/gids with %lu, not %ld. X-Git-Tag: v5.3.0~891 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34042b90778108a140815ce16aa50070059aec69;p=thirdparty%2Fcoreutils.git (main): Print uids/gids with %lu, not %ld. --- diff --git a/src/setuidgid.c b/src/setuidgid.c index 96f4ef4b00..653642f07e 100644 --- a/src/setuidgid.c +++ b/src/setuidgid.c @@ -114,11 +114,11 @@ main (int argc, char **argv) if (setgid (pwd->pw_gid)) error (SETUIDGID_FAILURE, errno, - _("cannot set group-ID to %ld"), (long int) pwd->pw_gid); + _("cannot set group-ID to %lu"), (unsigned long int) pwd->pw_gid); if (setuid (pwd->pw_uid)) error (SETUIDGID_FAILURE, errno, - _("cannot set user-ID to %ld"), (long int) pwd->pw_uid); + _("cannot set user-ID to %lu"), (unsigned long int) pwd->pw_uid); { char **cmd = argv + 2;