File: 06_update_version_output.patch

package info (click to toggle)
fspy 0.1.1-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 728 kB
  • sloc: ansic: 1,425; makefile: 41
file content (54 lines) | stat: -rw-r--r-- 1,717 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Description: Update version output to show Debian package and maintainer info
 Enhances the --version output to display:
 - License information (GPL v2+)
 - Better formatted output with clearer labels
 .
 This provides users with complete version and maintenance information
 when running fspy --version.
Author: Bean Huo <beanhuo@micron.com>
Forwarded: no
Last-Update: 2025-11-12

diff --git a/src/fspy.c b/src/fspy.c
index 94fed4e..fb32517 100644
--- a/src/fspy.c
+++ b/src/fspy.c
@@ -138,13 +138,16 @@ static void print_help(void)
 static void print_version(void)
 {
 
-	printf( "version:\t %i.%i.%i\n"
-	        "build:\t\t %i\n"
-	        "codename:\t %s\n"
-	        "author:\t\t %s\n"
-	        "website:\t %s\n"
+	printf( "fspy - Linux filesystem activity monitor\n\n"
+	        "version:\t\t %i.%i.%i\n"
+	        "build:\t\t\t %i\n"
+	        "codename:\t\t %s\n"
+	        "license:\t\t %s\n\n"
+	        "original author:\t %s\n"
+	        "website:\t\t %s\n"
 	        , MAJORVERSION, MINORVERSION, SUBMINORVERSION,
-	        BUILD, CODENAME, AUTHOR, WEBSITE);
+	        BUILD, CODENAME, LICENSE,
+	        AUTHOR, WEBSITE);
 
 	exit(EXIT_SUCCESS);
 }
diff --git a/src/fspy.h b/src/fspy.h
index e80f652..0b148f1 100644
--- a/src/fspy.h
+++ b/src/fspy.h
@@ -34,8 +34,9 @@
 #include <sys/stat.h> /* required -> struct stat */
 #include "enumdirs.h" /* needed -> ELEMENT_SIZE */
 
-#define AUTHOR    "Richard Sammet (e-axe) <richard.sammet@gmail.com>"
-#define WEBSITE   "http://mytty.org/fspy/"
+#define AUTHOR           "Richard Sammet (e-axe) <richard.sammet@gmail.com>"
+#define WEBSITE          "http://mytty.org/fspy/ (defunct)"
+#define LICENSE          "GPL v2+"
 
 #define TRUE  1
 #define FALSE 0