aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-08-02 09:07:44 -0400
committerDee'Kej <deekej@linuxmail.org>2017-08-03 13:47:59 +0200
commitbf00a00483cfa675ea665d6a0dd40d5629bc928a (patch)
tree8feb8c2af7f83edc6ee94e83d7a78432ef27dbc9 /src
parenta019e06a883665ebab24539247ce63bf558fe699 (diff)
downloadinitscripts-bf00a00483cfa675ea665d6a0dd40d5629bc928a.tar
initscripts-bf00a00483cfa675ea665d6a0dd40d5629bc928a.tar.gz
initscripts-bf00a00483cfa675ea665d6a0dd40d5629bc928a.tar.bz2
initscripts-bf00a00483cfa675ea665d6a0dd40d5629bc928a.tar.xz
initscripts-bf00a00483cfa675ea665d6a0dd40d5629bc928a.zip
Replace /var/run with /run everywhere
https://bugzilla.redhat.com/show_bug.cgi?id=1471489
Diffstat (limited to 'src')
-rw-r--r--src/netreport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/netreport.c b/src/netreport.c
index 31bfe2f6..204a77d7 100644
--- a/src/netreport.c
+++ b/src/netreport.c
@@ -34,7 +34,7 @@ usage(void) {
#define DEL 0
int main(int argc, char ** argv) {
int action = ADD;
- /* more than long enough for "/var/run/netreport/<pid>\0" */
+ /* more than long enough for "/run/netreport/<pid>\0" */
char netreport_name[64];
int netreport_file;
@@ -51,7 +51,7 @@ int main(int argc, char ** argv) {
}
snprintf(netreport_name, sizeof(netreport_name),
- "/var/run/netreport/%d", getppid());
+ "/run/netreport/%d", getppid());
if (action == ADD) {
netreport_file = open(netreport_name,
O_EXCL|O_CREAT|O_WRONLY|O_TRUNC|O_NOFOLLOW, 0);