Module Name: src Committed By: rillig Date: Wed May 18 19:29:00 UTC 2022
Modified Files: src/games/gomoku: main.c Log Message: gomoku: call setprogname, for portability No functional change on NetBSD, but the games are distributed to other platforms as well. To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/games/gomoku/main.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/games/gomoku/main.c diff -u src/games/gomoku/main.c:1.38 src/games/gomoku/main.c:1.39 --- src/games/gomoku/main.c:1.38 Mon May 16 21:53:41 2022 +++ src/games/gomoku/main.c Wed May 18 19:29:00 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.38 2022/05/16 21:53:41 rillig Exp $ */ +/* $NetBSD: main.c,v 1.39 2022/05/18 19:29:00 rillig Exp $ */ /* * Copyright (c) 1994 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1994\ #if 0 static char sccsid[] = "@(#)main.c 8.4 (Berkeley) 5/4/95"; #else -__RCSID("$NetBSD: main.c,v 1.38 2022/05/16 21:53:41 rillig Exp $"); +__RCSID("$NetBSD: main.c,v 1.39 2022/05/18 19:29:00 rillig Exp $"); #endif #endif /* not lint */ @@ -100,6 +100,8 @@ main(int argc, char **argv) /* Revoke setgid privileges */ setgid(getgid()); + setprogname(argv[0]); + tmp = getlogin(); if (tmp != NULL) { strlcpy(user, tmp, sizeof(user));