mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
change score file name to .cfscores so it's not taking up valuable space
in my home directory of serious business files
This commit is contained in:
parent
7e0a668373
commit
e1edfc7be0
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: canfield.c,v 1.16 2015/11/24 02:51:50 tedu Exp $ */
|
||||
/* $OpenBSD: canfield.c,v 1.17 2015/11/24 02:53:39 tedu Exp $ */
|
||||
/* $NetBSD: canfield.c,v 1.7 1995/05/13 07:28:35 jtc Exp $ */
|
||||
|
||||
/*
|
||||
@ -1631,7 +1631,7 @@ initall(void)
|
||||
if (!getenv("HOME"))
|
||||
return;
|
||||
snprintf(scorepath, sizeof(scorepath), "%s/%s", getenv("HOME"),
|
||||
"cfscores");
|
||||
".cfscores");
|
||||
dbfd = open(scorepath, O_RDWR | O_CREAT, 0644);
|
||||
if (dbfd < 0)
|
||||
return;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: cfscores.c,v 1.16 2015/11/24 02:51:50 tedu Exp $ */
|
||||
/* $OpenBSD: cfscores.c,v 1.17 2015/11/24 02:53:39 tedu Exp $ */
|
||||
/* $NetBSD: cfscores.c,v 1.3 1995/03/21 15:08:37 cgd Exp $ */
|
||||
|
||||
/*
|
||||
@ -65,7 +65,7 @@ main(int argc, char *argv[])
|
||||
if (!getenv("HOME"))
|
||||
return;
|
||||
snprintf(scorepath, sizeof(scorepath), "%s/%s", getenv("HOME"),
|
||||
"cfscores");
|
||||
".cfscores");
|
||||
dbfd = open(scorepath, O_RDONLY);
|
||||
if (dbfd < 0)
|
||||
err(2, "%s", scorepath);
|
||||
|
Loading…
Reference in New Issue
Block a user