Module Name:    src
Committed By:   christos
Date:           Thu Dec  5 17:17:15 UTC 2024

Modified Files:
        src/usr.sbin/mtree: mtree.c

Log Message:
PR/58875: Jose Luis Duran: Produce consistent checksums in verification
by scanning directories in the same order as usual. While here, fix some
incorrect types.


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/usr.sbin/mtree/mtree.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/mtree/mtree.c
diff -u src/usr.sbin/mtree/mtree.c:1.50 src/usr.sbin/mtree/mtree.c:1.51
--- src/usr.sbin/mtree/mtree.c:1.50	Thu Jan 22 21:27:01 2015
+++ src/usr.sbin/mtree/mtree.c	Thu Dec  5 12:17:15 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: mtree.c,v 1.50 2015/01/23 02:27:01 christos Exp $	*/
+/*	$NetBSD: mtree.c,v 1.51 2024/12/05 17:17:15 christos Exp $	*/
 
 /*-
  * Copyright (c) 1989, 1990, 1993
@@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 19
 #if 0
 static char sccsid[] = "@(#)mtree.c	8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: mtree.c,v 1.50 2015/01/23 02:27:01 christos Exp $");
+__RCSID("$NetBSD: mtree.c,v 1.51 2024/12/05 17:17:15 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -204,7 +204,7 @@ main(int argc, char **argv)
 			break;
 		case 's':
 			sflag = 1;
-			crc_total = ~strtol(optarg, &p, 0);
+			crc_total = (uint32_t)~strtol(optarg, &p, 0);
 			if (*p)
 				mtree_err("illegal seed value -- %s", optarg);
 			break;

Reply via email to