File: 090_fix-variable.patch

package info (click to toggle)
secure-delete 3.1-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 472 kB
  • sloc: ansic: 2,212; makefile: 137; sh: 65
file content (16 lines) | stat: -rw-r--r-- 717 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: using 'long unsigned int' instead of 'int'
Author: Joao Eriberto Mota Filho <eriberto@debian.org>
Last-Update: 2021-09-20
Index: secure-delete-test/srm.c
===================================================================
--- secure-delete-test.orig/srm.c
+++ secure-delete-test/srm.c
@@ -66,7 +66,7 @@ int smash_it(char *filename, int mode)
             return 1;
 
     if (S_ISREG(filestat.st_mode) && filestat.st_nlink > 1) {
-        fprintf(stderr, "Error: File %s - file is hardlinked %d time(s), skipping!\n", filename, filestat.st_nlink - 1);
+        fprintf(stderr, "Error: File %s - file is hardlinked %ld time(s), skipping!\n", filename, filestat.st_nlink - 1);
         return -1;
     }