summaryrefslogtreecommitdiff
path: root/bin/rm
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-23 18:41:09 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-23 18:41:09 +0000
commit99c261fca4d95f0841aef06cedfc914763f11408 (patch)
treed399bfed26020caab01272c88e2011874b7e4d18 /bin/rm
parent3d00e08659eab7e125b93043e3d100ce0429be55 (diff)
handle large ino_t
Diffstat (limited to 'bin/rm')
-rw-r--r--bin/rm/rm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/rm/rm.c b/bin/rm/rm.c
index a653bb54f17..bc08516c8f5 100644
--- a/bin/rm/rm.c
+++ b/bin/rm/rm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rm.c,v 1.27 2012/09/05 19:49:08 naddy Exp $ */
+/* $OpenBSD: rm.c,v 1.28 2013/04/23 18:41:08 deraadt Exp $ */
/* $NetBSD: rm.c,v 1.19 1995/09/07 06:48:50 jtc Exp $ */
/*-
@@ -289,8 +289,8 @@ rm_overwrite(char *file, struct stat *sbp)
if (!S_ISREG(sbp->st_mode))
return (1);
if (sbp->st_nlink > 1) {
- warnx("%s (inode %u): not overwritten due to multiple links",
- file, sbp->st_ino);
+ warnx("%s (inode %llu): not overwritten due to multiple links",
+ file, (unsigned long long)sbp->st_ino);
return (0);
}
if ((fd = open(file, O_WRONLY|O_NONBLOCK|O_NOFOLLOW, 0)) == -1)