[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Findutils-patches] [patch] bug 15472 - printing ino_t
From: |
Eric Blake |
Subject: |
[Findutils-patches] [patch] bug 15472 - printing ino_t |
Date: |
Sat, 08 Mar 2008 16:57:57 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
OK to apply? This is a (simpler) patch than what was attached to 15472,
now that we can rely on gnulib's inttype.h guaranteeing a valid definition
of PRIuMAX.
2008-03-08 Eric Blake <address@hidden>
Don't truncate printed ino values. Fixes Savannah bug #15472.
* find/find.c (wd_sanity_check): Use PRIuMAX for platforms with
64-bit ino_t.
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFH0ygF84KuGfSFAYARAoEsAKCPX/3OD5te2Q2vbgkKdpU3K5/eiwCeIiwm
aJy/jfH+IFnM6TCJ/Ak9NnA=
=g5vr
-----END PGP SIGNATURE-----
Index: find/find.c
===================================================================
RCS file: /sources/findutils/findutils/find/find.c,v
retrieving revision 1.132
diff -u -p -r1.132 find.c
--- find/find.c 9 Feb 2008 10:44:23 -0000 1.132
+++ find/find.c 8 Mar 2008 23:57:00 -0000
@@ -1,6 +1,6 @@
/* find -- search for files in a directory hierarchy
Copyright (C) 1990, 91, 92, 93, 94, 2000,
- 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
+ 2003, 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -526,12 +526,13 @@ wd_sanity_check(const char *thing_to_sta
error ((isfatal == FATAL_IF_SANITY_CHECK_FAILS) ? 1 : 0,
0, /* no relevant errno value */
_("%s%s changed during execution of %s "
- "(old inode number %ld, new inode number %ld, file system type
is %s) [ref %ld]"),
+ "(old inode number %" PRIuMAX ", new inode number %" PRIuMAX
+ ", file system type is %s) [ref %ld]"),
safely_quote_err_filename(0, specific_what),
parent ? "/.." : "",
safely_quote_err_filename(1, progname),
- (long) old_ino,
- (long) newinfo->st_ino,
+ (uintmax_t) old_ino,
+ (uintmax_t) newinfo->st_ino,
fstype,
(long)line_no);
free(specific_what);
- [Findutils-patches] [patch] bug 15472 - printing ino_t,
Eric Blake <=