Sisyphus repository
Last update: 2018-10-20 23:10:32 +0400 | SRPMs: 19762 | Sign in or Sign up
en ru uk br
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
--- acct/ac.c
+++ acct/ac.c
@@ -22,6 +22,10 @@ MA 02139, USA.
 #include "config.h"
 #include <stdio.h>
 
+#ifdef HAVE_ERRNO_H
+# include <errno.h>
+#endif
+
 #ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #endif
@@ -173,7 +177,7 @@ int main(int argc, char *argv[])
   int other_wtmp_file_specified = 0; /* nonzero if the user used the
 					`-f' or `--other-file' flags */
 
-  program_name = argv[0];
+  program_name = program_invocation_short_name;
 
   /* Init the utmp reader for reading forwards in the files. */
 
--- acct/accton.c
+++ acct/accton.c
@@ -119,7 +119,7 @@ int main(int argc, char *argv[])
   int c, status_acct, number_args;
   char *acct_file = NULL;
 
-  program_name = argv[0];
+  program_name = program_invocation_short_name;
 
 
   /* deal with options */
--- acct/dump-acct.c
+++ acct/dump-acct.c
@@ -25,6 +25,10 @@ MA 02139, USA.
 
 #include <stdio.h>
 
+#ifdef HAVE_ERRNO_H
+# include <errno.h>
+#endif
+
 #ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #endif
@@ -68,7 +72,7 @@ int main(int argc, char *argv[])
   static struct acct buf;
 #endif
 
-  program_name = argv[0];
+  program_name = program_invocation_short_name;
 
   while (1)
     {
--- acct/dump-utmp.c
+++ acct/dump-utmp.c
@@ -25,6 +25,10 @@ MA 02139, USA.
 
 #include <stdio.h>
 
+#ifdef HAVE_ERRNO_H
+# include <errno.h>
+#endif
+
 #ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #endif
@@ -58,7 +62,7 @@ int main(int argc, char *argv[])
   long num_lines_to_print = -1;	/* -1 means all */
   int raw = 0;
 
-  program_name = argv[0];
+  program_name = program_invocation_short_name;
 
   while (1)
     {
--- acct/last.c
+++ acct/last.c
@@ -22,6 +22,10 @@ MA 02139, USA.
 #include "config.h"
 #include <stdio.h>
 
+#ifdef HAVE_ERRNO_H
+# include <errno.h>
+#endif
+
 #ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #endif
@@ -176,7 +180,7 @@ int main(int argc, char *argv[])
   int other_wtmp_file_specified = 0; /* nonzero if the user used the
 					`-f' or `--file' flags */
 
-  program_name = argv[0];
+  program_name = program_invocation_short_name;
 
   /* Tell the utmp reader that we want to do things backwards! */
 
--- acct/lastcomm.c
+++ acct/lastcomm.c
@@ -20,6 +20,10 @@ MA 02139, USA.  */
 #include "config.h"
 #include <stdio.h>
 
+#ifdef HAVE_ERRNO_H
+# include <errno.h>
+#endif
+
 #ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #endif
@@ -102,7 +106,7 @@ int main(int argc, char *argv[])
 
   hzval = sysconf(_SC_CLK_TCK);
 
-  program_name = argv[0];
+  program_name = program_invocation_short_name;
 
   while (1)
     {
--- acct/sa.c
+++ acct/sa.c
@@ -42,6 +42,10 @@ char *alloca ();
 
 #include <stdio.h>
 
+#ifdef HAVE_ERRNO_H
+# include <errno.h>
+#endif
+
 #ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #endif
@@ -281,7 +285,7 @@ int main(int argc, char *argv[])
   int c;
 
   hzval = sysconf(_SC_CLK_TCK);
-  program_name = argv[0];
+  program_name = program_invocation_short_name;
 
   /* Cache the page size of the machine for the PAGES_TO_KB macro */
   system_page_size = (double) getpagesize () / 1024.0;
 
© 2009–2018 Igor Zubkov