]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(main): Print uids/gids with %lu, not %ld.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 3 Aug 2004 06:27:33 +0000 (06:27 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 3 Aug 2004 06:27:33 +0000 (06:27 +0000)
src/setuidgid.c

index 96f4ef4b000305e2a80057fbafc065c6ff05ba7a..653642f07ecf05aecfcfe6e46bac280fb84e5cf5 100644 (file)
@@ -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;